Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001727/0.001727, allocations: 192.1 kB / 8.533 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008906/0.0008907, allocations: 91.66 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.174e-06/7.194e-06, allocations: 4 kB / 343.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.07915, allocations: 51.48 MB / 394.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2418/0.3209, allocations: 103.1 MB / 497.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.3213, allocations: 88.52 kB / 497.9 MB, free: 6.266 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1106/0.4319, allocations: 40.56 MB / 0.5258 GB, free: 2.867 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001745/0.4321, allocations: 55.92 kB / 0.5258 GB, free: 2.812 MB / 394.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.004742/0.4368, allocations: 1.999 MB / 0.5278 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4369, allocations: 8.031 kB / 0.5278 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.4383, allocations: 309.1 kB / 0.5281 GB, free: 464 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/0.4414, allocations: 1.419 MB / 0.5295 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-05/0.4415, allocations: 64 kB / 0.5296 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003758/0.4419, allocations: 115.9 kB / 0.5297 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003347/0.4452, allocations: 1.776 MB / 0.5314 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003779/0.449, allocations: 2.092 MB / 0.5334 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.057e-05/0.4491, allocations: 3.984 kB / 0.5334 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/0.4493, allocations: 4 kB / 0.5334 GB, free: 10.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.44e-05/0.4494, allocations: 87.41 kB / 0.5335 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.4619, allocations: 7.171 MB / 0.5405 GB, free: 3.395 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.4633, allocations: 0.7237 MB / 0.5412 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.4644, allocations: 0.7553 MB / 0.542 GB, free: 1.898 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002756/0.4647, allocations: 129.8 kB / 0.5421 GB, free: 1.754 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.4648, allocations: 43.34 kB / 0.5421 GB, free: 1.703 MB / 410.7 MB Notification: Performance of pre-optimization done (n=87): time 2.685e-06/0.4648, allocations: 0 / 0.5421 GB, free: 1.703 MB / 410.7 MB Notification: Performance of matching and sorting (n=103): time 0.008101/0.4729, allocations: 3.978 MB / 0.546 GB, free: 13.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.473, allocations: 64.39 kB / 0.5461 GB, free: 13.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.4747, allocations: 1.001 MB / 0.5471 GB, free: 12.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.815e-05/0.4748, allocations: 25.7 kB / 0.5471 GB, free: 12.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004944/0.4753, allocations: 0.7163 MB / 0.5478 GB, free: 11.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.4756, allocations: 346.8 kB / 0.5481 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-05/0.4757, allocations: 0 / 0.5481 GB, free: 11.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4758, allocations: 353.9 kB / 0.5485 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000879/0.4767, allocations: 0.6078 MB / 0.5491 GB, free: 10.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.4778, allocations: 0.8922 MB / 0.5499 GB, free: 9.512 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.4789, allocations: 0.7407 MB / 0.5506 GB, free: 8.766 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.479, allocations: 0 / 0.5506 GB, free: 8.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004246/0.4832, allocations: 2.276 MB / 0.5529 GB, free: 6.477 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.4833, allocations: 4 kB / 0.5529 GB, free: 6.473 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.4833, allocations: 8 kB / 0.5529 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.4855, allocations: 0.7745 MB / 0.5536 GB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.4867, allocations: 223.6 kB / 0.5538 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.4973, allocations: 7.781 MB / 0.5614 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4985, allocations: 48.02 kB / 0.5615 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.4987, allocations: 48 kB / 0.5615 GB, free: 13.36 MB / 442.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.0002552/0.499, allocations: 133.3 kB / 0.5617 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.4993, allocations: 134.4 kB / 0.5618 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/0.5026, allocations: 1.816 MB / 0.5636 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.5026, allocations: 8 kB / 0.5636 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.5026, allocations: 8.125 kB / 0.5636 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.5027, allocations: 3.984 kB / 0.5636 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006746/0.5094, allocations: 3.67 MB / 0.5672 GB, free: 7.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.5094, allocations: 4 kB / 0.5672 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009503/0.5104, allocations: 192 kB / 0.5674 GB, free: 7.289 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.5118, allocations: 462.9 kB / 0.5678 GB, free: 6.824 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-05/0.5119, allocations: 15.98 kB / 0.5678 GB, free: 6.809 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005805/0.5177, allocations: 5.732 MB / 0.5734 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.5177, allocations: 4 kB / 0.5734 GB, free: 0.7266 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.134/0.6517, allocations: 2.794 MB / 0.5761 GB, free: 147.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006627/0.6524, allocations: 346.8 kB / 0.5765 GB, free: 147.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/0.6526, allocations: 8.891 kB / 0.5765 GB, free: 147.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007813/0.6534, allocations: 49.02 kB / 0.5765 GB, free: 147.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.6536, allocations: 68.16 kB / 0.5766 GB, free: 147.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.349e-05/0.6537, allocations: 28.36 kB / 0.5766 GB, free: 147.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001205/0.6549, allocations: 0.7641 MB / 0.5774 GB, free: 147.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001529/0.6564, allocations: 402.9 kB / 0.5778 GB, free: 147.7 MB / 442.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.0005253/0.657, allocations: 285.3 kB / 0.578 GB, free: 147.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.6597, allocations: 1.849 MB / 0.5798 GB, free: 147.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6597, allocations: 0 / 0.5798 GB, free: 147.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.6613, allocations: 1.245 MB / 0.581 GB, free: 147 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.6627, allocations: 267.2 kB / 0.5813 GB, free: 147 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005386/0.6681, allocations: 3.268 MB / 0.5845 GB, free: 146.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.6694, allocations: 1.8 MB / 0.5863 GB, free: 145.6 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6694, allocations: 0 / 0.5863 GB, free: 145.6 MB / 442.7 MB Notification: Performance of Templates: time 0.03011/0.6995, allocations: 20.15 MB / 0.6059 GB, free: 144.6 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches