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.001464/0.001464, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001132/0.001132, allocations: 160.5 kB / 24.55 MB, free: 16 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.9773/0.9773, allocations: 177 MB / 204.8 MB, free: 5.562 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.483e-06/1.483e-06, allocations: 0 / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.357e-05/1.505e-05, allocations: 2.312 kB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009213/0.009228, allocations: 12.1 MB / 285 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004084/0.01331, allocations: 3.257 MB / 288.3 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004894/0.0138, allocations: 47.75 kB / 288.3 MB, free: 1.941 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.01499, allocations: 0.6439 MB / 289 MB, free: 1.293 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009186/0.01591, allocations: 0.8179 MB / 289.8 MB, free: 480 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.01633, allocations: 407.4 kB / 290.2 MB, free: 72 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1271/0.1435, allocations: 2.5 MB / 292.7 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009603/0.1444, allocations: 0.6083 MB / 293.3 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/0.1463, allocations: 1.41 MB / 294.7 MB, free: 16.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001105/0.1474, allocations: 0.7685 MB / 295.5 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.1478, allocations: 233.3 kB / 295.7 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005461/0.1484, allocations: 270.2 kB / 296 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.1487, allocations: 470.3 kB / 296.4 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.1497, allocations: 0.7419 MB / 297.2 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.1516, allocations: 1.491 MB / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1516, allocations: 1.312 kB / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1516, allocations: 3.938 kB / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.052e-05/0.1517, allocations: 0.9062 kB / 298.7 MB, free: 15.36 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.003135/0.1548, allocations: 2.249 MB / 300.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1549, allocations: 9.531 kB / 300.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006989/0.1556, allocations: 414.5 kB / 301.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1569, allocations: 1.059 MB / 302.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.725e-05/0.157, allocations: 117.3 kB / 302.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.1572, allocations: 160.9 kB / 302.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1587, allocations: 1.267 MB / 303.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.945e-05/0.1587, allocations: 11.84 kB / 303.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/0.1588, allocations: 71.48 kB / 304 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.1588, allocations: 37.53 kB / 304 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009107/0.1597, allocations: 0.5621 MB / 304.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.1638, allocations: 5.903 MB / 310.5 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007436/0.1645, allocations: 430.4 kB / 310.9 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000402/0.1649, allocations: 301.3 kB / 311.2 MB, free: 7.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.165, allocations: 10.53 kB / 311.2 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.165, allocations: 52.23 kB / 311.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.165, allocations: 0 / 311.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002087/0.1671, allocations: 1.643 MB / 312.9 MB, free: 6.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.1671, allocations: 117.5 kB / 313 MB, free: 6.832 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000822/0.168, allocations: 1.134 MB / 314.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.168, allocations: 33.7 kB / 314.2 MB, free: 5.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.1683, allocations: 0.9521 MB / 315.2 MB, free: 4.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.189e-05/0.1684, allocations: 278.1 kB / 315.4 MB, free: 4.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.1685, allocations: 212.5 kB / 315.6 MB, free: 4.492 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.761e-05/0.1686, allocations: 0.516 MB / 316.2 MB, free: 3.969 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.1688, allocations: 142.5 kB / 316.3 MB, free: 3.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.1692, allocations: 0.8401 MB / 317.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.1699, allocations: 1.024 MB / 318.2 MB, free: 1.445 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.1699, allocations: 4 kB / 318.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001012/0.1709, allocations: 1.015 MB / 319.2 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1709, allocations: 12.62 kB / 319.2 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1709, allocations: 20.55 kB / 319.2 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.1713, allocations: 146.3 kB / 319.4 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.1717, allocations: 256.8 kB / 319.6 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/0.1743, allocations: 5.61 MB / 325.2 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003771/0.1746, allocations: 55.94 kB / 325.3 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.1747, allocations: 60.08 kB / 325.3 MB, free: 10.04 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.0005747/0.1753, allocations: 233.1 kB / 325.6 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.1754, allocations: 159.2 kB / 325.7 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007818/0.1762, allocations: 0.594 MB / 326.3 MB, free: 9.055 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1762, allocations: 7.281 kB / 326.3 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1762, allocations: 4 kB / 326.3 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1762, allocations: 3.984 kB / 326.3 MB, free: 9.043 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.1782, allocations: 1.825 MB / 328.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1782, allocations: 11.88 kB / 328.2 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.1785, allocations: 127.1 kB / 328.3 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003681/0.1789, allocations: 154.8 kB / 328.4 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.1789, allocations: 19.98 kB / 328.4 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002968/0.1819, allocations: 5.697 MB / 334.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.1819, allocations: 8.078 kB / 334.2 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.183, allocations: 1.024 MB / 335.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.1832, allocations: 195.1 kB / 335.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.1833, allocations: 23.94 kB / 335.4 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.1836, allocations: 31.98 kB / 335.4 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1837, allocations: 63.8 kB / 335.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.1837, allocations: 31.98 kB / 335.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000633/0.1844, allocations: 0.6707 MB / 336.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1844, allocations: 0 / 336.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008342/0.1852, allocations: 331.9 kB / 336.5 MB, free: 14.37 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.000217/0.1854, allocations: 137.3 kB / 336.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009904/0.1864, allocations: 1.051 MB / 337.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1864, allocations: 7.469 kB / 337.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005052/0.1869, allocations: 0.7466 MB / 338.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009344/0.1878, allocations: 347.6 kB / 338.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003741/0.1916, allocations: 2.691 MB / 341.5 MB, free: 9.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.1918, allocations: 249 kB / 341.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.1921, allocations: 166.2 kB / 341.9 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.1923, allocations: 88.48 kB / 342 MB, free: 8.773 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1923, allocations: 4 kB / 342 MB, free: 8.77 MB / 298.7 MB Notification: Performance of Templates: time 0.02249/0.2148, allocations: 17.36 MB / 359.3 MB, free: 7.75 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.5278761917725205]