Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.335/1.335, allocations: 221.5 MB / 230.3 MB, free: 7.508 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.0008318/0.0008317, allocations: 94.94 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.836e-05/1.839e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 50.42 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.4218, allocations: 99.09 MB / 486.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.4221, allocations: 79.95 kB / 486.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1151/0.5372, allocations: 30.27 MB / 0.5048 GB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5372, allocations: 0 / 0.5048 GB, free: 13.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.069e-05/0.5373, allocations: 31.92 kB / 0.5048 GB, free: 13.13 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002136/0.5394, allocations: 1.364 MB / 0.5061 GB, free: 11.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.5395, allocations: 16.02 kB / 0.5062 GB, free: 11.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005332/0.54, allocations: 198.1 kB / 0.5064 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.5415, allocations: 0.836 MB / 0.5072 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.5416, allocations: 79.83 kB / 0.5072 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.5418, allocations: 71.91 kB / 0.5073 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001161/0.5429, allocations: 0.633 MB / 0.5079 GB, free: 9.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.5445, allocations: 0.9403 MB / 0.5089 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.043e-05/0.5445, allocations: 0 / 0.5089 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-05/0.5446, allocations: 8 kB / 0.5089 GB, free: 8.785 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.5446, allocations: 24 kB / 0.5089 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005029/0.5496, allocations: 3.74 MB / 0.5125 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.5509, allocations: 0.5095 MB / 0.513 GB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.5512, allocations: 219 kB / 0.5132 GB, free: 4.102 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.5513, allocations: 9.312 kB / 0.5133 GB, free: 4.094 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.5517, allocations: 258.1 kB / 0.5135 GB, free: 3.828 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 1.943e-06/0.5517, allocations: 0 / 0.5135 GB, free: 3.828 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.00232/0.554, allocations: 1.411 MB / 0.5149 GB, free: 2.359 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/0.5542, allocations: 479.2 kB / 0.5153 GB, free: 1.777 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009154/0.5552, allocations: 0.7363 MB / 0.516 GB, free: 1.023 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.543e-05/0.5552, allocations: 29.7 kB / 0.5161 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004425/0.5557, allocations: 0.6539 MB / 0.5167 GB, free: 332 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.5558, allocations: 224.7 kB / 0.5169 GB, free: 104 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.5559, allocations: 4 kB / 0.5169 GB, free: 100 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.556, allocations: 345.9 kB / 0.5173 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.5564, allocations: 202.6 kB / 0.5175 GB, free: 15.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006234/0.557, allocations: 0.6404 MB / 0.5181 GB, free: 14.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/0.5575, allocations: 304.2 kB / 0.5184 GB, free: 14.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.5575, allocations: 4 kB / 0.5184 GB, free: 14.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001642/0.5591, allocations: 0.9539 MB / 0.5193 GB, free: 13.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.5592, allocations: 59.41 kB / 0.5194 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.5592, allocations: 15.98 kB / 0.5194 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006021/0.5598, allocations: 182.3 kB / 0.5196 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/0.5605, allocations: 211.7 kB / 0.5198 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.5642, allocations: 3.413 MB / 0.5231 GB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000639/0.5649, allocations: 59.97 kB / 0.5231 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.565, allocations: 48 kB / 0.5232 GB, free: 9.215 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.5651, allocations: 154.2 kB / 0.5233 GB, free: 9.059 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.5653, allocations: 110.7 kB / 0.5234 GB, free: 8.949 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.5665, allocations: 0.6206 MB / 0.5241 GB, free: 8.309 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5665, allocations: 4 kB / 0.5241 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5665, allocations: 4 kB / 0.5241 GB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001118/0.5676, allocations: 0.8865 MB / 0.5249 GB, free: 7.305 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.5699, allocations: 1.587 MB / 0.5265 GB, free: 5.641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.5699, allocations: 4 kB / 0.5265 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000496/0.5704, allocations: 116 kB / 0.5266 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.5708, allocations: 129.6 kB / 0.5267 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.5709, allocations: 8 kB / 0.5267 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.5737, allocations: 3.147 MB / 0.5298 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.5737, allocations: 8.016 kB / 0.5298 GB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.5752, allocations: 1.037 MB / 0.5308 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003115/0.5755, allocations: 231.8 kB / 0.531 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.5756, allocations: 4 kB / 0.531 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.5761, allocations: 35.97 kB / 0.5311 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.5763, allocations: 60.42 kB / 0.5311 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.439e-05/0.5763, allocations: 16 kB / 0.5311 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006656/0.577, allocations: 0.5528 MB / 0.5317 GB, free: 15.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.577, allocations: 0 / 0.5317 GB, free: 15.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000928/0.5779, allocations: 304 kB / 0.532 GB, free: 15.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * 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 (53): * Single equations (assignments): 49 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004439/0.5784, allocations: 306.6 kB / 0.5323 GB, free: 15.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.58, allocations: 0.9596 MB / 0.5332 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.58, allocations: 0 / 0.5332 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006753/0.5807, allocations: 0.498 MB / 0.5337 GB, free: 13.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.5817, allocations: 246.1 kB / 0.5339 GB, free: 13.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.5845, allocations: 1.584 MB / 0.5355 GB, free: 11.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007412/0.5853, allocations: 1.104 MB / 0.5366 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005852/0.5859, allocations: 128.6 kB / 0.5367 GB, free: 10.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.5861, allocations: 67.44 kB / 0.5367 GB, free: 10.63 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5861, allocations: 0 / 0.5367 GB, free: 10.63 MB / 426.7 MB Notification: Performance of Templates: time 0.2178/0.8039, allocations: 14.35 MB / 0.5508 GB, free: 118.1 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches