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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009426/0.0009426, allocations: 87.48 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009128/0.0009128, allocations: 180.7 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 223.3 MB / 241.2 MB, free: 5.262 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002354, allocations: 7.875 kB / 300.8 MB, free: 5.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1042, allocations: 50.43 MB / 351.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008458/0.1127, allocations: 8.492 MB / 359.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005031/0.1178, allocations: 2.872 MB / 362.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008361/0.1187, allocations: 27.98 kB / 362.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.1199, allocations: 489.2 kB / 363.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.121, allocations: 484.4 kB / 363.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.1216, allocations: 219.7 kB / 363.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001492/0.1231, allocations: 1.575 MB / 365.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000733/0.1239, allocations: 499.4 kB / 365.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006689/0.1245, allocations: 0.5602 MB / 366.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007068/0.1252, allocations: 0.63 MB / 367.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.1254, allocations: 84 kB / 367.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.1257, allocations: 124 kB / 367.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.1259, allocations: 242.9 kB / 367.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.1262, allocations: 309 kB / 367.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.1276, allocations: 1.515 MB / 369.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1276, allocations: 0 / 369.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1276, allocations: 0 / 369.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1276, allocations: 0 / 369.3 MB, free: 9.262 MB / 302.1 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.002603/0.1302, allocations: 1.567 MB / 370.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1303, allocations: 12.03 kB / 370.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005209/0.1308, allocations: 194.1 kB / 371.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.1321, allocations: 0.7815 MB / 371.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.1323, allocations: 119.8 kB / 372 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.1324, allocations: 107.9 kB / 372.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.1343, allocations: 1.15 MB / 373.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.1344, allocations: 7.938 kB / 373.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.575e-05/0.1345, allocations: 44 kB / 373.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.1345, allocations: 31.94 kB / 373.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.136, allocations: 0.7652 MB / 374.1 MB, free: 4.273 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005396/0.1414, allocations: 3.961 MB / 378 MB, free: 112 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.1429, allocations: 0.6009 MB / 378.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004945/0.1434, allocations: 270.9 kB / 378.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.865e-05/0.1435, allocations: 16.53 kB / 378.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006274/0.1441, allocations: 299.1 kB / 379.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 3.036e-06/0.1441, allocations: 0 / 379.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.004271/0.1484, allocations: 2.116 MB / 381.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002144/0.1486, allocations: 487.1 kB / 381.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.15, allocations: 1.094 MB / 382.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.1501, allocations: 37.7 kB / 382.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000478/0.1505, allocations: 0.6467 MB / 383.6 MB, free: 10.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.1507, allocations: 232.7 kB / 383.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.1508, allocations: 20 kB / 383.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1509, allocations: 353.8 kB / 384.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005158/0.1514, allocations: 250.5 kB / 384.4 MB, free: 9.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008263/0.1523, allocations: 0.7131 MB / 385.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006694/0.1529, allocations: 422.3 kB / 385.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.153, allocations: 4 kB / 385.6 MB, free: 8.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001799/0.1548, allocations: 1.13 MB / 386.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.1548, allocations: 63.41 kB / 386.7 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.1549, allocations: 15.94 kB / 386.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005413/0.1554, allocations: 169.8 kB / 386.9 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.1561, allocations: 207.7 kB / 387.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.1599, allocations: 3.536 MB / 390.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008152/0.1607, allocations: 79.95 kB / 390.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.106e-05/0.1608, allocations: 48 kB / 390.8 MB, free: 2.574 MB / 318.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004268/0.1612, allocations: 297.6 kB / 391.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.1613, allocations: 126.5 kB / 391.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.1627, allocations: 0.7195 MB / 391.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1628, allocations: 7.984 kB / 391.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1628, allocations: 4 kB / 391.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001281/0.1641, allocations: 0.9763 MB / 392.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.1667, allocations: 1.806 MB / 394.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1667, allocations: 4 kB / 394.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004706/0.1672, allocations: 108.1 kB / 394.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003993/0.1676, allocations: 137.5 kB / 395 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.1676, allocations: 16 kB / 395 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/0.1706, allocations: 3.285 MB / 398.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1706, allocations: 3.984 kB / 398.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.1723, allocations: 1.069 MB / 399.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.1726, allocations: 247.6 kB / 399.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.1728, allocations: 20 kB / 399.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.1734, allocations: 51.95 kB / 399.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1735, allocations: 60.38 kB / 399.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.1736, allocations: 19.98 kB / 399.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009327/0.1745, allocations: 0.7328 MB / 400.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1745, allocations: 4 kB / 400.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009936/0.1755, allocations: 311.9 kB / 400.8 MB, free: 8.039 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * 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.0002033/0.1757, allocations: 135.6 kB / 400.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.1775, allocations: 1.1 MB / 402 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.1775, allocations: 4 kB / 402 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008598/0.1784, allocations: 0.5561 MB / 402.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.1797, allocations: 321 kB / 402.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.1832, allocations: 2.71 MB / 405.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006085/0.1838, allocations: 1.082 MB / 406.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005414/0.1844, allocations: 149.8 kB / 406.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.1846, allocations: 79.44 kB / 406.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1846, allocations: 3.938 kB / 406.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of Templates: time 0.02993/0.2145, allocations: 16.25 MB / 423.1 MB, free: 1.719 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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