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.IMS_Start.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.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.399/1.399, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001017/0.001017, allocations: 105.5 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003981, allocations: 8 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3479, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.8333, allocations: 162.7 MB / 0.551 GB, free: 42.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.8337, allocations: 104.9 kB / 0.5511 GB, free: 42.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.988/2.822, allocations: 0.5727 GB / 1.124 GB, free: 28.26 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.104e-06/2.822, allocations: 0 / 1.124 GB, free: 28.26 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001963/2.824, allocations: 424.8 kB / 1.124 GB, free: 28.19 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.06637/2.891, allocations: 17.97 MB / 1.142 GB, free: 22.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/2.891, allocations: 9.188 kB / 1.142 GB, free: 22.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04198/2.933, allocations: 7.866 MB / 1.149 GB, free: 21.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03779/2.97, allocations: 14.86 MB / 1.164 GB, free: 14.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001978/2.973, allocations: 1.31 MB / 1.165 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008885/2.981, allocations: 1.731 MB / 1.167 GB, free: 11.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08237/3.064, allocations: 29.48 MB / 1.196 GB, free: 2.957 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008283/3.065, allocations: 30.84 kB / 1.196 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006046/3.071, allocations: 0.7421 MB / 1.196 GB, free: 2.188 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001485/3.072, allocations: 1.266 MB / 1.198 GB, free: 1.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.382/3.454, allocations: 25.42 MB / 1.223 GB, free: 49.68 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1637/3.618, allocations: 94.08 MB / 1.314 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0418/3.66, allocations: 51.81 MB / 1.365 GB, free: 3.254 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03941/3.699, allocations: 16.54 MB / 1.381 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/3.699, allocations: 106 kB / 1.381 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=703): time 8.376e-06/3.699, allocations: 0 / 1.381 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=711): time 0.4796/4.179, allocations: 39.47 MB / 1.42 GB, free: 93.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/4.179, allocations: 147.2 kB / 1.42 GB, free: 93.83 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01115/4.19, allocations: 6.165 MB / 1.426 GB, free: 93.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001671/4.192, allocations: 144.6 kB / 1.426 GB, free: 93.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004392/4.196, allocations: 7.697 MB / 1.434 GB, free: 89.35 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003202/4.2, allocations: 2.395 MB / 1.436 GB, free: 87.83 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008118/4.201, allocations: 191 kB / 1.436 GB, free: 87.83 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000503/4.201, allocations: 0.6924 MB / 1.437 GB, free: 87.51 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006832/4.208, allocations: 4.908 MB / 1.442 GB, free: 87.48 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008806/4.217, allocations: 8.136 MB / 1.45 GB, free: 83.63 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009961/4.227, allocations: 6.577 MB / 1.456 GB, free: 83.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001601/4.227, allocations: 36.69 kB / 1.456 GB, free: 83.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.0337/4.261, allocations: 16 MB / 1.472 GB, free: 82.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002801/4.261, allocations: 49.69 kB / 1.472 GB, free: 82.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002881/4.261, allocations: 107.8 kB / 1.472 GB, free: 82.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006322/4.268, allocations: 2.457 MB / 1.474 GB, free: 82.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008802/4.276, allocations: 2.065 MB / 1.476 GB, free: 82.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03375/4.31, allocations: 28.99 MB / 1.504 GB, free: 68.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01078/4.321, allocations: 0.5387 MB / 1.505 GB, free: 68.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002898/4.324, allocations: 441.5 kB / 1.505 GB, free: 68.33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1076): * Single equations (assignments): 1063 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 8 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,38.0%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01994/4.344, allocations: 6.751 MB / 1.512 GB, free: 65.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003286/4.347, allocations: 0.7648 MB / 1.513 GB, free: 64.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03098/4.378, allocations: 13.31 MB / 1.526 GB, free: 59.15 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01508/4.393, allocations: 8.315 MB / 1.534 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001158/4.393, allocations: 30.45 kB / 1.534 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001594/4.394, allocations: 34.27 kB / 1.534 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06884/4.462, allocations: 28.55 MB / 1.562 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001225/4.463, allocations: 4.406 kB / 1.562 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00661/4.469, allocations: 1.148 MB / 1.563 GB, free: 35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007223/4.477, allocations: 2.507 MB / 1.565 GB, free: 33.08 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001945/4.479, allocations: 155.8 kB / 1.566 GB, free: 32.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4026/4.881, allocations: 33.81 MB / 1.599 GB, free: 79.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/4.881, allocations: 13.72 kB / 1.599 GB, free: 79.26 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03166/4.913, allocations: 19.72 MB / 1.618 GB, free: 77.41 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006408/4.919, allocations: 1.789 MB / 1.62 GB, free: 77.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001761/4.921, allocations: 133.4 kB / 1.62 GB, free: 77.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004722/4.926, allocations: 427.3 kB / 1.62 GB, free: 77.31 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/4.927, allocations: 0.5391 MB / 1.621 GB, free: 77.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004399/4.928, allocations: 199 kB / 1.621 GB, free: 77.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009003/4.937, allocations: 4.664 MB / 1.625 GB, free: 77.09 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.01e-07/4.937, allocations: 0 / 1.625 GB, free: 77.09 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01547/4.952, allocations: 3.109 MB / 1.628 GB, free: 77.09 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (583): * Single equations (assignments): 568 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(18,38.3%) 100,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.002249/4.954, allocations: 0.7159 MB / 1.629 GB, free: 76.97 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01994/4.974, allocations: 13.5 MB / 1.642 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/4.974, allocations: 5.109 kB / 1.642 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01143/4.986, allocations: 7.715 MB / 1.65 GB, free: 74.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01205/4.998, allocations: 1.961 MB / 1.652 GB, free: 74.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08072/5.079, allocations: 39.13 MB / 1.69 GB, free: 58.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02216/5.101, allocations: 11.66 MB / 1.701 GB, free: 57.47 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01223/5.113, allocations: 3.279 MB / 1.705 GB, free: 57.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002207/5.115, allocations: 0.5589 MB / 1.705 GB, free: 57.18 MB / 0.5417 GB Notification: Performance of SimCode: time 9.22e-07/5.115, allocations: 0 / 1.705 GB, free: 57.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.9809/6.096, allocations: 131.3 MB / 1.833 GB, free: 56.06 MB / 0.5418 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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_IMS_Start -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=20 -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.IMS_Start.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_functions.h:1374: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); ^ ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_functions.h:1383:1: error: unknown type name '_omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.o] Error 1