Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [: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.0009559/0.0009559, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.178/1.178, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0009192/0.0009192, allocations: 98.48 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.22e-06/5.25e-06, allocations: 0 / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1819, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09304/0.275, allocations: 94.95 MB / 481.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.2752, allocations: 84.67 kB / 481.9 MB, free: 7.727 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2211/0.4963, allocations: 40.2 MB / 0.5099 GB, free: 92.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.274e-05/0.4964, allocations: 35.94 kB / 0.5099 GB, free: 92.81 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002017/0.4984, allocations: 1.587 MB / 0.5115 GB, free: 91.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.4984, allocations: 7.656 kB / 0.5115 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007233/0.4992, allocations: 267.2 kB / 0.5118 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.5008, allocations: 1.104 MB / 0.5128 GB, free: 91.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.5009, allocations: 54.06 kB / 0.5129 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.501, allocations: 97.72 kB / 0.513 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001302/0.5023, allocations: 0.8097 MB / 0.5138 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.504, allocations: 1.203 MB / 0.5149 GB, free: 90.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-05/0.5041, allocations: 7.25 kB / 0.515 GB, free: 90.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.872e-05/0.5042, allocations: 10.06 kB / 0.515 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-05/0.5043, allocations: 38.25 kB / 0.515 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006262/0.5105, allocations: 6.372 MB / 0.5212 GB, free: 85.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.5109, allocations: 227.1 kB / 0.5214 GB, free: 85.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.5111, allocations: 190.7 kB / 0.5216 GB, free: 85.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.5112, allocations: 8.375 kB / 0.5216 GB, free: 85.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.5114, allocations: 239.5 kB / 0.5219 GB, free: 85.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.934e-06/0.5115, allocations: 0 / 0.5219 GB, free: 85.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001791/0.5133, allocations: 1.485 MB / 0.5233 GB, free: 83.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.5133, allocations: 184.4 kB / 0.5235 GB, free: 83.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008666/0.5142, allocations: 0.8566 MB / 0.5243 GB, free: 82.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.5142, allocations: 33.64 kB / 0.5244 GB, free: 82.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.5145, allocations: 0.7272 MB / 0.5251 GB, free: 81.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.5146, allocations: 197 kB / 0.5252 GB, free: 81.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.5147, allocations: 0 / 0.5252 GB, free: 81.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.588e-05/0.5148, allocations: 353.3 kB / 0.5256 GB, free: 81.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.515, allocations: 186.6 kB / 0.5258 GB, free: 81.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/0.5155, allocations: 0.7494 MB / 0.5265 GB, free: 80.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.5159, allocations: 327.3 kB / 0.5268 GB, free: 79.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.5159, allocations: 8 kB / 0.5268 GB, free: 79.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001246/0.5172, allocations: 0.9305 MB / 0.5277 GB, free: 79.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.5172, allocations: 8.828 kB / 0.5277 GB, free: 79.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5172, allocations: 20 kB / 0.5278 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/0.5174, allocations: 62.31 kB / 0.5278 GB, free: 78.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008451/0.5182, allocations: 280.3 kB / 0.5281 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.5195, allocations: 2.483 MB / 0.5305 GB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.5205, allocations: 57.58 kB / 0.5306 GB, free: 76.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.5206, allocations: 60.61 kB / 0.5306 GB, free: 75.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.5207, allocations: 156 kB / 0.5308 GB, free: 75.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.5208, allocations: 123.1 kB / 0.5309 GB, free: 75.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006933/0.5215, allocations: 452.6 kB / 0.5313 GB, free: 75.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5215, allocations: 4 kB / 0.5313 GB, free: 75.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.5215, allocations: 0 / 0.5313 GB, free: 75.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5215, allocations: 11.98 kB / 0.5313 GB, free: 75.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.5233, allocations: 1.653 MB / 0.5329 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.5233, allocations: 4 kB / 0.5329 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.5238, allocations: 103.9 kB / 0.533 GB, free: 73.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.5239, allocations: 49.64 kB / 0.5331 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.5239, allocations: 4 kB / 0.5331 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.525, allocations: 2.461 MB / 0.5355 GB, free: 70.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.525, allocations: 8.156 kB / 0.5355 GB, free: 70.67 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008345/0.5259, allocations: 0.9865 MB / 0.5365 GB, free: 69.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/0.5261, allocations: 235.5 kB / 0.5367 GB, free: 69.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.5263, allocations: 8 kB / 0.5367 GB, free: 69.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.5268, allocations: 31.97 kB / 0.5367 GB, free: 69.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.5269, allocations: 43.8 kB / 0.5368 GB, free: 69.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.5269, allocations: 23.98 kB / 0.5368 GB, free: 69.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006615/0.5276, allocations: 0.611 MB / 0.5374 GB, free: 68.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009021/0.5285, allocations: 280 kB / 0.5377 GB, free: 68.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003001/0.5288, allocations: 279 kB / 0.5379 GB, free: 68.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008698/0.5297, allocations: 0.7916 MB / 0.5387 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5297, allocations: 0 / 0.5387 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004583/0.5302, allocations: 419.3 kB / 0.5391 GB, free: 66.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.5313, allocations: 266.5 kB / 0.5394 GB, free: 66.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.5341, allocations: 1.851 MB / 0.5412 GB, free: 64.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006642/0.5348, allocations: 1.289 MB / 0.5424 GB, free: 63.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5348, allocations: 0 / 0.5424 GB, free: 63.29 MB / 378.7 MB Notification: Performance of Templates: time 0.02043/0.5552, allocations: 12.49 MB / 0.5546 GB, free: 51 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches