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_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|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.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|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.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 181 kB / 16.38 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.243/1.243, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0009702/0.0009701, allocations: 89.45 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 8 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3142, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4115/0.7258, allocations: 147.4 MB / 0.5361 GB, free: 49.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.726, allocations: 105.2 kB / 0.5362 GB, free: 49.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.224/1.95, allocations: 349.5 MB / 0.8775 GB, free: 44.25 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.95, allocations: 0 / 0.8775 GB, free: 44.25 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009/1.951, allocations: 251.7 kB / 0.8778 GB, free: 44.23 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.03968/1.991, allocations: 10.85 MB / 0.8884 GB, free: 40.76 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/1.991, allocations: 11.44 kB / 0.8884 GB, free: 40.76 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02811/2.019, allocations: 4.761 MB / 0.893 GB, free: 40.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02676/2.046, allocations: 9.509 MB / 0.9023 GB, free: 39.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009077/2.047, allocations: 0.7757 MB / 0.9031 GB, free: 39.02 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005855/2.053, allocations: 1.025 MB / 0.9041 GB, free: 39.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04811/2.101, allocations: 17.01 MB / 0.9207 GB, free: 37.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005435/2.101, allocations: 19.19 kB / 0.9207 GB, free: 37.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0039/2.105, allocations: 449 kB / 0.9211 GB, free: 37.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009042/2.106, allocations: 0.7505 MB / 0.9219 GB, free: 37.74 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/2.139, allocations: 15.33 MB / 0.9368 GB, free: 37.63 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/2.241, allocations: 55.89 MB / 0.9914 GB, free: 6.562 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3743/2.615, allocations: 31.08 MB / 1.022 GB, free: 34.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02103/2.636, allocations: 10.24 MB / 1.032 GB, free: 33.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.71e-05/2.637, allocations: 80.7 kB / 1.032 GB, free: 33.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=410): time 7.154e-06/2.637, allocations: 0 / 1.032 GB, free: 33.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=435): time 0.05263/2.689, allocations: 22.21 MB / 1.054 GB, free: 29.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/2.689, allocations: 128.1 kB / 1.054 GB, free: 29.85 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007702/2.697, allocations: 4.11 MB / 1.058 GB, free: 29.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001198/2.698, allocations: 96.67 kB / 1.058 GB, free: 29.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004383/2.703, allocations: 4.639 MB / 1.062 GB, free: 27.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003137/2.706, allocations: 1.486 MB / 1.064 GB, free: 26.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007364/2.707, allocations: 121.2 kB / 1.064 GB, free: 26.27 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004213/2.707, allocations: 0.5417 MB / 1.064 GB, free: 25.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004649/2.712, allocations: 2.943 MB / 1.067 GB, free: 25.94 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005385/2.717, allocations: 4.944 MB / 1.072 GB, free: 23.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005764/2.723, allocations: 3.986 MB / 1.076 GB, free: 23.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.218e-05/2.723, allocations: 18.94 kB / 1.076 GB, free: 23.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.0172/2.74, allocations: 9.798 MB / 1.086 GB, free: 23.01 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.413e-05/2.74, allocations: 29.84 kB / 1.086 GB, free: 23.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/2.74, allocations: 63.66 kB / 1.086 GB, free: 23.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004491/2.745, allocations: 1.661 MB / 1.087 GB, free: 22.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005656/2.751, allocations: 1.338 MB / 1.089 GB, free: 22.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02162/2.772, allocations: 16.94 MB / 1.105 GB, free: 16.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006397/2.779, allocations: 343 kB / 1.105 GB, free: 16.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/2.781, allocations: 279.7 kB / 1.106 GB, free: 16.18 MB / 490.7 MB 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.01027/2.791, allocations: 3.887 MB / 1.11 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002114/2.793, allocations: 499.6 kB / 1.11 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01585/2.809, allocations: 7.925 MB / 1.118 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-05/2.809, allocations: 46.19 kB / 1.118 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.933e-05/2.809, allocations: 15.47 kB / 1.118 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.66e-05/2.809, allocations: 26.36 kB / 1.118 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03477/2.844, allocations: 17.75 MB / 1.135 GB, free: 3.039 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/2.844, allocations: 3.75 kB / 1.135 GB, free: 3.039 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003289/2.847, allocations: 0.7547 MB / 1.136 GB, free: 3.012 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004163/2.851, allocations: 1.56 MB / 1.137 GB, free: 2.625 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006296/2.852, allocations: 103.3 kB / 1.138 GB, free: 2.562 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/2.874, allocations: 19.93 MB / 1.157 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/2.874, allocations: 12.92 kB / 1.157 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02047/2.895, allocations: 12.41 MB / 1.169 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004546/2.899, allocations: 1.176 MB / 1.17 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001574/2.901, allocations: 95.89 kB / 1.17 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003154/2.904, allocations: 243.6 kB / 1.171 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008264/2.905, allocations: 339.3 kB / 1.171 GB, free: 9.816 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/2.905, allocations: 129 kB / 1.171 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00564/2.911, allocations: 3.104 MB / 1.174 GB, free: 7.105 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/2.911, allocations: 0 / 1.174 GB, free: 7.105 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01081/2.922, allocations: 1.916 MB / 1.176 GB, free: 5.195 MB / 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.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,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.001452/2.923, allocations: 0.555 MB / 1.176 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01545/2.938, allocations: 8.266 MB / 1.185 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/2.938, allocations: 0 / 1.185 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009836/2.948, allocations: 4.77 MB / 1.189 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008543/2.957, allocations: 1.177 MB / 1.19 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3514/3.308, allocations: 23.6 MB / 1.213 GB, free: 89.55 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01082/3.319, allocations: 6.964 MB / 1.22 GB, free: 88.63 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006496/3.326, allocations: 1.862 MB / 1.222 GB, free: 88.58 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/3.327, allocations: 381.8 kB / 1.222 GB, free: 88.58 MB / 0.5261 GB Notification: Performance of SimCode: time 1.293e-06/3.327, allocations: 0 / 1.222 GB, free: 88.58 MB / 0.5261 GB Notification: Performance of Templates: time 0.1339/3.461, allocations: 82.26 MB / 1.303 GB, free: 84.59 MB / 0.5261 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_Initialize -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=11 -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_Initialize.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_functions.h:1207: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_Initialize.o] Error 1