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.0009266/0.0009266, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.0009728/0.0009728, allocations: 163.5 kB / 24.99 MB, free: 8.266 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 1.019/1.019, allocations: 177 MB / 205.2 MB, free: 5.598 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.674e-06/1.674e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.606e-05/2.773e-05, allocations: 2.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01259/0.01261, allocations: 12.04 MB / 285 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005497/0.01811, allocations: 3.261 MB / 288.3 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.01954, allocations: 43.81 kB / 288.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.02116, allocations: 0.6438 MB / 289 MB, free: 1.691 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.02279, allocations: 0.8178 MB / 289.8 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006734/0.02346, allocations: 403.5 kB / 290.2 MB, free: 484 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1147/0.1382, allocations: 2.503 MB / 292.7 MB, free: 16.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009431/0.1391, allocations: 0.6064 MB / 293.3 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.141, allocations: 1.41 MB / 294.7 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.1422, allocations: 0.7694 MB / 295.5 MB, free: 16.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003896/0.1426, allocations: 229.5 kB / 295.7 MB, free: 16.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004332/0.143, allocations: 268.6 kB / 296 MB, free: 16.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.1432, allocations: 474.6 kB / 296.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000896/0.1441, allocations: 0.7416 MB / 297.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.1458, allocations: 1.496 MB / 298.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1458, allocations: 1.188 kB / 298.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1458, allocations: 1.312 kB / 298.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.082e-05/0.1458, allocations: 0.5156 kB / 298.7 MB, free: 15.39 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.00283/0.1487, allocations: 2.248 MB / 300.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1487, allocations: 9.062 kB / 300.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000733/0.1494, allocations: 415.2 kB / 301.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.1508, allocations: 1.053 MB / 302.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/0.1508, allocations: 118.3 kB / 302.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.151, allocations: 164.8 kB / 302.7 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1524, allocations: 1.268 MB / 303.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.591e-05/0.1525, allocations: 7.766 kB / 303.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.204e-05/0.1526, allocations: 72.47 kB / 304 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.199e-05/0.1526, allocations: 41.16 kB / 304.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1537, allocations: 0.5586 MB / 304.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005443/0.1591, allocations: 5.911 MB / 310.5 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008679/0.16, allocations: 426.1 kB / 310.9 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/0.1605, allocations: 305.4 kB / 311.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1605, allocations: 10.62 kB / 311.3 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.1606, allocations: 52.61 kB / 311.3 MB, free: 7.875 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.407e-06/0.1606, allocations: 0 / 311.3 MB, free: 7.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002659/0.1632, allocations: 1.644 MB / 312.9 MB, free: 7.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.1633, allocations: 121.2 kB / 313.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.1644, allocations: 1.134 MB / 314.2 MB, free: 6.215 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.1644, allocations: 33.7 kB / 314.2 MB, free: 6.176 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000392/0.1648, allocations: 0.9495 MB / 315.2 MB, free: 5.223 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.165, allocations: 271.3 kB / 315.4 MB, free: 4.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.1652, allocations: 216.5 kB / 315.7 MB, free: 4.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.483e-05/0.1652, allocations: 0.5121 MB / 316.2 MB, free: 4.219 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.1655, allocations: 142.5 kB / 316.3 MB, free: 4.082 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004584/0.166, allocations: 0.8451 MB / 317.2 MB, free: 2.934 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000857/0.1668, allocations: 1.017 MB / 318.2 MB, free: 1.691 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.1668, allocations: 4 kB / 318.2 MB, free: 1.688 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001373/0.1682, allocations: 1.028 MB / 319.2 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1682, allocations: 8.625 kB / 319.2 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.1682, allocations: 16 kB / 319.2 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004257/0.1687, allocations: 135.5 kB / 319.4 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005887/0.1693, allocations: 259.8 kB / 319.6 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003155/0.1724, allocations: 5.617 MB / 325.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006237/0.173, allocations: 47.95 kB / 325.3 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/0.1731, allocations: 55.98 kB / 325.3 MB, free: 10.3 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.0003281/0.1734, allocations: 238 kB / 325.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.1736, allocations: 163.1 kB / 325.7 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009856/0.1746, allocations: 0.597 MB / 326.3 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1746, allocations: 4 kB / 326.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1746, allocations: 4 kB / 326.3 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.1746, allocations: 3.984 kB / 326.3 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002839/0.1775, allocations: 1.835 MB / 328.2 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1775, allocations: 3.938 kB / 328.2 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/0.1779, allocations: 130.7 kB / 328.3 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004636/0.1783, allocations: 156 kB / 328.5 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/0.1784, allocations: 16 kB / 328.5 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002887/0.1813, allocations: 5.694 MB / 334.2 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.1813, allocations: 11.5 kB / 334.2 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.1829, allocations: 1.014 MB / 335.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.1832, allocations: 198.5 kB / 335.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.1834, allocations: 23.94 kB / 335.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.1838, allocations: 31.97 kB / 335.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.1839, allocations: 63.86 kB / 335.5 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.1839, allocations: 35.97 kB / 335.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008065/0.1847, allocations: 0.6707 MB / 336.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1847, allocations: 0 / 336.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001158/0.1859, allocations: 331.9 kB / 336.5 MB, free: 14.62 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.0002225/0.1861, allocations: 134 kB / 336.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1874, allocations: 1.048 MB / 337.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1874, allocations: 4.875 kB / 337.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006435/0.188, allocations: 0.7522 MB / 338.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.1893, allocations: 357.4 kB / 338.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004383/0.1936, allocations: 2.7 MB / 341.5 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.1939, allocations: 249 kB / 341.8 MB, free: 9.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000485/0.1944, allocations: 158.8 kB / 341.9 MB, free: 9.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.1945, allocations: 88.48 kB / 342 MB, free: 9.023 MB / 298.7 MB Notification: Performance of SimCode: time 1.203e-06/0.1945, allocations: 0 / 342 MB, free: 9.023 MB / 298.7 MB Notification: Performance of Templates: time 0.02856/0.2231, allocations: 17.36 MB / 359.4 MB, free: 7.996 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.4292718989308923]