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.001144/0.001144, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.536/1.536, allocations: 223.3 MB / 241.4 MB, free: 9.883 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.0008354/0.0008355, allocations: 97.22 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 11.94 kB / 352.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2095, allocations: 50.39 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.5711, allocations: 154.2 MB / 0.5439 GB, free: 45.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.5713, allocations: 108.4 kB / 0.544 GB, free: 45.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.26/1.831, allocations: 453.7 MB / 0.9871 GB, free: 2.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.831, allocations: 0 / 0.9871 GB, free: 2.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001215/1.832, allocations: 323.6 kB / 0.9874 GB, free: 2.523 MB / 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.04416/1.877, allocations: 13.84 MB / 1.001 GB, free: 4.562 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/1.877, allocations: 8.031 kB / 1.001 GB, free: 4.555 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5141/2.391, allocations: 5.859 MB / 1.007 GB, free: 27.89 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02084/2.412, allocations: 11.05 MB / 1.017 GB, free: 27.3 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008994/2.413, allocations: 1.03 MB / 1.018 GB, free: 27.27 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004783/2.417, allocations: 1.353 MB / 1.02 GB, free: 27.27 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04415/2.462, allocations: 22.56 MB / 1.042 GB, free: 25.61 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003429/2.462, allocations: 32.3 kB / 1.042 GB, free: 25.6 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001658/2.464, allocations: 0.5807 MB / 1.042 GB, free: 25.6 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007651/2.464, allocations: 0.9776 MB / 1.043 GB, free: 25.57 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03433/2.499, allocations: 19.57 MB / 1.063 GB, free: 25.45 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1155/2.614, allocations: 72.75 MB / 1.134 GB, free: 8.75 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0319/2.646, allocations: 42.28 MB / 1.175 GB, free: 1.969 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008062/2.654, allocations: 5.178 MB / 1.18 GB, free: 0 / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02274/2.677, allocations: 12.8 MB / 1.192 GB, free: 6.168 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.866e-05/2.677, allocations: 87.72 kB / 1.192 GB, free: 6.074 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=504): time 7.484e-06/2.677, allocations: 4 kB / 1.192 GB, free: 6.07 MB / 0.5262 GB Notification: Performance of matching and sorting (n=512): time 0.6188/3.296, allocations: 27.26 MB / 1.219 GB, free: 84.5 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/3.296, allocations: 134.9 kB / 1.219 GB, free: 84.4 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008242/3.304, allocations: 5.664 MB / 1.225 GB, free: 83.95 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.0009675/3.305, allocations: 111.7 kB / 1.225 GB, free: 83.92 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.003111/3.309, allocations: 6.133 MB / 1.231 GB, free: 80.71 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.002036/3.311, allocations: 1.753 MB / 1.233 GB, free: 79.62 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004263/3.311, allocations: 151.9 kB / 1.233 GB, free: 79.62 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.0003447/3.311, allocations: 0.6014 MB / 1.233 GB, free: 79.3 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/3.316, allocations: 3.622 MB / 1.237 GB, free: 79.29 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0059/3.322, allocations: 6.434 MB / 1.243 GB, free: 75.92 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/3.334, allocations: 10.71 MB / 1.254 GB, free: 72.47 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/3.335, allocations: 27.56 kB / 1.254 GB, free: 72.47 MB / 0.5263 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01924/3.354, allocations: 12.01 MB / 1.265 GB, free: 71.73 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/3.354, allocations: 42.19 kB / 1.265 GB, free: 71.73 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001343/3.354, allocations: 94.19 kB / 1.265 GB, free: 71.73 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00364/3.358, allocations: 1.499 MB / 1.267 GB, free: 71.66 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005497/3.363, allocations: 1.649 MB / 1.269 GB, free: 71.66 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/3.383, allocations: 17.89 MB / 1.286 GB, free: 64.88 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006983/3.39, allocations: 432.1 kB / 1.286 GB, free: 64.86 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000896/3.391, allocations: 364.2 kB / 1.287 GB, free: 64.86 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * 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 (862): * Single equations (assignments): 852 * 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.009958/3.401, allocations: 5.188 MB / 1.292 GB, free: 64.68 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/3.402, allocations: 0.5952 MB / 1.292 GB, free: 64.37 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01457/3.417, allocations: 9.319 MB / 1.302 GB, free: 63.62 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007779/3.424, allocations: 5.859 MB / 1.307 GB, free: 61.38 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.736e-05/3.424, allocations: 16.97 kB / 1.307 GB, free: 61.38 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.425e-05/3.424, allocations: 25.78 kB / 1.307 GB, free: 61.38 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03583/3.46, allocations: 21.09 MB / 1.328 GB, free: 52.76 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/3.46, allocations: 11.06 kB / 1.328 GB, free: 52.76 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/3.464, allocations: 0.8574 MB / 1.329 GB, free: 52.73 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003864/3.468, allocations: 1.542 MB / 1.33 GB, free: 52.32 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004438/3.468, allocations: 127.9 kB / 1.33 GB, free: 52.24 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01973/3.488, allocations: 21.08 MB / 1.351 GB, free: 37.21 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/3.488, allocations: 14.72 kB / 1.351 GB, free: 37.21 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/3.506, allocations: 13.69 MB / 1.364 GB, free: 25.39 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003425/3.509, allocations: 1.361 MB / 1.366 GB, free: 24.16 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/3.511, allocations: 103.7 kB / 1.366 GB, free: 24.06 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002921/3.514, allocations: 308.2 kB / 1.366 GB, free: 23.84 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/3.515, allocations: 407.5 kB / 1.366 GB, free: 23.59 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003449/3.515, allocations: 159 kB / 1.367 GB, free: 23.44 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.006113/3.521, allocations: 3.806 MB / 1.37 GB, free: 20.31 MB / 0.5263 GB Notification: Performance of sort global known variables: time 2.81e-07/3.521, allocations: 0 / 1.37 GB, free: 20.31 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.009511/3.531, allocations: 2.382 MB / 1.373 GB, free: 17.94 MB / 0.5263 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 (441): * Single equations (assignments): 430 * 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,52.1%) 64,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/3.532, allocations: 0.6089 MB / 1.373 GB, free: 17.48 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.0139/3.546, allocations: 9.838 MB / 1.383 GB, free: 8.879 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/3.546, allocations: 4 kB / 1.383 GB, free: 8.875 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.3127/3.858, allocations: 6.186 MB / 1.389 GB, free: 78.66 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0132/3.872, allocations: 1.557 MB / 1.39 GB, free: 78.64 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05071/3.922, allocations: 29.71 MB / 1.419 GB, free: 66.82 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0137/3.936, allocations: 8.861 MB / 1.428 GB, free: 65.68 MB / 0.5263 GB Notification: Performance of simCode: alias equations: time 0.008861/3.945, allocations: 2.522 MB / 1.431 GB, free: 65.44 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/3.947, allocations: 452.1 kB / 1.431 GB, free: 65.44 MB / 0.5263 GB Notification: Performance of SimCode: time 1.733e-06/3.947, allocations: 0 / 1.431 GB, free: 65.44 MB / 0.5263 GB Notification: Performance of Templates: time 0.1676/4.114, allocations: 99.26 MB / 1.528 GB, free: 42.14 MB / 0.5263 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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_functions.h:1169: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:1178: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