Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 198.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.2 MB / 245 MB, free: 7.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009159/0.0009156, allocations: 111.4 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002263, allocations: 7.984 kB / 358 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2472, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3674/0.6147, allocations: 148.4 MB / 0.5449 GB, free: 39.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.615, allocations: 106.8 kB / 0.545 GB, free: 39.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.217/1.832, allocations: 365.7 MB / 0.9021 GB, free: 41.95 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.832, allocations: 0 / 0.9021 GB, free: 41.95 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007603/1.833, allocations: 249.8 kB / 0.9024 GB, free: 41.92 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.03809/1.871, allocations: 10.93 MB / 0.913 GB, free: 38.39 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.871, allocations: 10.47 kB / 0.913 GB, free: 38.39 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008523/1.88, allocations: 1.514 MB / 0.9145 GB, free: 38.28 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02708/1.907, allocations: 4.793 MB / 0.9192 GB, free: 37.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02238/1.929, allocations: 9.539 MB / 0.9285 GB, free: 36.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00076/1.93, allocations: 0.7717 MB / 0.9293 GB, free: 36.54 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004099/1.934, allocations: 1.016 MB / 0.9303 GB, free: 36.53 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04282/1.977, allocations: 17 MB / 0.9469 GB, free: 35.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004813/1.977, allocations: 21.73 kB / 0.9469 GB, free: 35.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003567/1.981, allocations: 448.4 kB / 0.9473 GB, free: 35.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009072/1.982, allocations: 0.7505 MB / 0.948 GB, free: 35.27 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03446/2.016, allocations: 15.33 MB / 0.963 GB, free: 30.61 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.107/2.123, allocations: 57.05 MB / 1.019 GB, free: 5.102 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3446/2.468, allocations: 31.39 MB / 1.049 GB, free: 29.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01935/2.487, allocations: 10.52 MB / 1.06 GB, free: 28.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.256e-05/2.488, allocations: 83.17 kB / 1.06 GB, free: 28.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=410): time 4.829e-06/2.488, allocations: 0 / 1.06 GB, free: 28.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=435): time 0.04676/2.534, allocations: 22.23 MB / 1.081 GB, free: 24.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/2.534, allocations: 122.1 kB / 1.082 GB, free: 24.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/2.542, allocations: 4.123 MB / 1.086 GB, free: 24.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009554/2.543, allocations: 97.64 kB / 1.086 GB, free: 24.06 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002652/2.546, allocations: 4.641 MB / 1.09 GB, free: 21.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001949/2.548, allocations: 1.484 MB / 1.092 GB, free: 20.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005585/2.548, allocations: 121.2 kB / 1.092 GB, free: 20.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003292/2.548, allocations: 0.542 MB / 1.092 GB, free: 20.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004478/2.553, allocations: 2.946 MB / 1.095 GB, free: 20.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005704/2.559, allocations: 4.943 MB / 1.1 GB, free: 18.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005552/2.564, allocations: 3.986 MB / 1.104 GB, free: 17.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.331e-05/2.564, allocations: 19.78 kB / 1.104 GB, free: 17.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01753/2.582, allocations: 9.798 MB / 1.113 GB, free: 17.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/2.582, allocations: 34.56 kB / 1.114 GB, free: 17.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/2.582, allocations: 67.23 kB / 1.114 GB, free: 17.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004935/2.587, allocations: 1.665 MB / 1.115 GB, free: 17.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006258/2.593, allocations: 1.339 MB / 1.117 GB, free: 17.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02141/2.615, allocations: 16.97 MB / 1.133 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006843/2.622, allocations: 333.5 kB / 1.133 GB, free: 25.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/2.624, allocations: 286 kB / 1.134 GB, free: 25.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 292 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (679): * Single equations (assignments): 675 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1,(14,38.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009179/2.633, allocations: 3.9 MB / 1.137 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/2.634, allocations: 0.4884 MB / 1.138 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/2.647, allocations: 7.93 MB / 1.146 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/2.647, allocations: 40.84 kB / 1.146 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.524e-05/2.647, allocations: 17.56 kB / 1.146 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.891e-05/2.647, allocations: 22.17 kB / 1.146 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03483/2.682, allocations: 17.76 MB / 1.163 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/2.682, allocations: 9.406 kB / 1.163 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003321/2.686, allocations: 0.7517 MB / 1.164 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004104/2.69, allocations: 1.565 MB / 1.165 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005132/2.69, allocations: 105.9 kB / 1.166 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/2.715, allocations: 19.94 MB / 1.185 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/2.715, allocations: 16.25 kB / 1.185 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02063/2.735, allocations: 12.36 MB / 1.197 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004544/2.74, allocations: 1.179 MB / 1.198 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001498/2.742, allocations: 88 kB / 1.198 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003712/2.745, allocations: 251.9 kB / 1.199 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009393/2.746, allocations: 334.4 kB / 1.199 GB, free: 4.324 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003762/2.747, allocations: 130.8 kB / 1.199 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008346/2.755, allocations: 3.111 MB / 1.202 GB, free: 1.605 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.51e-07/2.755, allocations: 0 / 1.202 GB, free: 1.605 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01313/2.768, allocations: 2.089 MB / 1.204 GB, free: 0 / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,38.8%) 44,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02345/2.792, allocations: 14.75 MB / 1.218 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3018/3.094, allocations: 8.719 MB / 1.227 GB, free: 99.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/3.094, allocations: 5.281 kB / 1.227 GB, free: 99.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008731/3.102, allocations: 4.769 MB / 1.232 GB, free: 98.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00753/3.11, allocations: 1.179 MB / 1.233 GB, free: 98.51 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1376/3.248, allocations: 101.9 MB / 1.332 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0153/3.263, allocations: 6.962 MB / 1.339 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00926/3.272, allocations: 1.864 MB / 1.341 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00925/3.282, allocations: 3.929 MB / 1.345 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of SimCode: time 1.242e-06/3.282, allocations: 0 / 1.345 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5139/3.796, allocations: 151.4 MB / 1.493 GB, free: 86.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/3.796, allocations: 255.4 kB / 1.493 GB, free: 86.1 MB / 0.5261 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_functions.h:1208:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.o] Error 1