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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 149.5 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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=250000,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=250000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.359e-05/2.511e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01341/0.01343, allocations: 9.503 MB / 276.8 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005984/0.01942, allocations: 3.065 MB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007601/0.02018, allocations: 27.88 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.02179, allocations: 0.5586 MB / 280.5 MB, free: 9.504 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.02319, allocations: 0.6201 MB / 281.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000665/0.02385, allocations: 315.4 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.02624, allocations: 1.84 MB / 283.3 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007459/0.02698, allocations: 425.3 kB / 283.7 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.02842, allocations: 1.037 MB / 284.7 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009142/0.02933, allocations: 0.5686 MB / 285.3 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002395/0.02957, allocations: 160 kB / 285.4 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004075/0.02998, allocations: 200 kB / 285.6 MB, free: 4.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003451/0.03032, allocations: 346.6 kB / 286 MB, free: 3.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007391/0.03106, allocations: 0.5612 MB / 286.5 MB, free: 3.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002598/0.03366, allocations: 2.017 MB / 288.5 MB, free: 1.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.03366, allocations: 4 kB / 288.5 MB, free: 1.391 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.03366, allocations: 0 / 288.5 MB, free: 1.391 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.03368, allocations: 0 / 288.5 MB, free: 1.391 MB / 266.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.1063/0.14, allocations: 1.949 MB / 290.5 MB, free: 33.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.14, allocations: 13.2 kB / 290.5 MB, free: 33.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007816/0.1408, allocations: 296.9 kB / 290.8 MB, free: 32.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.1422, allocations: 0.7895 MB / 291.6 MB, free: 32.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.1423, allocations: 165.5 kB / 291.7 MB, free: 32.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.1425, allocations: 119.4 kB / 291.9 MB, free: 32.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.1444, allocations: 1.667 MB / 293.5 MB, free: 31.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.1444, allocations: 10.92 kB / 293.5 MB, free: 31.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.537e-05/0.1445, allocations: 43.5 kB / 293.6 MB, free: 31.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.1445, allocations: 30 kB / 293.6 MB, free: 31.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.146, allocations: 0.7257 MB / 294.3 MB, free: 30.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005577/0.1515, allocations: 4.107 MB / 298.4 MB, free: 28.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.1531, allocations: 0.5646 MB / 299 MB, free: 28.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004374/0.1536, allocations: 238.6 kB / 299.2 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.807e-05/0.1536, allocations: 13.69 kB / 299.3 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005772/0.1542, allocations: 323.1 kB / 299.6 MB, free: 27.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.615e-06/0.1542, allocations: 0 / 299.6 MB, free: 27.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004382/0.1586, allocations: 1.841 MB / 301.4 MB, free: 27.1 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.1587, allocations: 480.2 kB / 301.9 MB, free: 26.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.1601, allocations: 1.231 MB / 303.1 MB, free: 25.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.1601, allocations: 40.11 kB / 303.2 MB, free: 25.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004234/0.1606, allocations: 0.776 MB / 303.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.1607, allocations: 261 kB / 304.2 MB, free: 25.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.161, allocations: 235.6 kB / 304.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1611, allocations: 0.5406 MB / 305 MB, free: 24.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004565/0.1616, allocations: 289.5 kB / 305.2 MB, free: 24.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007647/0.1623, allocations: 1.379 MB / 306.6 MB, free: 22.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1634, allocations: 1.115 MB / 307.7 MB, free: 21.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1634, allocations: 4 kB / 307.7 MB, free: 21.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00173/0.1651, allocations: 1.224 MB / 309 MB, free: 20.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.1651, allocations: 64.03 kB / 309 MB, free: 20.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1651, allocations: 12 kB / 309 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.1657, allocations: 176.1 kB / 309.2 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006221/0.1663, allocations: 207.7 kB / 309.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.1698, allocations: 4.772 MB / 314.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008472/0.1706, allocations: 55.44 kB / 314.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/0.1707, allocations: 48.11 kB / 314.3 MB, free: 14.87 MB / 266.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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003909/0.1711, allocations: 346.8 kB / 314.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.1713, allocations: 135.3 kB / 314.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.1725, allocations: 0.6789 MB / 315.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1725, allocations: 15.94 kB / 315.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1725, allocations: 0 / 315.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001044/0.1735, allocations: 0.9411 MB / 316.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.176, allocations: 1.831 MB / 318.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.176, allocations: 4 kB / 318.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.1764, allocations: 95.89 kB / 318.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004121/0.1768, allocations: 140.3 kB / 318.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.1768, allocations: 16 kB / 318.5 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.1794, allocations: 4.471 MB / 322.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1794, allocations: 4 kB / 322.9 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.1808, allocations: 1.124 MB / 324.1 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003233/0.1812, allocations: 163.2 kB / 324.2 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.1813, allocations: 19.98 kB / 324.2 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005755/0.1819, allocations: 31.98 kB / 324.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.182, allocations: 60.33 kB / 324.3 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.182, allocations: 20 kB / 324.4 MB, free: 4.297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007258/0.1827, allocations: 0.7399 MB / 325.1 MB, free: 3.547 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1827, allocations: 0 / 325.1 MB, free: 3.547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009602/0.1837, allocations: 308 kB / 325.4 MB, free: 3.246 MB / 266.7 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001909/0.1839, allocations: 133.2 kB / 325.5 MB, free: 3.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.1855, allocations: 1.287 MB / 326.8 MB, free: 1.754 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.1855, allocations: 8.719 kB / 326.8 MB, free: 1.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.1862, allocations: 0.6644 MB / 327.5 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.1874, allocations: 293.9 kB / 327.8 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.1908, allocations: 2.145 MB / 329.9 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/0.1914, allocations: 0.4931 MB / 330.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004967/0.1919, allocations: 128.6 kB / 330.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.1921, allocations: 76.5 kB / 330.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1921, allocations: 4 kB / 330.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of Templates: time 0.03371/0.2258, allocations: 17.18 MB / 347.8 MB, free: 12.98 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 8.182842073962092]