Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 187 kB / 8.134 MB, free: 2.09 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008756/0.0008756, allocations: 92.11 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.2e-06/5.23e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1757, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.2781, allocations: 103.8 MB / 490.7 MB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.2784, allocations: 87.89 kB / 490.8 MB, free: 14.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2283/0.5067, allocations: 40.77 MB / 0.5191 GB, free: 90.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001382/0.5068, allocations: 55.94 kB / 0.5191 GB, free: 90.03 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.003878/0.5107, allocations: 2.002 MB / 0.5211 GB, free: 87.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.5107, allocations: 8.031 kB / 0.5211 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008675/0.5116, allocations: 269.1 kB / 0.5213 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.5141, allocations: 1.387 MB / 0.5227 GB, free: 86.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.317e-05/0.5142, allocations: 60 kB / 0.5228 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003224/0.5145, allocations: 119.9 kB / 0.5229 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002832/0.5174, allocations: 1.737 MB / 0.5246 GB, free: 84.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.5205, allocations: 2.113 MB / 0.5266 GB, free: 82.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-05/0.5206, allocations: 3.938 kB / 0.5266 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/0.5207, allocations: 4 kB / 0.5266 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-05/0.5208, allocations: 87.67 kB / 0.5267 GB, free: 82.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009736/0.5305, allocations: 7.512 MB / 0.5341 GB, free: 74.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008885/0.5315, allocations: 0.7216 MB / 0.5348 GB, free: 73.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.5326, allocations: 0.8228 MB / 0.5356 GB, free: 72.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000235/0.5328, allocations: 134 kB / 0.5357 GB, free: 72.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.5328, allocations: 43.56 kB / 0.5357 GB, free: 72.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=99): time 3.768e-06/0.5328, allocations: 0 / 0.5357 GB, free: 72.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.006419/0.5393, allocations: 3.992 MB / 0.5396 GB, free: 68.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.91e-05/0.5393, allocations: 64.41 kB / 0.5397 GB, free: 68.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000986/0.5403, allocations: 0.918 MB / 0.5406 GB, free: 67.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.884e-05/0.5404, allocations: 29.7 kB / 0.5406 GB, free: 67.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.5406, allocations: 0.7354 MB / 0.5413 GB, free: 66.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.5408, allocations: 386.2 kB / 0.5417 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.5409, allocations: 4 kB / 0.5417 GB, free: 66.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.855e-05/0.541, allocations: 361.9 kB / 0.5421 GB, free: 66.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007117/0.5417, allocations: 0.6131 MB / 0.5427 GB, free: 65.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.5425, allocations: 0.9521 MB / 0.5436 GB, free: 64.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008887/0.5434, allocations: 0.7753 MB / 0.5443 GB, free: 63.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.5434, allocations: 8 kB / 0.5443 GB, free: 63.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.002736/0.5461, allocations: 2.035 MB / 0.5463 GB, free: 61.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.5462, allocations: 4 kB / 0.5463 GB, free: 61.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5462, allocations: 8 kB / 0.5463 GB, free: 61.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008791/0.5471, allocations: 417.8 kB / 0.5467 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.5484, allocations: 335.5 kB / 0.5471 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003469/0.5519, allocations: 4.274 MB / 0.5512 GB, free: 56.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009763/0.5528, allocations: 47.8 kB / 0.5513 GB, free: 56.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.553, allocations: 59.98 kB / 0.5513 GB, free: 56.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.5532, allocations: 144.6 kB / 0.5515 GB, free: 56.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.5534, allocations: 134.3 kB / 0.5516 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002679/0.5561, allocations: 1.809 MB / 0.5534 GB, free: 54.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.5561, allocations: 16 kB / 0.5534 GB, free: 54.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5562, allocations: 4 kB / 0.5534 GB, free: 54.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.5562, allocations: 7.969 kB / 0.5534 GB, free: 54.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.5615, allocations: 3.732 MB / 0.557 GB, free: 50.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5615, allocations: 4 kB / 0.557 GB, free: 50.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.5625, allocations: 215.7 kB / 0.5573 GB, free: 50.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.5637, allocations: 460.7 kB / 0.5577 GB, free: 49.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.15e-05/0.5638, allocations: 19.97 kB / 0.5577 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004243/0.568, allocations: 5.724 MB / 0.5633 GB, free: 43.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5681, allocations: 4 kB / 0.5633 GB, free: 43.48 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003416/0.5715, allocations: 2.861 MB / 0.5661 GB, free: 40.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006623/0.5722, allocations: 347.3 kB / 0.5664 GB, free: 40.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003601/0.5725, allocations: 11.98 kB / 0.5664 GB, free: 40.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008249/0.5734, allocations: 43.95 kB / 0.5665 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.5735, allocations: 68.8 kB / 0.5666 GB, free: 40.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.121e-05/0.5736, allocations: 35.98 kB / 0.5666 GB, free: 40.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000827/0.5744, allocations: 0.6892 MB / 0.5673 GB, free: 39.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001308/0.5757, allocations: 388.2 kB / 0.5676 GB, free: 38.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004002/0.5761, allocations: 292 kB / 0.5679 GB, free: 38.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.5784, allocations: 1.948 MB / 0.5698 GB, free: 36.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5784, allocations: 0.9375 kB / 0.5698 GB, free: 36.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5799, allocations: 1.253 MB / 0.571 GB, free: 35.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.5813, allocations: 288.3 kB / 0.5713 GB, free: 35.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.5866, allocations: 3.37 MB / 0.5746 GB, free: 31.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/0.5879, allocations: 1.769 MB / 0.5763 GB, free: 29.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5879, allocations: 0 / 0.5763 GB, free: 29.84 MB / 378.7 MB Notification: Performance of Templates: time 0.02843/0.6163, allocations: 19.97 MB / 0.5958 GB, free: 10.13 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches