Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0009234/0.0009234, allocations: 95.5 kB / 21.2 MB, free: 3.367 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.0009187/0.0009187, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 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.9584/0.9584, allocations: 177 MB / 204.8 MB, free: 5.617 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.351e-05/1.459e-05, allocations: 6.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009406/0.009421, allocations: 12.09 MB / 285 MB, free: 5.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.01325, allocations: 3.265 MB / 288.3 MB, free: 2.039 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004977/0.01375, allocations: 43.81 kB / 288.3 MB, free: 1.996 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.01491, allocations: 0.6476 MB / 289 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.01601, allocations: 0.8217 MB / 289.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005027/0.01652, allocations: 403.5 kB / 290.2 MB, free: 124 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1074/0.1239, allocations: 2.503 MB / 292.7 MB, free: 16.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007673/0.1247, allocations: 0.6055 MB / 293.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.1264, allocations: 1.424 MB / 294.7 MB, free: 16.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009883/0.1274, allocations: 0.7587 MB / 295.5 MB, free: 16.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.1277, allocations: 224.8 kB / 295.7 MB, free: 16.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004449/0.1281, allocations: 265.7 kB / 296 MB, free: 16.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.1283, allocations: 463.4 kB / 296.4 MB, free: 16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007156/0.1291, allocations: 0.7398 MB / 297.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00131/0.1304, allocations: 1.476 MB / 298.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1304, allocations: 0.9688 kB / 298.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1304, allocations: 0 / 298.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.1304, allocations: 1.625 kB / 298.6 MB, free: 15.33 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002167/0.1326, allocations: 2.241 MB / 300.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.1326, allocations: 8.844 kB / 300.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005807/0.1332, allocations: 418.4 kB / 301.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1342, allocations: 1.035 MB / 302.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.1343, allocations: 114 kB / 302.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.1345, allocations: 159.3 kB / 302.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.1358, allocations: 1.269 MB / 303.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.1359, allocations: 8.938 kB / 303.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.352e-05/0.1359, allocations: 74.97 kB / 303.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.136, allocations: 40.75 kB / 304 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008428/0.1368, allocations: 0.5626 MB / 304.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.1405, allocations: 5.911 MB / 310.5 MB, free: 8.062 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006415/0.1412, allocations: 424.7 kB / 310.9 MB, free: 7.938 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003769/0.1415, allocations: 299.3 kB / 311.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.1416, allocations: 18.78 kB / 311.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.1416, allocations: 41.61 kB / 311.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.674e-06/0.1416, allocations: 0 / 311.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.00188/0.1435, allocations: 1.654 MB / 312.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.1435, allocations: 114.1 kB / 313 MB, free: 6.824 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007498/0.1443, allocations: 1.135 MB / 314.1 MB, free: 6.023 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.1443, allocations: 41.7 kB / 314.2 MB, free: 5.977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.1446, allocations: 0.9468 MB / 315.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.679e-05/0.1446, allocations: 278.6 kB / 315.4 MB, free: 4.758 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.1448, allocations: 212.5 kB / 315.6 MB, free: 4.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.414e-05/0.1448, allocations: 0.5121 MB / 316.1 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.145, allocations: 142.5 kB / 316.2 MB, free: 3.883 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/0.1453, allocations: 0.8401 MB / 317.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005557/0.1459, allocations: 1.017 MB / 318.1 MB, free: 1.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1459, allocations: 8 kB / 318.1 MB, free: 1.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.000905/0.1468, allocations: 1.014 MB / 319.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1468, allocations: 20.61 kB / 319.1 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.1468, allocations: 16 kB / 319.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1471, allocations: 146.4 kB / 319.3 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.1475, allocations: 253.2 kB / 319.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.1498, allocations: 5.614 MB / 325.2 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.1501, allocations: 56.09 kB / 325.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.1502, allocations: 55.98 kB / 325.3 MB, free: 10.1 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002274/0.1504, allocations: 229.8 kB / 325.5 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.1505, allocations: 159.2 kB / 325.6 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007042/0.1512, allocations: 0.5933 MB / 326.2 MB, free: 9.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1512, allocations: 4 kB / 326.2 MB, free: 9.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1512, allocations: 4 kB / 326.2 MB, free: 9.105 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1512, allocations: 3.984 kB / 326.3 MB, free: 9.102 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.1531, allocations: 1.836 MB / 328.1 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1531, allocations: 12 kB / 328.1 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.1534, allocations: 126.9 kB / 328.2 MB, free: 7.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003158/0.1537, allocations: 153 kB / 328.4 MB, free: 6.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.1537, allocations: 16 kB / 328.4 MB, free: 6.895 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002455/0.1562, allocations: 5.696 MB / 334.1 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.1562, allocations: 11.88 kB / 334.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.1571, allocations: 1.022 MB / 335.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.1574, allocations: 191 kB / 335.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.584e-05/0.1575, allocations: 23.94 kB / 335.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.1577, allocations: 31.98 kB / 335.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.766e-05/0.1578, allocations: 67.61 kB / 335.4 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.1578, allocations: 27.98 kB / 335.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005646/0.1584, allocations: 0.6707 MB / 336.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1584, allocations: 4 kB / 336.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.159, allocations: 328 kB / 336.4 MB, free: 14.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000172/0.1592, allocations: 137.7 kB / 336.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008552/0.1601, allocations: 1.051 MB / 337.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1601, allocations: 4 kB / 337.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.1605, allocations: 0.7581 MB / 338.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008586/0.1614, allocations: 354 kB / 338.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.1646, allocations: 2.691 MB / 341.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.1647, allocations: 253 kB / 341.7 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.1651, allocations: 162.8 kB / 341.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.1652, allocations: 88.48 kB / 341.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1652, allocations: 3.938 kB / 341.9 MB, free: 8.824 MB / 298.7 MB Notification: Performance of Templates: time 0.02137/0.1866, allocations: 18.43 MB / 360.4 MB, free: 6.746 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.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.088478673249483]