Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.00124/0.00124, 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.001496/0.001496, allocations: 174.4 kB / 24.82 MB, free: 9.262 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.9259/0.9259, allocations: 177.1 MB / 205.3 MB, free: 5.484 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113e-05/1.251e-05, allocations: 2.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008617/0.00863, allocations: 11.38 MB / 284.8 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004728/0.01336, allocations: 3.184 MB / 288 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006847/0.01404, allocations: 43.81 kB / 288 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.0153, allocations: 0.6322 MB / 288.6 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.01645, allocations: 0.7597 MB / 289.4 MB, free: 1.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.01702, allocations: 407.4 kB / 289.8 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1121/0.1291, allocations: 2.327 MB / 292.1 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.13, allocations: 0.602 MB / 292.7 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.1316, allocations: 1.337 MB / 294.1 MB, free: 16.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009123/0.1325, allocations: 0.7058 MB / 294.8 MB, free: 16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002939/0.1328, allocations: 212.6 kB / 295 MB, free: 16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004212/0.1332, allocations: 247.3 kB / 295.2 MB, free: 16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.1334, allocations: 437.4 kB / 295.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007929/0.1342, allocations: 0.6947 MB / 296.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.1356, allocations: 1.389 MB / 297.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1356, allocations: 2.031 kB / 297.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1356, allocations: 0 / 297.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.969e-05/0.1356, allocations: 0.7188 kB / 297.7 MB, free: 15.61 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002274/0.1379, allocations: 2.165 MB / 299.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1379, allocations: 11.31 kB / 299.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005557/0.1385, allocations: 385.6 kB / 300.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1395, allocations: 0.9448 MB / 301.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.1395, allocations: 116.9 kB / 301.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.1397, allocations: 164.8 kB / 301.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.1408, allocations: 1.186 MB / 302.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.718e-05/0.1408, allocations: 11.2 kB / 302.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/0.1409, allocations: 72.88 kB / 302.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.1409, allocations: 38.5 kB / 302.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005605/0.1415, allocations: 436.8 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003869/0.1454, allocations: 6.483 MB / 309.7 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.1456, allocations: 253.1 kB / 310 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1458, allocations: 115.2 kB / 310.1 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.1458, allocations: 8.969 kB / 310.1 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.146, allocations: 258.6 kB / 310.3 MB, free: 8.285 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.533e-06/0.146, allocations: 0.75 kB / 310.3 MB, free: 8.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001087/0.1471, allocations: 1.013 MB / 311.4 MB, free: 7.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.1471, allocations: 169.2 kB / 311.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/0.1478, allocations: 1.047 MB / 312.6 MB, free: 7.273 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.1478, allocations: 37.02 kB / 312.6 MB, free: 7.234 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.1481, allocations: 0.9653 MB / 313.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.025e-05/0.1482, allocations: 216 kB / 313.8 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.1484, allocations: 229 kB / 314 MB, free: 6.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.216e-05/0.1484, allocations: 0.5267 MB / 314.5 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.1485, allocations: 121.5 kB / 314.7 MB, free: 5.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.1488, allocations: 1.049 MB / 315.7 MB, free: 4.344 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.1493, allocations: 1.135 MB / 316.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.1494, allocations: 6.375 kB / 316.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0007529/0.1501, allocations: 0.976 MB / 317.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.1501, allocations: 41.7 kB / 317.9 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.1501, allocations: 20 kB / 317.9 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.1503, allocations: 71.41 kB / 317.9 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.1507, allocations: 264.7 kB / 318.2 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.1519, allocations: 3.455 MB / 321.7 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.1523, allocations: 63.97 kB / 321.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.424e-05/0.1524, allocations: 55.84 kB / 321.8 MB, free: 14.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002254/0.1526, allocations: 244.5 kB / 322 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.1527, allocations: 139.1 kB / 322.2 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.1531, allocations: 404.3 kB / 322.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1531, allocations: 11.05 kB / 322.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.1531, allocations: 0 / 322.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1531, allocations: 3.984 kB / 322.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1546, allocations: 1.313 MB / 323.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.1546, allocations: 4 kB / 323.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.155, allocations: 98.7 kB / 324 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.1551, allocations: 47.27 kB / 324 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.1551, allocations: 16.3 kB / 324 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/0.1567, allocations: 3.416 MB / 327.5 MB, free: 8.559 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.1567, allocations: 7.719 kB / 327.5 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.1575, allocations: 0.7763 MB / 328.2 MB, free: 7.707 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.1578, allocations: 163.2 kB / 328.4 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.1579, allocations: 16 kB / 328.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000368/0.1583, allocations: 23.98 kB / 328.4 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.719e-05/0.1584, allocations: 58.69 kB / 328.5 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.1584, allocations: 20 kB / 328.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008378/0.1592, allocations: 0.5703 MB / 329.1 MB, free: 6.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1592, allocations: 4 kB / 329.1 MB, free: 6.906 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009822/0.1602, allocations: 296 kB / 329.4 MB, free: 6.617 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (54): * Single equations (assignments): 50 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.1604, allocations: 145.8 kB / 329.5 MB, free: 6.473 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008851/0.1613, allocations: 0.8831 MB / 330.4 MB, free: 5.613 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1613, allocations: 0 / 330.4 MB, free: 5.613 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.1616, allocations: 486.8 kB / 330.9 MB, free: 5.125 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.1628, allocations: 312.5 kB / 331.2 MB, free: 4.852 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.1663, allocations: 2.398 MB / 333.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.1666, allocations: 228.2 kB / 333.8 MB, free: 2.121 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004546/0.167, allocations: 158.1 kB / 334 MB, free: 1.965 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006144/0.1676, allocations: 370 kB / 334.3 MB, free: 1.602 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1676, allocations: 0 / 334.3 MB, free: 1.602 MB / 282.7 MB Notification: Performance of Templates: time 0.02279/0.1904, allocations: 15.6 MB / 349.9 MB, free: 2.387 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2081364626064897]