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.0009608/0.0009608, allocations: 83.89 kB / 21.18 MB, free: 3.387 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.0008633/0.0008633, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9452/0.9452, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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.362e-06/1.362e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.618e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007991/0.008017, allocations: 9.573 MB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.01246, allocations: 3.065 MB / 280.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006849/0.01314, allocations: 35.81 kB / 280.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.01432, allocations: 0.5626 MB / 281.3 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001012/0.01533, allocations: 0.6084 MB / 281.9 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.01585, allocations: 323.4 kB / 282.2 MB, free: 8.172 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.01732, allocations: 1.835 MB / 284 MB, free: 6.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005835/0.01791, allocations: 421.3 kB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.01911, allocations: 1.041 MB / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007314/0.01984, allocations: 0.5803 MB / 286 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.02003, allocations: 156 kB / 286.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002957/0.02033, allocations: 188 kB / 286.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.02051, allocations: 346.7 kB / 286.7 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004814/0.02099, allocations: 0.5651 MB / 287.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.02207, allocations: 1.168 MB / 288.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.02207, allocations: 0 / 288.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02207, allocations: 0 / 288.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.02211, allocations: 0 / 288.5 MB, free: 1.855 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.1165/0.1386, allocations: 1.865 MB / 290.3 MB, free: 28.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1386, allocations: 11.08 kB / 290.3 MB, free: 28.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007004/0.1393, allocations: 291.9 kB / 290.6 MB, free: 28.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.1408, allocations: 0.7595 MB / 291.4 MB, free: 28.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.1409, allocations: 169.5 kB / 291.5 MB, free: 28.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.141, allocations: 121.8 kB / 291.7 MB, free: 28.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1425, allocations: 1.361 MB / 293 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.1425, allocations: 9.672 kB / 293 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/0.1426, allocations: 45.58 kB / 293.1 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.1426, allocations: 30.84 kB / 293.1 MB, free: 27.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008252/0.1434, allocations: 425.5 kB / 293.5 MB, free: 27.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/0.1475, allocations: 3.323 MB / 296.8 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009368/0.1485, allocations: 413 kB / 297.2 MB, free: 25.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.1487, allocations: 140.5 kB / 297.4 MB, free: 25.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.991e-05/0.1487, allocations: 13.7 kB / 297.4 MB, free: 25.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/0.1491, allocations: 239.6 kB / 297.6 MB, free: 25.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.274e-06/0.1491, allocations: 1.188 kB / 297.6 MB, free: 25.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002716/0.1518, allocations: 1.456 MB / 299.1 MB, free: 25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1519, allocations: 476 kB / 299.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.153, allocations: 0.9472 MB / 300.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.153, allocations: 39.61 kB / 300.5 MB, free: 23.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.1533, allocations: 0.7355 MB / 301.3 MB, free: 23.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.1535, allocations: 241.2 kB / 301.5 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.1537, allocations: 204.5 kB / 301.7 MB, free: 23.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.401e-05/0.1538, allocations: 0.5105 MB / 302.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.154, allocations: 186 kB / 302.4 MB, free: 22.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005248/0.1545, allocations: 1.223 MB / 303.6 MB, free: 21.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007038/0.1552, allocations: 0.879 MB / 304.5 MB, free: 20.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.1553, allocations: 6.281 kB / 304.5 MB, free: 20.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001236/0.1565, allocations: 0.9977 MB / 305.5 MB, free: 19.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.1565, allocations: 69.81 kB / 305.6 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.1566, allocations: 11.75 kB / 305.6 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.157, allocations: 151 kB / 305.7 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004157/0.1574, allocations: 200.3 kB / 305.9 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.1597, allocations: 4.372 MB / 310.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005522/0.1603, allocations: 52.33 kB / 310.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.1603, allocations: 53.72 kB / 310.4 MB, free: 15.75 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.0002621/0.1606, allocations: 236.2 kB / 310.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.1607, allocations: 139.1 kB / 310.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006896/0.1614, allocations: 0.5085 MB / 311.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1614, allocations: 11.41 kB / 311.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1614, allocations: 0 / 311.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000532/0.162, allocations: 0.7795 MB / 312.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.1635, allocations: 1.412 MB / 313.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1635, allocations: 0 / 313.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.1638, allocations: 103.1 kB / 313.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/0.164, allocations: 116.4 kB / 313.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.1641, allocations: 17.53 kB / 313.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.1657, allocations: 4.177 MB / 317.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1657, allocations: 0 / 317.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007711/0.1665, allocations: 0.8246 MB / 318.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.1667, allocations: 163.2 kB / 318.9 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.901e-05/0.1668, allocations: 16 kB / 318.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002822/0.1671, allocations: 40.92 kB / 318.9 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.869e-05/0.1672, allocations: 60.28 kB / 319 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1672, allocations: 19.98 kB / 319 MB, free: 8.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000459/0.1677, allocations: 0.568 MB / 319.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1677, allocations: 0 / 319.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007495/0.1684, allocations: 308 kB / 319.9 MB, free: 7.441 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.0002077/0.1686, allocations: 135 kB / 320 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.1697, allocations: 1.073 MB / 321.1 MB, free: 6.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.1697, allocations: 4 kB / 321.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.1701, allocations: 0.5783 MB / 321.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.1709, allocations: 287.8 kB / 321.9 MB, free: 5.281 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.1734, allocations: 2.076 MB / 324 MB, free: 3.152 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.1736, allocations: 201.7 kB / 324.2 MB, free: 2.926 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003073/0.1739, allocations: 128.6 kB / 324.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.174, allocations: 68.5 kB / 324.4 MB, free: 2.73 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.174, allocations: 0 / 324.4 MB, free: 2.73 MB / 266.7 MB Notification: Performance of Templates: time 0.02279/0.1968, allocations: 17.19 MB / 341.6 MB, free: 1.895 MB / 282.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.536670217756182]