Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") [: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.001433/0.001433, allocations: 184.1 kB / 8.135 MB, free: 2.191 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.164/1.164, allocations: 221.4 MB / 230 MB, free: 3.09 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.0008891/0.000889, allocations: 90.66 kB / 280.8 MB, free: 1.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.142e-06/6.182e-06, allocations: 0 / 336.5 MB, free: 9.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1796, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09906/0.2787, allocations: 102.3 MB / 489.2 MB, free: 480 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.2789, allocations: 87.89 kB / 489.3 MB, free: 392 kB / 362.7 MB Notification: Performance of FrontEnd: time 0.2194/0.4983, allocations: 40.46 MB / 0.5174 GB, free: 91.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.485e-05/0.4985, allocations: 55.94 kB / 0.5174 GB, free: 91.91 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.002859/0.5013, allocations: 1.995 MB / 0.5194 GB, free: 89.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.5014, allocations: 12.03 kB / 0.5194 GB, free: 89.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005969/0.502, allocations: 265.1 kB / 0.5196 GB, free: 89.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/0.5041, allocations: 1.423 MB / 0.521 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.5041, allocations: 56 kB / 0.5211 GB, free: 88.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.5043, allocations: 111.9 kB / 0.5212 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002381/0.5067, allocations: 1.78 MB / 0.5229 GB, free: 86.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.5094, allocations: 2.092 MB / 0.525 GB, free: 84.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.994e-05/0.5095, allocations: 11.91 kB / 0.525 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.5096, allocations: 0 / 0.525 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.724e-05/0.5097, allocations: 83.5 kB / 0.5251 GB, free: 83.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008502/0.5182, allocations: 7.174 MB / 0.5321 GB, free: 76.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.5193, allocations: 0.7269 MB / 0.5328 GB, free: 75.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008888/0.5202, allocations: 0.7398 MB / 0.5335 GB, free: 75.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002233/0.5204, allocations: 129.8 kB / 0.5336 GB, free: 74.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.5204, allocations: 43.34 kB / 0.5337 GB, free: 74.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.455e-06/0.5204, allocations: 4 kB / 0.5337 GB, free: 74.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=103): time 0.006036/0.5265, allocations: 3.969 MB / 0.5375 GB, free: 70.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/0.5265, allocations: 64.34 kB / 0.5376 GB, free: 70.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.5276, allocations: 1.005 MB / 0.5386 GB, free: 69.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.544e-05/0.5277, allocations: 25.7 kB / 0.5386 GB, free: 69.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.5279, allocations: 0.7124 MB / 0.5393 GB, free: 69.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.528, allocations: 342.9 kB / 0.5396 GB, free: 68.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/0.5281, allocations: 7.938 kB / 0.5396 GB, free: 68.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.5282, allocations: 353.9 kB / 0.54 GB, free: 68.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006813/0.5289, allocations: 0.6 MB / 0.5406 GB, free: 67.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007656/0.5296, allocations: 0.8922 MB / 0.5414 GB, free: 66.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/0.5305, allocations: 0.7407 MB / 0.5422 GB, free: 66.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.5305, allocations: 0 / 0.5422 GB, free: 66.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00329/0.5338, allocations: 2.275 MB / 0.5444 GB, free: 63.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.5338, allocations: 4 kB / 0.5444 GB, free: 63.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5338, allocations: 12.19 kB / 0.5444 GB, free: 63.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/0.5356, allocations: 0.7665 MB / 0.5451 GB, free: 62.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008443/0.5365, allocations: 235.6 kB / 0.5454 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008034/0.5445, allocations: 7.779 MB / 0.553 GB, free: 54.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/0.5454, allocations: 43.95 kB / 0.553 GB, free: 54.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.502e-05/0.5455, allocations: 48 kB / 0.553 GB, free: 54.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001738/0.5457, allocations: 136.8 kB / 0.5532 GB, free: 54.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.5459, allocations: 134.3 kB / 0.5533 GB, free: 54.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.5484, allocations: 1.812 MB / 0.5551 GB, free: 52.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.5484, allocations: 8 kB / 0.5551 GB, free: 52.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5484, allocations: 4 kB / 0.5551 GB, free: 52.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.5484, allocations: 3.984 kB / 0.5551 GB, free: 52.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/0.5534, allocations: 3.685 MB / 0.5587 GB, free: 48.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.5534, allocations: 4 kB / 0.5587 GB, free: 48.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008864/0.5543, allocations: 183.8 kB / 0.5589 GB, free: 48.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.5554, allocations: 463 kB / 0.5593 GB, free: 48.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-05/0.5555, allocations: 19.98 kB / 0.5593 GB, free: 48.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004151/0.5596, allocations: 5.722 MB / 0.5649 GB, free: 42.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5597, allocations: 4 kB / 0.5649 GB, free: 42.02 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003095/0.5628, allocations: 2.797 MB / 0.5677 GB, free: 39.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004988/0.5633, allocations: 355.3 kB / 0.568 GB, free: 38.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.5635, allocations: 12 kB / 0.568 GB, free: 38.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/0.5642, allocations: 47.94 kB / 0.568 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.5644, allocations: 64.62 kB / 0.5681 GB, free: 38.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.485e-05/0.5645, allocations: 31.98 kB / 0.5681 GB, free: 38.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007953/0.5653, allocations: 0.7558 MB / 0.5689 GB, free: 37.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001139/0.5664, allocations: 404.2 kB / 0.5693 GB, free: 37.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 83 * 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.0003635/0.5668, allocations: 275 kB / 0.5695 GB, free: 37.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.5691, allocations: 1.859 MB / 0.5713 GB, free: 35.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5691, allocations: 0 / 0.5713 GB, free: 35.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.5706, allocations: 1.238 MB / 0.5726 GB, free: 34.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.5718, allocations: 261.6 kB / 0.5728 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004583/0.5763, allocations: 3.27 MB / 0.576 GB, free: 30.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001245/0.5776, allocations: 1.804 MB / 0.5778 GB, free: 28.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5776, allocations: 0 / 0.5778 GB, free: 28.62 MB / 378.7 MB Notification: Performance of Templates: time 0.02726/0.6049, allocations: 20.11 MB / 0.5974 GB, free: 8.75 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches