Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 trunk/package.mo): time 0.001257/0.001257, allocations: 200.1 kB / 8.536 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009382/0.0009383, allocations: 92.8 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.297e-06/9.327e-06, allocations: 4 kB / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 51.48 MB / 394.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2941/0.3961, allocations: 111.2 MB / 0.4939 GB, free: 14.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.3964, allocations: 90.25 kB / 0.494 GB, free: 14.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2048/0.6013, allocations: 82.83 MB / 0.5749 GB, free: 252 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003271/0.6016, allocations: 79.88 kB / 0.575 GB, free: 172 kB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.1867/0.7884, allocations: 3.247 MB / 0.5782 GB, free: 53.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.7885, allocations: 7.438 kB / 0.5782 GB, free: 53.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004399/0.7929, allocations: 0.7492 MB / 0.5789 GB, free: 52.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007131/0.8, allocations: 3.345 MB / 0.5822 GB, free: 52.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.8002, allocations: 104.8 kB / 0.5823 GB, free: 52.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005389/0.8007, allocations: 195.8 kB / 0.5825 GB, free: 52.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005196/0.8059, allocations: 3.172 MB / 0.5855 GB, free: 52.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007102/0.813, allocations: 3.691 MB / 0.5892 GB, free: 52.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.96e-05/0.8132, allocations: 8.5 kB / 0.5892 GB, free: 52.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002754/0.8135, allocations: 3.812 kB / 0.5892 GB, free: 52.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.8136, allocations: 151.1 kB / 0.5893 GB, free: 52.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.8319, allocations: 13.47 MB / 0.6025 GB, free: 49.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.8332, allocations: 1.061 MB / 0.6035 GB, free: 49.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.835, allocations: 1.362 MB / 0.6048 GB, free: 49.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004799/0.8398, allocations: 3.526 MB / 0.6083 GB, free: 48.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.8399, allocations: 56.59 kB / 0.6083 GB, free: 48.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.8399, allocations: 5.531 kB / 0.6083 GB, free: 48.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.00801/0.8479, allocations: 4.569 MB / 0.6128 GB, free: 46.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.848, allocations: 67.84 kB / 0.6129 GB, free: 46.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.8501, allocations: 1.287 MB / 0.6141 GB, free: 46.72 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.779e-05/0.8502, allocations: 25.7 kB / 0.6141 GB, free: 46.69 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005169/0.8508, allocations: 1.175 MB / 0.6153 GB, free: 45.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003556/0.8511, allocations: 0.5338 MB / 0.6158 GB, free: 45.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.8512, allocations: 3.562 kB / 0.6158 GB, free: 45.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.8514, allocations: 381.6 kB / 0.6162 GB, free: 45.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009807/0.8523, allocations: 0.7379 MB / 0.6169 GB, free: 45.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.8536, allocations: 1.232 MB / 0.6181 GB, free: 44.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.8552, allocations: 1.021 MB / 0.6191 GB, free: 44.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/0.8552, allocations: 7.312 kB / 0.6191 GB, free: 44.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004095/0.8593, allocations: 2.603 MB / 0.6216 GB, free: 44.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.8593, allocations: 3.812 kB / 0.6216 GB, free: 44.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/0.8594, allocations: 13.91 kB / 0.6217 GB, free: 44.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000909/0.8603, allocations: 359.3 kB / 0.622 GB, free: 44.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.8619, allocations: 419.4 kB / 0.6224 GB, free: 44.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005686/0.8676, allocations: 7.259 MB / 0.6295 GB, free: 39.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.8693, allocations: 40.14 kB / 0.6295 GB, free: 39.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/0.8696, allocations: 77.97 kB / 0.6296 GB, free: 39.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (216): * Single equations (assignments): 211 * 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: 4 * 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: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004211/0.87, allocations: 162.1 kB / 0.6298 GB, free: 39.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004707/0.8705, allocations: 183.1 kB / 0.6299 GB, free: 39.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004826/0.8753, allocations: 2.416 MB / 0.6323 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.8753, allocations: 20.59 kB / 0.6323 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.596e-05/0.8754, allocations: 9.656 kB / 0.6323 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.8754, allocations: 10.39 kB / 0.6323 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.8858, allocations: 5.221 MB / 0.6374 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.8858, allocations: 6.531 kB / 0.6374 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.8868, allocations: 212.9 kB / 0.6376 GB, free: 35.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.8882, allocations: 0.5116 MB / 0.6381 GB, free: 35.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.8884, allocations: 23.58 kB / 0.6382 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009027/0.8974, allocations: 11.38 MB / 0.6493 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.8975, allocations: 4.812 kB / 0.6493 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005417/0.9029, allocations: 3.54 MB / 0.6527 GB, free: 24.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.9041, allocations: 433.3 kB / 0.6531 GB, free: 24.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006091/0.9047, allocations: 17.53 kB / 0.6532 GB, free: 24.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.9061, allocations: 47.61 kB / 0.6532 GB, free: 24.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.9063, allocations: 84.91 kB / 0.6533 GB, free: 24.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.9065, allocations: 42.88 kB / 0.6533 GB, free: 24 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002426/0.9089, allocations: 0.9612 MB / 0.6543 GB, free: 23.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003436/0.9124, allocations: 0.5645 MB / 0.6548 GB, free: 23.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (112): * Single equations (assignments): 106 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(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.0007701/0.9131, allocations: 363.5 kB / 0.6552 GB, free: 23.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003952/0.9171, allocations: 2.368 MB / 0.6575 GB, free: 22.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.9171, allocations: 1.438 kB / 0.6575 GB, free: 22.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002432/0.9196, allocations: 1.629 MB / 0.6591 GB, free: 21.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.9221, allocations: 377.2 kB / 0.6594 GB, free: 21.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.9343, allocations: 4.85 MB / 0.6642 GB, free: 19.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003502/0.9378, allocations: 2.49 MB / 0.6666 GB, free: 17.98 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/0.9378, allocations: 4 kB / 0.6666 GB, free: 17.97 MB / 442.7 MB Notification: Performance of Templates: time 0.05017/0.988, allocations: 28.65 MB / 0.6946 GB, free: 16.17 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches