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.001028/0.001028, allocations: 91.5 kB / 21.19 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.001134/0.001134, allocations: 156.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.9476/0.9476, allocations: 177 MB / 204.8 MB, free: 5.566 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.853e-06/1.853e-06, allocations: 0 / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.827e-05/3.013e-05, allocations: 2.312 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01062/0.01065, allocations: 11.73 MB / 284.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005288/0.01594, allocations: 3.203 MB / 287.8 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.01728, allocations: 39.88 kB / 287.9 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.01888, allocations: 0.6322 MB / 288.5 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001719/0.0206, allocations: 0.7636 MB / 289.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.02131, allocations: 399.4 kB / 289.7 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1252/0.1465, allocations: 2.331 MB / 292 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.1475, allocations: 0.6054 MB / 292.6 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00204/0.1496, allocations: 1.326 MB / 293.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.1509, allocations: 0.7068 MB / 294.6 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005273/0.1514, allocations: 217.6 kB / 294.9 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000573/0.152, allocations: 254.5 kB / 295.1 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002378/0.1522, allocations: 445.2 kB / 295.5 MB, free: 16.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009887/0.1532, allocations: 0.6999 MB / 296.2 MB, free: 16.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.1551, allocations: 1.408 MB / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1551, allocations: 0.5312 kB / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1551, allocations: 0 / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.038e-05/0.1552, allocations: 2.094 kB / 297.6 MB, free: 15.93 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.003073/0.1583, allocations: 2.147 MB / 299.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1583, allocations: 13.55 kB / 299.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007164/0.159, allocations: 386.2 kB / 300.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.1603, allocations: 0.9826 MB / 301.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.1604, allocations: 122.1 kB / 301.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.1605, allocations: 160.7 kB / 301.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.1621, allocations: 1.275 MB / 302.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.495e-05/0.1621, allocations: 17.69 kB / 302.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.082e-05/0.1622, allocations: 67.06 kB / 302.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.1622, allocations: 38.5 kB / 302.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009425/0.1632, allocations: 0.54 MB / 303.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.1679, allocations: 6.431 MB / 309.8 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/0.1683, allocations: 277.2 kB / 310.1 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.1685, allocations: 128.1 kB / 310.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1685, allocations: 7.625 kB / 310.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.1688, allocations: 273 kB / 310.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.467e-06/0.1688, allocations: 0 / 310.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001709/0.1705, allocations: 1.279 MB / 311.8 MB, free: 7.016 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.1705, allocations: 164.6 kB / 311.9 MB, free: 6.828 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008424/0.1714, allocations: 1.07 MB / 313 MB, free: 6.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.1714, allocations: 39.48 kB / 313 MB, free: 6.324 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.1717, allocations: 0.96 MB / 314 MB, free: 5.477 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/0.1718, allocations: 213 kB / 314.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.172, allocations: 231.1 kB / 314.4 MB, free: 5.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.533e-05/0.1721, allocations: 0.518 MB / 314.9 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.1722, allocations: 150.8 kB / 315.1 MB, free: 4.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.1726, allocations: 1.066 MB / 316.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006751/0.1733, allocations: 1.162 MB / 317.3 MB, free: 2.035 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.1733, allocations: 7 kB / 317.3 MB, free: 2.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.000969/0.1743, allocations: 1.059 MB / 318.4 MB, free: 1.117 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.1743, allocations: 37.7 kB / 318.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1743, allocations: 23.31 kB / 318.4 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.1745, allocations: 71.88 kB / 318.5 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004088/0.1749, allocations: 265.7 kB / 318.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.1764, allocations: 3.485 MB / 322.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.1769, allocations: 63.94 kB / 322.3 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.177, allocations: 60 kB / 322.4 MB, free: 12.91 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.0003051/0.1773, allocations: 248.6 kB / 322.6 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.1774, allocations: 147.2 kB / 322.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000494/0.1779, allocations: 420.2 kB / 323.2 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1779, allocations: 8 kB / 323.2 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.1779, allocations: 0 / 323.2 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1779, allocations: 7.922 kB / 323.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/0.1795, allocations: 1.527 MB / 324.7 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.1796, allocations: 4.5 kB / 324.7 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.1798, allocations: 98.8 kB / 324.8 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.1799, allocations: 47.73 kB / 324.9 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.1799, allocations: 27.61 kB / 324.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.1813, allocations: 3.454 MB / 328.3 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.1813, allocations: 11.31 kB / 328.4 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007793/0.1821, allocations: 0.8092 MB / 329.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.1824, allocations: 159.1 kB / 329.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.1825, allocations: 23.92 kB / 329.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.1827, allocations: 27.98 kB / 329.4 MB, free: 5.535 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.1828, allocations: 59.33 kB / 329.4 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.1828, allocations: 16 kB / 329.4 MB, free: 5.465 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006097/0.1835, allocations: 0.6339 MB / 330.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1835, allocations: 0 / 330.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009209/0.1844, allocations: 300 kB / 330.4 MB, free: 4.531 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.0002503/0.1846, allocations: 133.8 kB / 330.5 MB, free: 4.395 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009807/0.1856, allocations: 0.9178 MB / 331.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1856, allocations: 0 / 331.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.186, allocations: 0.5009 MB / 331.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/0.1868, allocations: 313 kB / 332.2 MB, free: 2.707 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.1903, allocations: 2.393 MB / 334.6 MB, free: 228 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.1905, allocations: 236.3 kB / 334.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004008/0.1909, allocations: 154.1 kB / 335 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.191, allocations: 80.5 kB / 335.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.191, allocations: 0 / 335.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of Templates: time 0.02112/0.2122, allocations: 14.42 MB / 349.5 MB, free: 1.637 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.478402770124376]