Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 85.08 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 172.8 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8882/0.8882, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 252.3 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.452e-05, allocations: 6.25 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007426/0.007441, allocations: 9.314 MB / 261.6 MB, free: 13.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004487/0.01193, allocations: 3.039 MB / 264.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005037/0.01243, allocations: 31.81 kB / 264.7 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000986/0.01342, allocations: 0.5587 MB / 265.2 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007935/0.01421, allocations: 0.62 MB / 265.8 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.01463, allocations: 323.4 kB / 266.2 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.01576, allocations: 1.843 MB / 268 MB, free: 7.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004696/0.01623, allocations: 421.3 kB / 268.4 MB, free: 6.996 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007661/0.017, allocations: 1.048 MB / 269.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.01751, allocations: 0.5609 MB / 270 MB, free: 5.383 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.01768, allocations: 156 kB / 270.2 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.01791, allocations: 196 kB / 270.4 MB, free: 5.039 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.01808, allocations: 342.7 kB / 270.7 MB, free: 4.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.01845, allocations: 0.5534 MB / 271.3 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009295/0.01938, allocations: 1.164 MB / 272.4 MB, free: 2.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.01938, allocations: 0 / 272.4 MB, free: 2.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01938, allocations: 0 / 272.4 MB, free: 2.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.01939, allocations: 0 / 272.4 MB, free: 2.98 MB / 250.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.00182/0.02121, allocations: 1.878 MB / 274.3 MB, free: 1.043 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.02125, allocations: 11.98 kB / 274.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005017/0.02175, allocations: 291.9 kB / 274.6 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00093/0.02268, allocations: 0.7295 MB / 275.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.02282, allocations: 163.8 kB / 275.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.02297, allocations: 124.3 kB / 275.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.02419, allocations: 1.289 MB / 276.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.02422, allocations: 11.89 kB / 276.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.609e-05/0.0243, allocations: 51.98 kB / 277 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.02432, allocations: 28 kB / 277 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005741/0.02489, allocations: 337.6 kB / 277.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004001/0.02889, allocations: 3.355 MB / 280.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000769/0.02966, allocations: 376.3 kB / 281 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.02985, allocations: 129.5 kB / 281.2 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.02988, allocations: 20.42 kB / 281.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.03015, allocations: 221.8 kB / 281.4 MB, free: 9.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.334e-06/0.03016, allocations: 0 / 281.4 MB, free: 9.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002188/0.03234, allocations: 1.2 MB / 282.6 MB, free: 8.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.03249, allocations: 479.3 kB / 283.1 MB, free: 7.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008257/0.03332, allocations: 0.9224 MB / 284 MB, free: 6.715 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.03336, allocations: 41.7 kB / 284 MB, free: 6.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.03383, allocations: 0.7402 MB / 284.8 MB, free: 5.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.03399, allocations: 241.9 kB / 285 MB, free: 5.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.03421, allocations: 204.4 kB / 285.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.03438, allocations: 0.512 MB / 285.7 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.03457, allocations: 157.9 kB / 285.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/0.03523, allocations: 1.204 MB / 287.1 MB, free: 3.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007504/0.03598, allocations: 0.827 MB / 287.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.03599, allocations: 4 kB / 287.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001113/0.0371, allocations: 0.9323 MB / 288.8 MB, free: 1.145 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.03714, allocations: 67.41 kB / 288.9 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.03715, allocations: 12 kB / 288.9 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003514/0.03751, allocations: 151.3 kB / 289.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.03798, allocations: 203.7 kB / 289.3 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.04098, allocations: 4.277 MB / 293.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.04151, allocations: 59.94 kB / 293.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-05/0.04156, allocations: 36 kB / 293.6 MB, free: 12.11 MB / 282.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.0002471/0.04181, allocations: 236.5 kB / 293.9 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.04194, allocations: 135.3 kB / 294 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006819/0.04262, allocations: 487.2 kB / 294.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.04263, allocations: 11.94 kB / 294.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.04263, allocations: 0 / 294.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000622/0.04326, allocations: 0.7419 MB / 295.2 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.04478, allocations: 1.223 MB / 296.4 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.04479, allocations: 8.156 kB / 296.5 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.0451, allocations: 103.8 kB / 296.6 MB, free: 8.965 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002625/0.04536, allocations: 103.3 kB / 296.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.04539, allocations: 16 kB / 296.7 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.04791, allocations: 4.093 MB / 300.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.04791, allocations: 11.81 kB / 300.8 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008219/0.04874, allocations: 0.7736 MB / 301.5 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.04899, allocations: 163.1 kB / 301.7 MB, free: 3.527 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.04909, allocations: 20 kB / 301.7 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003748/0.04947, allocations: 31.97 kB / 301.8 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.04957, allocations: 56.39 kB / 301.8 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.0496, allocations: 12 kB / 301.8 MB, free: 3.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004529/0.05005, allocations: 0.5248 MB / 302.4 MB, free: 2.875 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.05005, allocations: 0 / 302.4 MB, free: 2.875 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008528/0.0509, allocations: 304 kB / 302.6 MB, free: 2.578 MB / 282.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.0001882/0.05109, allocations: 135 kB / 302.8 MB, free: 2.434 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.05218, allocations: 1.036 MB / 303.8 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.05218, allocations: 4 kB / 303.8 MB, free: 1.324 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004877/0.05267, allocations: 0.5576 MB / 304.4 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009459/0.05362, allocations: 299.1 kB / 304.7 MB, free: 448 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.05679, allocations: 2.057 MB / 306.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.05697, allocations: 205.7 kB / 306.9 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003806/0.05735, allocations: 132.6 kB / 307.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.05801, allocations: 410 kB / 307.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.093e-06/0.05801, allocations: 0 / 307.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Templates: time 0.02618/0.08419, allocations: 18.76 MB / 326.2 MB, free: 10.78 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.873014403972775]