Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00166/0.00166, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 163.4 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9167/0.9167, allocations: 177 MB / 205.2 MB, free: 5.059 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.375e-05/2.555e-05, allocations: 5.266 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008463/0.008488, allocations: 9.378 MB / 282.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003939/0.01243, allocations: 3.185 MB / 286 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.01289, allocations: 31.88 kB / 286 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000965/0.01385, allocations: 0.582 MB / 286.6 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007215/0.01458, allocations: 0.6123 MB / 287.2 MB, free: 3.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.01496, allocations: 315.4 kB / 287.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001087/0.01605, allocations: 1.844 MB / 289.3 MB, free: 1.043 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000428/0.01648, allocations: 441.3 kB / 289.8 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09795/0.1144, allocations: 1.039 MB / 290.8 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008283/0.1153, allocations: 0.5638 MB / 291.4 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.1155, allocations: 156.3 kB / 291.5 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003172/0.1158, allocations: 197 kB / 291.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.1159, allocations: 338.6 kB / 292.1 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004948/0.1164, allocations: 0.5658 MB / 292.6 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.1175, allocations: 1.158 MB / 293.8 MB, free: 16.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1175, allocations: 0.6875 kB / 293.8 MB, free: 16.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1175, allocations: 0 / 293.8 MB, free: 16.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.1176, allocations: 1.938 kB / 293.8 MB, free: 16.16 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.001935/0.1195, allocations: 1.713 MB / 295.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.1195, allocations: 13.66 kB / 295.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004615/0.12, allocations: 240.7 kB / 295.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007875/0.1208, allocations: 0.5806 MB / 296.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.1209, allocations: 164.3 kB / 296.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.121, allocations: 124.1 kB / 296.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.122, allocations: 1.272 MB / 297.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/0.1221, allocations: 6.078 kB / 297.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.879e-05/0.1221, allocations: 47.62 kB / 297.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.1221, allocations: 25.12 kB / 298 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005058/0.1227, allocations: 298.2 kB / 298.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003158/0.1258, allocations: 2.672 MB / 300.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.1265, allocations: 349.1 kB / 301.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.1266, allocations: 106.1 kB / 301.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.1267, allocations: 14.66 kB / 301.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.1269, allocations: 224.2 kB / 301.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.1269, allocations: 1.344 kB / 301.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001731/0.1287, allocations: 1.084 MB / 302.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.1287, allocations: 475.6 kB / 303.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006093/0.1293, allocations: 0.8449 MB / 304 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.1294, allocations: 44.66 kB / 304 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.1296, allocations: 0.5592 MB / 304.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/0.1297, allocations: 240.7 kB / 304.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1298, allocations: 198.5 kB / 305 MB, free: 11.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.154e-05/0.1299, allocations: 353.1 kB / 305.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.13, allocations: 144.8 kB / 305.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.1302, allocations: 1.001 MB / 306.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.1306, allocations: 0.6913 MB / 307.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1306, allocations: 3.625 kB / 307.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0006593/0.1313, allocations: 0.751 MB / 308 MB, free: 9.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.1313, allocations: 62.56 kB / 308 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1313, allocations: 16.81 kB / 308 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003584/0.1317, allocations: 133.2 kB / 308.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.1322, allocations: 205.6 kB / 308.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.134, allocations: 2.988 MB / 311.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.1343, allocations: 60.73 kB / 311.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.1344, allocations: 42.94 kB / 311.5 MB, free: 6.492 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 {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000161/0.1345, allocations: 186.8 kB / 311.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.489e-05/0.1346, allocations: 91.56 kB / 311.7 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00038/0.135, allocations: 399.1 kB / 312.1 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.135, allocations: 12.36 kB / 312.1 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.135, allocations: 0 / 312.1 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003125/0.1353, allocations: 0.6699 MB / 312.8 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009006/0.1362, allocations: 0.9262 MB / 313.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1362, allocations: 6.312 kB / 313.7 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/0.1364, allocations: 107 kB / 313.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001799/0.1366, allocations: 97.03 kB / 313.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.1366, allocations: 17.69 kB / 313.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.1376, allocations: 2.836 MB / 316.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1376, allocations: 0 / 316.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004255/0.1381, allocations: 0.5891 MB / 317.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.1382, allocations: 106.8 kB / 317.5 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.1383, allocations: 22.23 kB / 317.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.1385, allocations: 31.19 kB / 317.5 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.1386, allocations: 62.42 kB / 317.6 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.1386, allocations: 15.36 kB / 317.6 MB, free: 2.238 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002374/0.1389, allocations: 408.6 kB / 318 MB, free: 1.895 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1389, allocations: 0 / 318 MB, free: 1.895 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005131/0.1394, allocations: 310.3 kB / 318.3 MB, free: 1.621 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.0001358/0.1395, allocations: 115 kB / 318.4 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005901/0.1401, allocations: 0.8864 MB / 319.3 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/0.1401, allocations: 17.66 kB / 319.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002488/0.1404, allocations: 454.4 kB / 319.8 MB, free: 204 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000619/0.141, allocations: 297.7 kB / 320.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.1432, allocations: 1.968 MB / 322 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.1433, allocations: 201.7 kB / 322.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002753/0.1436, allocations: 128.6 kB / 322.3 MB, free: 13.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.1441, allocations: 357.1 kB / 322.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of SimCode: time 8.71e-07/0.1441, allocations: 0.6562 kB / 322.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of Templates: time 0.02092/0.165, allocations: 18.35 MB / 341 MB, free: 11.35 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 4.472634521778673]