Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001258/0.001258, allocations: 84.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.001292/0.001292, allocations: 164.9 kB / 24.91 MB, free: 9.191 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.9542/0.9542, allocations: 177 MB / 205.2 MB, free: 5.473 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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.305e-05/1.451e-05, allocations: 2.312 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.00842/0.008435, allocations: 11.39 MB / 284.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004603/0.01304, allocations: 3.307 MB / 288.1 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006308/0.01367, allocations: 43.81 kB / 288.1 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.01476, allocations: 0.6439 MB / 288.8 MB, free: 1.785 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.01578, allocations: 0.7636 MB / 289.5 MB, free: 1.016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.01629, allocations: 407.4 kB / 289.9 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.09736/0.1137, allocations: 2.324 MB / 292.3 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008353/0.1145, allocations: 0.6266 MB / 292.9 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.116, allocations: 1.336 MB / 294.2 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.1168, allocations: 0.7114 MB / 294.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002839/0.1171, allocations: 214.6 kB / 295.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003904/0.1175, allocations: 250.8 kB / 295.4 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.1177, allocations: 434.5 kB / 295.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006381/0.1184, allocations: 0.6961 MB / 296.5 MB, free: 16.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1196, allocations: 1.388 MB / 297.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1196, allocations: 0.5625 kB / 297.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1196, allocations: 2.625 kB / 297.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.611e-05/0.1197, allocations: 0 / 297.9 MB, free: 16.1 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.002244/0.1219, allocations: 1.994 MB / 299.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.122, allocations: 13.94 kB / 299.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006082/0.1226, allocations: 327.5 kB / 300.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009569/0.1235, allocations: 0.7379 MB / 301 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.1236, allocations: 113.3 kB / 301.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.1237, allocations: 163.7 kB / 301.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.1248, allocations: 1.171 MB / 302.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/0.1248, allocations: 15.98 kB / 302.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.1249, allocations: 71.67 kB / 302.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.1249, allocations: 38.5 kB / 302.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000518/0.1254, allocations: 384.8 kB / 302.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.129, allocations: 5.102 MB / 308 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.1292, allocations: 239 kB / 308.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1293, allocations: 100 kB / 308.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.1294, allocations: 10.31 kB / 308.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.1295, allocations: 251.3 kB / 308.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.833e-06/0.1295, allocations: 2.188 kB / 308.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001119/0.1307, allocations: 0.9384 MB / 309.5 MB, free: 9.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.1307, allocations: 164.9 kB / 309.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005763/0.1313, allocations: 0.9661 MB / 310.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.1313, allocations: 37.45 kB / 310.7 MB, free: 9.211 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.1315, allocations: 0.776 MB / 311.5 MB, free: 8.672 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.1316, allocations: 219.8 kB / 311.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1318, allocations: 227.2 kB / 311.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.051e-05/0.1318, allocations: 349.8 kB / 312.2 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.795e-05/0.1319, allocations: 122.3 kB / 312.4 MB, free: 8.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/0.1322, allocations: 0.7975 MB / 313.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.1327, allocations: 0.8995 MB / 314.1 MB, free: 6.387 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1327, allocations: 3.188 kB / 314.1 MB, free: 6.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006153/0.1333, allocations: 0.8042 MB / 314.9 MB, free: 5.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.1333, allocations: 37.7 kB / 314.9 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.1333, allocations: 20 kB / 314.9 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001278/0.1335, allocations: 69.5 kB / 315 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.1338, allocations: 261.2 kB / 315.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007194/0.1345, allocations: 2.358 MB / 317.6 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.1349, allocations: 59.94 kB / 317.7 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.135, allocations: 52 kB / 317.7 MB, free: 2.848 MB / 266.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.0001773/0.1351, allocations: 199.1 kB / 317.9 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.1352, allocations: 91.08 kB / 318 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.1355, allocations: 339.2 kB / 318.3 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1355, allocations: 4 kB / 318.3 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.1355, allocations: 0 / 318.3 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.1355, allocations: 7.922 kB / 318.3 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008483/0.1363, allocations: 1.003 MB / 319.3 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1363, allocations: 4 kB / 319.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.1365, allocations: 102.7 kB / 319.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.373e-05/0.1366, allocations: 42.17 kB / 319.5 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1366, allocations: 11.98 kB / 319.5 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009829/0.1376, allocations: 2.322 MB / 321.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.1376, allocations: 7.281 kB / 321.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004629/0.1381, allocations: 0.5692 MB / 322.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.1383, allocations: 111.3 kB / 322.5 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/0.1383, allocations: 16 kB / 322.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.1385, allocations: 32.03 kB / 322.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.745e-05/0.1386, allocations: 55.05 kB / 322.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1386, allocations: 12 kB / 322.6 MB, free: 13.83 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000364/0.139, allocations: 465.7 kB / 323.1 MB, free: 13.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.139, allocations: 0 / 323.1 MB, free: 13.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005997/0.1396, allocations: 296 kB / 323.4 MB, free: 13.13 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.0001576/0.1397, allocations: 119.2 kB / 323.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005943/0.1403, allocations: 0.7618 MB / 324.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.928e-05/0.1404, allocations: 21.81 kB / 324.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.1406, allocations: 368.1 kB / 324.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.1413, allocations: 323 kB / 324.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.1438, allocations: 2.27 MB / 327.2 MB, free: 9.289 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.144, allocations: 228.2 kB / 327.4 MB, free: 9.035 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000324/0.1443, allocations: 154.1 kB / 327.6 MB, free: 8.883 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004021/0.1447, allocations: 321.1 kB / 327.9 MB, free: 8.57 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1447, allocations: 0 / 327.9 MB, free: 8.57 MB / 282.7 MB Notification: Performance of Templates: time 0.01988/0.1646, allocations: 15.51 MB / 343.4 MB, free: 9.426 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1201901412568986]