Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|mass.s|mass.v|massQS.s|massQS.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|mass.s|mass.v|massQS.s|massQS.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 179.5 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 223.2 MB / 240.3 MB, free: 10.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008888/0.000889, allocations: 92.67 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002758, allocations: 4 kB / 351.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2735, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.6776, allocations: 152.8 MB / 0.5413 GB, free: 46.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.678, allocations: 109.3 kB / 0.5414 GB, free: 46.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.877, allocations: 356.3 MB / 0.8894 GB, free: 45.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.794e-06/1.877, allocations: 0 / 0.8894 GB, free: 45.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007565/1.878, allocations: 248.7 kB / 0.8896 GB, free: 45.1 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.03619/1.914, allocations: 11.06 MB / 0.9004 GB, free: 41.43 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/1.914, allocations: 7.156 kB / 0.9005 GB, free: 41.43 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02731/1.941, allocations: 4.794 MB / 0.9051 GB, free: 40.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02371/1.965, allocations: 9.588 MB / 0.9145 GB, free: 39.69 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007586/1.966, allocations: 0.7932 MB / 0.9153 GB, free: 39.67 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004561/1.97, allocations: 1.047 MB / 0.9163 GB, free: 39.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04463/2.015, allocations: 17.19 MB / 0.9331 GB, free: 38.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004741/2.016, allocations: 25.69 kB / 0.9331 GB, free: 38.42 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003303/2.019, allocations: 452.3 kB / 0.9335 GB, free: 38.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008727/2.02, allocations: 0.7671 MB / 0.9343 GB, free: 38.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03656/2.056, allocations: 15.43 MB / 0.9494 GB, free: 35.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1175/2.174, allocations: 55.63 MB / 1.004 GB, free: 13.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3407/2.515, allocations: 33.32 MB / 1.036 GB, free: 32.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01972/2.534, allocations: 10.5 MB / 1.046 GB, free: 32.26 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004348/2.539, allocations: 3.141 MB / 1.05 GB, free: 32.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=444): time 7.313e-06/2.539, allocations: 1.844 kB / 1.05 GB, free: 32.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=462): time 0.05136/2.59, allocations: 23.52 MB / 1.073 GB, free: 29.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/2.59, allocations: 409.9 kB / 1.073 GB, free: 28.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0069/2.597, allocations: 4.015 MB / 1.077 GB, free: 28.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001097/2.598, allocations: 104 kB / 1.077 GB, free: 28.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004605/2.603, allocations: 4.73 MB / 1.082 GB, free: 26.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002119/2.605, allocations: 1.581 MB / 1.083 GB, free: 25.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003971/2.606, allocations: 122.2 kB / 1.083 GB, free: 25.15 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003039/2.606, allocations: 0.5426 MB / 1.084 GB, free: 24.83 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004083/2.61, allocations: 2.862 MB / 1.087 GB, free: 24.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005317/2.615, allocations: 5.016 MB / 1.091 GB, free: 22.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005786/2.621, allocations: 3.905 MB / 1.095 GB, free: 22.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.403e-05/2.621, allocations: 21.09 kB / 1.095 GB, free: 22.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.0189/2.64, allocations: 9.648 MB / 1.105 GB, free: 21.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.833e-05/2.64, allocations: 31.5 kB / 1.105 GB, free: 21.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/2.64, allocations: 65.78 kB / 1.105 GB, free: 21.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003887/2.644, allocations: 1.5 MB / 1.106 GB, free: 21.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006173/2.651, allocations: 1.343 MB / 1.108 GB, free: 21.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01961/2.67, allocations: 16.71 MB / 1.124 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006683/2.677, allocations: 364 kB / 1.124 GB, free: 12.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/2.679, allocations: 287.2 kB / 1.124 GB, free: 12.09 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,38.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01113/2.69, allocations: 3.908 MB / 1.128 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002794/2.693, allocations: 0.5011 MB / 1.129 GB, free: 9.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01957/2.712, allocations: 8.082 MB / 1.137 GB, free: 6.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.679e-05/2.712, allocations: 46.78 kB / 1.137 GB, free: 6.48 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.335e-05/2.712, allocations: 19.12 kB / 1.137 GB, free: 6.48 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.123e-05/2.712, allocations: 25.73 kB / 1.137 GB, free: 6.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04516/2.758, allocations: 17.84 MB / 1.154 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.431e-05/2.758, allocations: 7.812 kB / 1.154 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003895/2.762, allocations: 0.7711 MB / 1.155 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004577/2.766, allocations: 1.575 MB / 1.156 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/2.767, allocations: 109.4 kB / 1.157 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02605/2.793, allocations: 20.05 MB / 1.176 GB, free: 396 kB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/2.793, allocations: 7.438 kB / 1.176 GB, free: 396 kB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02387/2.817, allocations: 12.16 MB / 1.188 GB, free: 7.605 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00449/2.822, allocations: 1.175 MB / 1.189 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002212/2.824, allocations: 103.2 kB / 1.189 GB, free: 6.441 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004238/2.828, allocations: 253.3 kB / 1.19 GB, free: 6.254 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001255/2.83, allocations: 343.5 kB / 1.19 GB, free: 6.043 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006757/2.83, allocations: 136.8 kB / 1.19 GB, free: 5.918 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007559/2.838, allocations: 3.048 MB / 1.193 GB, free: 3.367 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.71e-07/2.838, allocations: 4 kB / 1.193 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01146/2.849, allocations: 1.959 MB / 1.195 GB, free: 1.422 MB / 0.5105 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,38.8%) 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.002932/2.852, allocations: 0.8488 MB / 1.196 GB, free: 0.9414 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02173/2.874, allocations: 8.567 MB / 1.204 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/2.874, allocations: 4.062 kB / 1.204 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01014/2.884, allocations: 4.771 MB / 1.209 GB, free: 6.488 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00823/2.893, allocations: 1.21 MB / 1.21 GB, free: 5.551 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3649/3.257, allocations: 24.1 MB / 1.233 GB, free: 90.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01431/3.272, allocations: 7.028 MB / 1.24 GB, free: 89.68 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008216/3.28, allocations: 1.87 MB / 1.242 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/3.282, allocations: 393.4 kB / 1.243 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of SimCode: time 1.613e-06/3.282, allocations: 0 / 1.243 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of Templates: time 0.154/3.436, allocations: 83.61 MB / 1.324 GB, free: 84.53 MB / 0.5261 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=13 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_functions.h:1244: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); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.o] Error 1