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.0009699/0.0009699, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.00103/0.00103, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 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.9351/0.9351, allocations: 173.3 MB / 201.5 MB, free: 9.316 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.222e-06/1.222e-06, allocations: 0 / 268.1 MB, free: 6.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.829e-05, allocations: 5.688 kB / 268.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00748/0.007498, allocations: 9.542 MB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003296/0.01079, allocations: 3.049 MB / 280.7 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.0112, allocations: 35.81 kB / 280.7 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009044/0.01211, allocations: 0.5626 MB / 281.3 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009764/0.01308, allocations: 0.6123 MB / 281.9 MB, free: 8.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.01345, allocations: 323.4 kB / 282.2 MB, free: 8.496 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.01458, allocations: 1.832 MB / 284 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004559/0.01504, allocations: 421.3 kB / 284.5 MB, free: 6.219 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007411/0.01578, allocations: 1.044 MB / 285.5 MB, free: 5.172 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005126/0.01629, allocations: 0.5764 MB / 286.1 MB, free: 4.594 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.01644, allocations: 160 kB / 286.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.01667, allocations: 188 kB / 286.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.01686, allocations: 342.7 kB / 286.8 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004038/0.01726, allocations: 0.569 MB / 287.3 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009457/0.01821, allocations: 1.164 MB / 288.5 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.01821, allocations: 0 / 288.5 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01821, allocations: 0 / 288.5 MB, free: 2.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.01823, allocations: 0 / 288.5 MB, free: 2.18 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.002113/0.02034, allocations: 1.867 MB / 290.4 MB, free: 260 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.02037, allocations: 8.922 kB / 290.4 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1048/0.1251, allocations: 292.4 kB / 290.6 MB, free: 33.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.1264, allocations: 0.7673 MB / 291.4 MB, free: 33.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.971e-05/0.1265, allocations: 166.2 kB / 291.6 MB, free: 33.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1266, allocations: 113.7 kB / 291.7 MB, free: 33.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.1277, allocations: 1.364 MB / 293.1 MB, free: 32.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.1278, allocations: 7.344 kB / 293.1 MB, free: 32.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.1278, allocations: 47.73 kB / 293.1 MB, free: 32.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.1278, allocations: 30.69 kB / 293.1 MB, free: 32.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007211/0.1286, allocations: 427.7 kB / 293.6 MB, free: 32.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.1317, allocations: 3.321 MB / 296.9 MB, free: 30.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000789/0.1325, allocations: 406 kB / 297.3 MB, free: 30.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.1327, allocations: 148.6 kB / 297.4 MB, free: 30.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.1328, allocations: 16.59 kB / 297.4 MB, free: 30.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.1331, allocations: 241.9 kB / 297.7 MB, free: 30.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.064e-06/0.1331, allocations: 0 / 297.7 MB, free: 30.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002223/0.1353, allocations: 1.445 MB / 299.1 MB, free: 29.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.1354, allocations: 483 kB / 299.6 MB, free: 28.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008691/0.1362, allocations: 0.9464 MB / 300.5 MB, free: 28.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.1363, allocations: 42.39 kB / 300.6 MB, free: 28.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.1366, allocations: 0.7354 MB / 301.3 MB, free: 27.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1367, allocations: 239.6 kB / 301.5 MB, free: 27.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.1369, allocations: 204.5 kB / 301.7 MB, free: 27.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.168e-05/0.1369, allocations: 0.51 MB / 302.3 MB, free: 27.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.1372, allocations: 182.8 kB / 302.4 MB, free: 26.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.1376, allocations: 1.229 MB / 303.7 MB, free: 25.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.1383, allocations: 0.8751 MB / 304.5 MB, free: 24.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1383, allocations: 3.125 kB / 304.5 MB, free: 24.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001145/0.1394, allocations: 1.001 MB / 305.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.99e-05/0.1395, allocations: 65.27 kB / 305.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1395, allocations: 11 kB / 305.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.1399, allocations: 160.5 kB / 305.8 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.1402, allocations: 200.5 kB / 306 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.1423, allocations: 4.366 MB / 310.3 MB, free: 20.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.1426, allocations: 57.91 kB / 310.4 MB, free: 20 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.1427, allocations: 45.19 kB / 310.4 MB, free: 20 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.0001948/0.1429, allocations: 236 kB / 310.7 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.143, allocations: 137.1 kB / 310.8 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006105/0.1436, allocations: 0.5146 MB / 311.3 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1436, allocations: 7.75 kB / 311.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1436, allocations: 4.75 kB / 311.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005144/0.1441, allocations: 0.7798 MB / 312.1 MB, free: 18.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.1454, allocations: 1.413 MB / 313.5 MB, free: 17.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1454, allocations: 8.031 kB / 313.5 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.1456, allocations: 103.9 kB / 313.6 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002195/0.1458, allocations: 111.3 kB / 313.7 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.1459, allocations: 21.56 kB / 313.8 MB, free: 16.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.1473, allocations: 4.177 MB / 317.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1473, allocations: 4 kB / 317.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006974/0.148, allocations: 0.8167 MB / 318.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.1482, allocations: 175.1 kB / 318.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.408e-05/0.1483, allocations: 16 kB / 318.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.1486, allocations: 27.98 kB / 319 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-05/0.1487, allocations: 64.27 kB / 319 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.1487, allocations: 23.98 kB / 319.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004332/0.1491, allocations: 0.568 MB / 319.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1491, allocations: 4 kB / 319.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005769/0.1497, allocations: 304 kB / 319.9 MB, free: 10.48 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.000178/0.1499, allocations: 135.1 kB / 320.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009186/0.1508, allocations: 1.072 MB / 321.1 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1508, allocations: 0 / 321.1 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.1511, allocations: 0.5694 MB / 321.7 MB, free: 8.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006968/0.1518, allocations: 306.7 kB / 322 MB, free: 8.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.1541, allocations: 2.054 MB / 324.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.1542, allocations: 201.7 kB / 324.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002564/0.1544, allocations: 132.6 kB / 324.4 MB, free: 5.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1545, allocations: 72.5 kB / 324.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of SimCode: time 9.21e-07/0.1545, allocations: 0 / 324.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of Templates: time 0.01951/0.174, allocations: 17.19 MB / 341.6 MB, free: 4.918 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.858843727037311]