Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000975/0.000975, allocations: 108.5 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002724/0.0002723, allocations: 8 kB / 358 MB, free: 9.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2412, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3805/0.6217, allocations: 154.2 MB / 0.5505 GB, free: 37.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.622, allocations: 108.9 kB / 0.5506 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.216/1.838, allocations: 373.3 MB / 0.9151 GB, free: 46.65 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.838, allocations: 3.375 kB / 0.9151 GB, free: 46.65 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008163/1.839, allocations: 256.9 kB / 0.9154 GB, free: 46.61 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: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.03656/1.876, allocations: 11.14 MB / 0.9263 GB, free: 42.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.876, allocations: 10.38 kB / 0.9263 GB, free: 42.91 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006403/1.882, allocations: 1.548 MB / 0.9278 GB, free: 42.79 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02643/1.909, allocations: 4.794 MB / 0.9325 GB, free: 42.18 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02664/1.935, allocations: 9.623 MB / 0.9419 GB, free: 41.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/1.936, allocations: 0.7912 MB / 0.9426 GB, free: 41.02 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005656/1.942, allocations: 1.049 MB / 0.9437 GB, free: 41.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04481/1.987, allocations: 17.2 MB / 0.9605 GB, free: 37.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003806/1.987, allocations: 18.55 kB / 0.9605 GB, free: 37.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003029/1.99, allocations: 454.2 kB / 0.9609 GB, free: 37.38 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006784/1.991, allocations: 0.7593 MB / 0.9617 GB, free: 37.22 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03453/2.026, allocations: 15.43 MB / 0.9767 GB, free: 30.78 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1086/2.134, allocations: 56.07 MB / 1.031 GB, free: 424 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3607/2.495, allocations: 34.51 MB / 1.065 GB, free: 32.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02095/2.516, allocations: 10.78 MB / 1.076 GB, free: 31.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004169/2.52, allocations: 3.138 MB / 1.079 GB, free: 31.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=444): time 6.262e-06/2.52, allocations: 0 / 1.079 GB, free: 31.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=462): time 0.04678/2.567, allocations: 23.75 MB / 1.102 GB, free: 28.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/2.567, allocations: 413.8 kB / 1.102 GB, free: 28.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006346/2.574, allocations: 4.034 MB / 1.106 GB, free: 27.93 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007972/2.574, allocations: 101.3 kB / 1.106 GB, free: 27.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004117/2.578, allocations: 4.744 MB / 1.111 GB, free: 25.52 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001778/2.58, allocations: 1.584 MB / 1.113 GB, free: 24.52 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003423/2.581, allocations: 120.6 kB / 1.113 GB, free: 24.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00031/2.581, allocations: 0.5434 MB / 1.113 GB, free: 24.21 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004252/2.585, allocations: 2.867 MB / 1.116 GB, free: 24.19 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005507/2.591, allocations: 5.016 MB / 1.121 GB, free: 21.69 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005345/2.596, allocations: 3.908 MB / 1.125 GB, free: 21.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.315e-05/2.596, allocations: 19.28 kB / 1.125 GB, free: 21.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.01965/2.616, allocations: 9.654 MB / 1.134 GB, free: 19.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.501e-05/2.616, allocations: 33.84 kB / 1.134 GB, free: 19.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/2.616, allocations: 62.66 kB / 1.134 GB, free: 19.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004032/2.62, allocations: 1.505 MB / 1.136 GB, free: 18.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006352/2.627, allocations: 1.346 MB / 1.137 GB, free: 18.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/2.645, allocations: 16.74 MB / 1.153 GB, free: 7.535 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006342/2.651, allocations: 359.4 kB / 1.154 GB, free: 7.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001638/2.653, allocations: 292.5 kB / 1.154 GB, free: 7.375 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 295 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 690 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13,(1,100.0%) 4,(14,39.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01147/2.664, allocations: 3.915 MB / 1.158 GB, free: 5.461 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002005/2.666, allocations: 0.5023 MB / 1.158 GB, free: 5.199 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01418/2.68, allocations: 8.077 MB / 1.166 GB, free: 1.773 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.259e-05/2.68, allocations: 51.34 kB / 1.166 GB, free: 1.773 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.111e-05/2.68, allocations: 18.22 kB / 1.166 GB, free: 1.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.737e-05/2.681, allocations: 23.16 kB / 1.166 GB, free: 1.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03663/2.717, allocations: 17.76 MB / 1.184 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/2.717, allocations: 6.047 kB / 1.184 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/2.721, allocations: 0.7738 MB / 1.184 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004461/2.725, allocations: 1.565 MB / 1.186 GB, free: 9.887 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007939/2.726, allocations: 113 kB / 1.186 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02429/2.75, allocations: 20.12 MB / 1.206 GB, free: 9.891 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/2.751, allocations: 7.094 kB / 1.206 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02404/2.775, allocations: 12.47 MB / 1.218 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004744/2.779, allocations: 1.189 MB / 1.219 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009956/2.78, allocations: 95.38 kB / 1.219 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/2.783, allocations: 249.2 kB / 1.219 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008898/2.784, allocations: 341.5 kB / 1.22 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003077/2.784, allocations: 139.8 kB / 1.22 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005643/2.79, allocations: 3.068 MB / 1.223 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.71e-07/2.79, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01014/2.8, allocations: 1.97 MB / 1.225 GB, free: 9.656 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (407): * Single equations (assignments): 398 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 5,(1,100.0%) 3,(14,40.3%) 44,(1,100.0%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3608/3.161, allocations: 15.41 MB / 1.24 GB, free: 97.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01477/3.176, allocations: 8.175 MB / 1.248 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/3.176, allocations: 3.688 kB / 1.248 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007181/3.183, allocations: 4.744 MB / 1.252 GB, free: 95.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005598/3.189, allocations: 1.222 MB / 1.254 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1347/3.323, allocations: 103.1 MB / 1.354 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01779/3.341, allocations: 7.032 MB / 1.361 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01052/3.352, allocations: 1.877 MB / 1.363 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009789/3.362, allocations: 4.008 MB / 1.367 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of SimCode: time 2.104e-06/3.362, allocations: 0 / 1.367 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.547/3.909, allocations: 153.9 MB / 1.517 GB, free: 86.76 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/3.909, allocations: 293.5 kB / 1.517 GB, free: 86.41 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_Conveyor.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_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_Conveyor.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_functions.h:1245: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_Conveyor.o] Error 1