Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009468/0.0009468, allocations: 95.52 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000213/0.000213, allocations: 4 kB / 358 MB, free: 9.508 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1858, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.5351, allocations: 154.8 MB / 0.551 GB, free: 36.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003511/0.5355, allocations: 103.1 kB / 0.5511 GB, free: 36.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.284/1.819, allocations: 478.9 MB / 1.019 GB, free: 4.566 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.819, allocations: 0 / 1.019 GB, free: 4.566 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001483/1.821, allocations: 327.6 kB / 1.019 GB, free: 4.246 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.04988/1.871, allocations: 14.06 MB / 1.033 GB, free: 6.066 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.871, allocations: 12.03 kB / 1.033 GB, free: 6.055 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03246/1.903, allocations: 5.89 MB / 1.039 GB, free: 144 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5152/2.419, allocations: 11.74 MB / 1.05 GB, free: 29.93 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009433/2.419, allocations: 1.029 MB / 1.051 GB, free: 29.89 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00518/2.425, allocations: 1.354 MB / 1.052 GB, free: 29.89 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04766/2.472, allocations: 22.45 MB / 1.074 GB, free: 28.24 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003682/2.473, allocations: 23.73 kB / 1.074 GB, free: 28.24 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002281/2.475, allocations: 0.5791 MB / 1.075 GB, free: 28.24 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007374/2.476, allocations: 0.9751 MB / 1.076 GB, free: 28.21 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03446/2.51, allocations: 19.57 MB / 1.095 GB, free: 28.09 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/2.629, allocations: 73.36 MB / 1.167 GB, free: 11.94 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03696/2.666, allocations: 42.59 MB / 1.208 GB, free: 4.848 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03008/2.696, allocations: 12.8 MB / 1.221 GB, free: 14.89 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/2.696, allocations: 93.17 kB / 1.221 GB, free: 14.81 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=514): time 9.828e-06/2.696, allocations: 3.172 kB / 1.221 GB, free: 14.81 MB / 0.5418 GB Notification: Performance of matching and sorting (n=522): time 0.6427/3.339, allocations: 27.53 MB / 1.248 GB, free: 88.96 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/3.339, allocations: 131.6 kB / 1.248 GB, free: 88.86 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01015/3.349, allocations: 5.064 MB / 1.253 GB, free: 88.5 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.00122/3.35, allocations: 115.2 kB / 1.253 GB, free: 88.47 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.005077/3.356, allocations: 6.124 MB / 1.259 GB, free: 85.73 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.00347/3.359, allocations: 1.783 MB / 1.261 GB, free: 84.61 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006854/3.36, allocations: 155.4 kB / 1.261 GB, free: 84.61 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0004306/3.36, allocations: 0.6067 MB / 1.261 GB, free: 84.3 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004816/3.365, allocations: 3.669 MB / 1.265 GB, free: 84.28 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006148/3.371, allocations: 6.443 MB / 1.271 GB, free: 80.94 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007429/3.379, allocations: 5.044 MB / 1.276 GB, free: 80.88 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/3.379, allocations: 26.91 kB / 1.276 GB, free: 80.88 MB / 0.5419 GB Notification: Performance of matching and sorting (n=970) (initialization): time 0.02203/3.401, allocations: 12.1 MB / 1.288 GB, free: 80.22 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002446/3.401, allocations: 43.12 kB / 1.288 GB, free: 80.22 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002567/3.401, allocations: 92.62 kB / 1.288 GB, free: 80.22 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004388/3.406, allocations: 1.512 MB / 1.29 GB, free: 80.17 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006668/3.413, allocations: 1.67 MB / 1.291 GB, free: 80.17 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02167/3.434, allocations: 18.34 MB / 1.309 GB, free: 73.43 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007301/3.442, allocations: 426.7 kB / 1.309 GB, free: 73.42 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002037/3.444, allocations: 367.4 kB / 1.31 GB, free: 73.42 MB / 0.5419 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.0143/3.458, allocations: 5.189 MB / 1.315 GB, free: 73.25 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003092/3.461, allocations: 0.601 MB / 1.315 GB, free: 72.93 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01971/3.481, allocations: 9.46 MB / 1.325 GB, free: 72.32 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009584/3.49, allocations: 5.9 MB / 1.33 GB, free: 72.13 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.062e-05/3.491, allocations: 19.97 kB / 1.33 GB, free: 72.13 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001029/3.491, allocations: 25.92 kB / 1.331 GB, free: 72.13 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05216/3.543, allocations: 21.32 MB / 1.351 GB, free: 66.34 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/3.543, allocations: 7.188 kB / 1.351 GB, free: 66.34 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003856/3.547, allocations: 0.8788 MB / 1.352 GB, free: 66.32 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00436/3.551, allocations: 1.543 MB / 1.354 GB, free: 65.91 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008808/3.552, allocations: 131.2 kB / 1.354 GB, free: 65.83 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/3.573, allocations: 21.57 MB / 1.375 GB, free: 50.61 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/3.573, allocations: 10.84 kB / 1.375 GB, free: 50.61 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0193/3.592, allocations: 14.77 MB / 1.389 GB, free: 43.16 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003937/3.596, allocations: 1.377 MB / 1.391 GB, free: 42.34 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009984/3.597, allocations: 109.3 kB / 1.391 GB, free: 42.27 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/3.6, allocations: 304.8 kB / 1.391 GB, free: 42.2 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008147/3.601, allocations: 416.7 kB / 1.391 GB, free: 42.13 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003265/3.601, allocations: 159.3 kB / 1.392 GB, free: 42.09 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.005959/3.607, allocations: 3.809 MB / 1.395 GB, free: 40.46 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.793e-06/3.607, allocations: 0 / 1.395 GB, free: 40.46 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.009496/3.617, allocations: 2.402 MB / 1.398 GB, free: 38.08 MB / 0.5419 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%) 1,(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.001572/3.618, allocations: 0.6024 MB / 1.398 GB, free: 37.61 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.01305/3.631, allocations: 9.955 MB / 1.408 GB, free: 29.04 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/3.631, allocations: 0 / 1.408 GB, free: 29.04 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.00737/3.639, allocations: 5.491 MB / 1.413 GB, free: 24.22 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006858/3.646, allocations: 1.498 MB / 1.415 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3395/3.985, allocations: 30.48 MB / 1.445 GB, free: 68.24 MB / 0.5419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01716/4.002, allocations: 9.099 MB / 1.453 GB, free: 67.23 MB / 0.5419 GB Notification: Performance of simCode: alias equations: time 0.01133/4.014, allocations: 2.529 MB / 1.456 GB, free: 67.17 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/4.016, allocations: 460.2 kB / 1.456 GB, free: 67.17 MB / 0.5419 GB Notification: Performance of SimCode: time 1.603e-06/4.016, allocations: 0 / 1.456 GB, free: 67.17 MB / 0.5419 GB Notification: Performance of Templates: time 0.1677/4.184, allocations: 98.94 MB / 1.553 GB, free: 59.46 MB / 0.5419 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile make -j1 -f Modelica_trunk_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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_model.h:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_functions.h:1250: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_functions.h:1259: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.o] Error 1