Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001264/0.001264, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001176/0.001176, allocations: 172.3 kB / 24.82 MB, free: 8.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9548/0.9548, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/1.103e-05, allocations: 2.312 kB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009736/0.009747, allocations: 9.365 MB / 282.8 MB, free: 7.828 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00536/0.01511, allocations: 3.077 MB / 285.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000701/0.01581, allocations: 31.88 kB / 285.9 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.01728, allocations: 0.5703 MB / 286.5 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.01845, allocations: 0.6084 MB / 287.1 MB, free: 3.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.01895, allocations: 323.4 kB / 287.4 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.02064, allocations: 1.832 MB / 289.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005411/0.02118, allocations: 433.2 kB / 289.6 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1106/0.1317, allocations: 1.047 MB / 290.7 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009963/0.1327, allocations: 0.5623 MB / 291.2 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002989/0.133, allocations: 158 kB / 291.4 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.1334, allocations: 193.1 kB / 291.6 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.1335, allocations: 341 kB / 291.9 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005438/0.1341, allocations: 0.5586 MB / 292.5 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.1354, allocations: 1.154 MB / 293.6 MB, free: 16.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1354, allocations: 0.9688 kB / 293.6 MB, free: 16.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1354, allocations: 0 / 293.6 MB, free: 16.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.034e-05/0.1354, allocations: 0 / 293.6 MB, free: 16.51 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.002015/0.1374, allocations: 1.877 MB / 295.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1375, allocations: 9.75 kB / 295.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/0.1379, allocations: 291.2 kB / 295.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007966/0.1387, allocations: 0.7271 MB / 296.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.124e-05/0.1388, allocations: 166.6 kB / 296.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.1389, allocations: 117.9 kB / 296.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009556/0.1399, allocations: 1.306 MB / 298.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.1399, allocations: 4.344 kB / 298.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.14, allocations: 48.94 kB / 298.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.14, allocations: 25.16 kB / 298.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006034/0.1406, allocations: 341.7 kB / 298.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003977/0.1446, allocations: 3.364 MB / 301.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007578/0.1453, allocations: 378.2 kB / 302.3 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.1455, allocations: 124.5 kB / 302.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.1455, allocations: 17.44 kB / 302.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.1458, allocations: 228.7 kB / 302.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.034e-06/0.1458, allocations: 1.531 kB / 302.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002189/0.148, allocations: 1.194 MB / 303.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/0.148, allocations: 481.7 kB / 304.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008332/0.1489, allocations: 0.9227 MB / 305.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.1489, allocations: 42.36 kB / 305.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.1492, allocations: 0.7397 MB / 306 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.1494, allocations: 243.2 kB / 306.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.1496, allocations: 212 kB / 306.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.334e-05/0.1496, allocations: 0.5108 MB / 307 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.1498, allocations: 156.5 kB / 307.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.1502, allocations: 1.2 MB / 308.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005538/0.1508, allocations: 0.8281 MB / 309.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.1508, allocations: 3.312 kB / 309.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009744/0.1518, allocations: 0.9275 MB / 310.1 MB, free: 7.516 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.1518, allocations: 68.05 kB / 310.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1518, allocations: 13.28 kB / 310.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.1522, allocations: 144.3 kB / 310.3 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.1526, allocations: 209.4 kB / 310.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.1547, allocations: 4.287 MB / 314.8 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.1553, allocations: 60.34 kB / 314.8 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.622e-05/0.1553, allocations: 39.38 kB / 314.9 MB, free: 3.5 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.0002057/0.1555, allocations: 238 kB / 315.1 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1557, allocations: 135.8 kB / 315.2 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005803/0.1562, allocations: 483.2 kB / 315.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1562, allocations: 6.594 kB / 315.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1562, allocations: 7.062 kB / 315.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004822/0.1567, allocations: 0.7395 MB / 316.5 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.1581, allocations: 1.226 MB / 317.7 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1581, allocations: 3.219 kB / 317.7 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.1584, allocations: 100.2 kB / 317.8 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002407/0.1586, allocations: 114.7 kB / 317.9 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1587, allocations: 18.98 kB / 317.9 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.1606, allocations: 4.097 MB / 322 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.1606, allocations: 8.438 kB / 322 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.1615, allocations: 0.7651 MB / 322.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.1618, allocations: 174.4 kB / 323 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-05/0.1619, allocations: 16 kB / 323 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/0.1622, allocations: 35.97 kB / 323 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.565e-05/0.1623, allocations: 56.41 kB / 323.1 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.1624, allocations: 15.98 kB / 323.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004612/0.1628, allocations: 0.5205 MB / 323.6 MB, free: 12.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1628, allocations: 0 / 323.6 MB, free: 12.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008923/0.1637, allocations: 304 kB / 323.9 MB, free: 11.89 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.0001856/0.1639, allocations: 141.3 kB / 324 MB, free: 11.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.1649, allocations: 1.037 MB / 325.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1649, allocations: 0 / 325.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/0.1654, allocations: 0.5592 MB / 325.6 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009757/0.1664, allocations: 295.4 kB / 325.9 MB, free: 9.875 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003039/0.1694, allocations: 2.046 MB / 328 MB, free: 7.793 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.1696, allocations: 201.7 kB / 328.2 MB, free: 7.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.17, allocations: 139.1 kB / 328.3 MB, free: 7.434 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000661/0.1706, allocations: 409.9 kB / 328.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of SimCode: time 7.31e-07/0.1706, allocations: 3.375 kB / 328.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of Templates: time 0.02637/0.197, allocations: 18.46 MB / 347.2 MB, free: 5.035 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.370583958923817]