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.0008753/0.0008753, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009127/0.0009127, allocations: 168.8 kB / 24.91 MB, free: 9.191 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.913/0.913, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.322e-06/1.322e-06, allocations: 3.938 kB / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.859e-05, allocations: 2.312 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007284/0.007302, allocations: 9.378 MB / 282.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004208/0.01151, allocations: 3.181 MB / 286 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004525/0.01196, allocations: 31.81 kB / 286.1 MB, free: 4.641 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009548/0.01292, allocations: 0.5781 MB / 286.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007893/0.01371, allocations: 0.6162 MB / 287.3 MB, free: 3.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.01411, allocations: 331.3 kB / 287.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.01547, allocations: 1.832 MB / 289.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004415/0.01591, allocations: 437.3 kB / 289.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09955/0.1155, allocations: 1.04 MB / 290.9 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.1165, allocations: 0.5657 MB / 291.4 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002519/0.1167, allocations: 156.7 kB / 291.6 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003338/0.1171, allocations: 197.2 kB / 291.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.1173, allocations: 340.8 kB / 292.1 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005251/0.1178, allocations: 0.5585 MB / 292.7 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.119, allocations: 1.159 MB / 293.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.119, allocations: 0 / 293.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.119, allocations: 1.219 kB / 293.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.017e-05/0.119, allocations: 1.375 kB / 293.8 MB, free: 16.64 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.001908/0.1209, allocations: 1.71 MB / 295.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.121, allocations: 9.5 kB / 295.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/0.1214, allocations: 245 kB / 295.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007514/0.1221, allocations: 0.5826 MB / 296.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.111e-05/0.1222, allocations: 162.9 kB / 296.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.1224, allocations: 124.2 kB / 296.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008705/0.1232, allocations: 1.268 MB / 297.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.1233, allocations: 7.531 kB / 297.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.345e-05/0.1233, allocations: 50.69 kB / 298 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.1233, allocations: 31.38 kB / 298 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004293/0.1238, allocations: 295.7 kB / 298.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002758/0.1265, allocations: 2.676 MB / 301 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/0.1271, allocations: 343.2 kB / 301.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.1272, allocations: 106.9 kB / 301.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.1273, allocations: 15.66 kB / 301.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.1275, allocations: 219.5 kB / 301.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.684e-06/0.1275, allocations: 4 kB / 301.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001616/0.1291, allocations: 1.079 MB / 302.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.1291, allocations: 486 kB / 303.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.1297, allocations: 0.8426 MB / 304 MB, free: 12.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.1297, allocations: 40.64 kB / 304.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.1299, allocations: 0.5553 MB / 304.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.249e-05/0.13, allocations: 240.1 kB / 304.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.1302, allocations: 202.3 kB / 305.1 MB, free: 11.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.137e-05/0.1302, allocations: 345.5 kB / 305.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1303, allocations: 145 kB / 305.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.1306, allocations: 1.012 MB / 306.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.131, allocations: 0.6817 MB / 307.2 MB, free: 9.699 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.131, allocations: 6.281 kB / 307.3 MB, free: 9.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0006116/0.1316, allocations: 0.7642 MB / 308 MB, free: 9.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.1316, allocations: 62.03 kB / 308.1 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1316, allocations: 10.19 kB / 308.1 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/0.1319, allocations: 135.2 kB / 308.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.1322, allocations: 206.7 kB / 308.4 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.1336, allocations: 2.994 MB / 311.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.134, allocations: 66.06 kB / 311.5 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.134, allocations: 34.06 kB / 311.5 MB, free: 6.969 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.0001592/0.1342, allocations: 192.7 kB / 311.7 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.1343, allocations: 84.53 kB / 311.8 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003959/0.1347, allocations: 405.1 kB / 312.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.1347, allocations: 6.969 kB / 312.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1347, allocations: 0 / 312.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003129/0.135, allocations: 0.6646 MB / 312.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009264/0.1359, allocations: 0.9353 MB / 313.8 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1359, allocations: 2.969 kB / 313.8 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.1361, allocations: 98.94 kB / 313.9 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.1363, allocations: 109.2 kB / 314 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.1363, allocations: 16.73 kB / 314 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.1374, allocations: 2.838 MB / 316.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1374, allocations: 0 / 316.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.1378, allocations: 0.583 MB / 317.4 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.138, allocations: 103.2 kB / 317.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/0.1381, allocations: 19.98 kB / 317.6 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.1383, allocations: 36.05 kB / 317.6 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.1384, allocations: 64.17 kB / 317.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1384, allocations: 12 kB / 317.7 MB, free: 2.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002483/0.1387, allocations: 417.7 kB / 318.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1387, allocations: 0 / 318.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005413/0.1392, allocations: 304 kB / 318.4 MB, free: 1.871 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.0001357/0.1393, allocations: 118.2 kB / 318.5 MB, free: 1.758 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006065/0.1399, allocations: 0.8851 MB / 319.4 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.741e-05/0.14, allocations: 17.12 kB / 319.4 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.1402, allocations: 455.5 kB / 319.8 MB, free: 420 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.1408, allocations: 302 kB / 320.1 MB, free: 140 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.1431, allocations: 1.961 MB / 322.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.1433, allocations: 201.7 kB / 322.3 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002976/0.1436, allocations: 134.8 kB / 322.4 MB, free: 13.81 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/0.144, allocations: 349.1 kB / 322.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of SimCode: time 4.8e-07/0.144, allocations: 0 / 322.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of Templates: time 0.0221/0.1661, allocations: 18.36 MB / 341.1 MB, free: 11.57 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.068290076218545]