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_DOL.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_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 180.8 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.279/1.279, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0009474/0.0009475, allocations: 97.98 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.000306, allocations: 15.92 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2162, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3437/0.5599, allocations: 153.8 MB / 0.5423 GB, free: 46.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.5602, allocations: 106.1 kB / 0.5424 GB, free: 46.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/1.748, allocations: 457.2 MB / 0.9889 GB, free: 328 kB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.748, allocations: 4.125 kB / 0.9889 GB, free: 324 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001456/1.75, allocations: 323.7 kB / 0.9892 GB, free: 0 / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05092/1.8, allocations: 14 MB / 1.003 GB, free: 1.879 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/1.801, allocations: 12.56 kB / 1.003 GB, free: 1.867 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5654/2.366, allocations: 5.854 MB / 1.009 GB, free: 28.67 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/2.395, allocations: 11.72 MB / 1.02 GB, free: 28.23 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001137/2.396, allocations: 1.03 MB / 1.021 GB, free: 28.2 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005912/2.402, allocations: 1.35 MB / 1.022 GB, free: 28.19 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04963/2.451, allocations: 22.46 MB / 1.044 GB, free: 26.54 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004519/2.452, allocations: 19.28 kB / 1.044 GB, free: 26.54 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002969/2.455, allocations: 0.5843 MB / 1.045 GB, free: 26.54 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008256/2.456, allocations: 0.9747 MB / 1.046 GB, free: 26.5 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03608/2.492, allocations: 19.58 MB / 1.065 GB, free: 26.38 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1138/2.606, allocations: 72.71 MB / 1.136 GB, free: 9.219 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03197/2.638, allocations: 42.29 MB / 1.177 GB, free: 2.418 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02963/2.667, allocations: 12.63 MB / 1.19 GB, free: 9.883 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/2.667, allocations: 86.81 kB / 1.19 GB, free: 9.789 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=514): time 1.049e-05/2.668, allocations: 2.25 kB / 1.19 GB, free: 9.789 MB / 0.5262 GB Notification: Performance of matching and sorting (n=522): time 0.4376/3.105, allocations: 27.6 MB / 1.217 GB, free: 86.59 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/3.105, allocations: 134.8 kB / 1.217 GB, free: 86.48 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009952/3.115, allocations: 5.048 MB / 1.222 GB, free: 86.09 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001339/3.117, allocations: 110 kB / 1.222 GB, free: 86.06 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003797/3.12, allocations: 6.125 MB / 1.228 GB, free: 82.86 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002034/3.122, allocations: 1.777 MB / 1.23 GB, free: 81.74 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005604/3.123, allocations: 153.9 kB / 1.23 GB, free: 81.74 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003644/3.123, allocations: 0.61 MB / 1.23 GB, free: 81.43 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004774/3.128, allocations: 3.66 MB / 1.234 GB, free: 81.41 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006116/3.134, allocations: 6.444 MB / 1.24 GB, free: 78.06 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00766/3.142, allocations: 5.044 MB / 1.245 GB, free: 78 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/3.142, allocations: 28.97 kB / 1.245 GB, free: 78 MB / 0.5262 GB Notification: Performance of matching and sorting (n=970) (initialization): time 0.02252/3.165, allocations: 12.1 MB / 1.257 GB, free: 77.35 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/3.165, allocations: 44.16 kB / 1.257 GB, free: 77.35 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002281/3.165, allocations: 94.86 kB / 1.257 GB, free: 77.34 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00425/3.169, allocations: 1.507 MB / 1.259 GB, free: 77.29 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0068/3.176, allocations: 1.668 MB / 1.26 GB, free: 77.29 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0205/3.197, allocations: 18.33 MB / 1.278 GB, free: 70.56 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007117/3.204, allocations: 440.4 kB / 1.278 GB, free: 70.54 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001788/3.206, allocations: 367.7 kB / 1.279 GB, free: 70.54 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 415 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,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 (870): * Single equations (assignments): 860 * 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: 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%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01157/3.217, allocations: 5.184 MB / 1.284 GB, free: 70.36 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002049/3.219, allocations: 0.5984 MB / 1.284 GB, free: 70.05 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01829/3.238, allocations: 9.453 MB / 1.294 GB, free: 69.41 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009702/3.247, allocations: 5.905 MB / 1.299 GB, free: 68.26 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.447e-05/3.247, allocations: 17.62 kB / 1.3 GB, free: 68.26 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001152/3.248, allocations: 32.73 kB / 1.3 GB, free: 68.26 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04922/3.297, allocations: 21.29 MB / 1.32 GB, free: 59.55 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.36e-05/3.297, allocations: 10.67 kB / 1.32 GB, free: 59.55 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007578/3.305, allocations: 0.8833 MB / 1.321 GB, free: 59.52 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007875/3.312, allocations: 1.542 MB / 1.323 GB, free: 59.1 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001813/3.314, allocations: 126.4 kB / 1.323 GB, free: 59.03 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03648/3.351, allocations: 21.59 MB / 1.344 GB, free: 43.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.988e-06/3.351, allocations: 11.09 kB / 1.344 GB, free: 43.8 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03782/3.389, allocations: 14.76 MB / 1.358 GB, free: 32.52 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00687/3.396, allocations: 1.373 MB / 1.36 GB, free: 31.27 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002775/3.398, allocations: 110.5 kB / 1.36 GB, free: 31.17 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007435/3.406, allocations: 306.8 kB / 1.36 GB, free: 30.95 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002612/3.409, allocations: 418.8 kB / 1.36 GB, free: 30.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009581/3.41, allocations: 159.6 kB / 1.361 GB, free: 30.55 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01318/3.423, allocations: 3.801 MB / 1.364 GB, free: 27.42 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.011e-06/3.423, allocations: 0 / 1.364 GB, free: 27.42 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02144/3.444, allocations: 2.389 MB / 1.367 GB, free: 25.05 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 440 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,54.9%) 64,(1,100.0%) 5,(1,100.0%) 13,(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.003142/3.448, allocations: 0.609 MB / 1.367 GB, free: 24.59 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02979/3.477, allocations: 9.954 MB / 1.377 GB, free: 16.02 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.582e-05/3.477, allocations: 0 / 1.377 GB, free: 16.02 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01654/3.494, allocations: 5.494 MB / 1.382 GB, free: 11.21 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01544/3.51, allocations: 1.494 MB / 1.384 GB, free: 10.06 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3936/3.903, allocations: 30.84 MB / 1.414 GB, free: 66.3 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01808/3.921, allocations: 9.085 MB / 1.423 GB, free: 65.15 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.009474/3.931, allocations: 2.535 MB / 1.425 GB, free: 64.91 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/3.933, allocations: 455.6 kB / 1.426 GB, free: 64.91 MB / 0.5262 GB Notification: Performance of SimCode: time 1.684e-06/3.933, allocations: 2.188 kB / 1.426 GB, free: 64.91 MB / 0.5262 GB Notification: Performance of Templates: time 0.1688/4.102, allocations: 98.73 MB / 1.522 GB, free: 45.82 MB / 0.5262 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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_DOL -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_DOL.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_functions.h:1249: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.IMC_DOL_functions.h:1258: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.IMC_DOL.o] Error 1