Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.614e-06/1.614e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.728e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01663/0.01665, allocations: 11.63 MB / 284 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006575/0.02323, allocations: 3.192 MB / 287.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008554/0.02408, allocations: 39.88 kB / 287.2 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001649/0.02573, allocations: 0.6283 MB / 287.8 MB, free: 2.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001662/0.02739, allocations: 0.7636 MB / 288.6 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007813/0.02817, allocations: 399.4 kB / 289 MB, free: 1.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1118/0.14, allocations: 2.335 MB / 291.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009699/0.141, allocations: 0.6035 MB / 291.9 MB, free: 16.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001621/0.1426, allocations: 1.317 MB / 293.2 MB, free: 16.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008736/0.1435, allocations: 0.7099 MB / 293.9 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.1437, allocations: 218.1 kB / 294.2 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004557/0.1442, allocations: 256.3 kB / 294.4 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002692/0.1445, allocations: 443.5 kB / 294.8 MB, free: 16.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007088/0.1452, allocations: 0.7021 MB / 295.5 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002517/0.1477, allocations: 2.705 MB / 298.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1477, allocations: 0 / 298.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1477, allocations: 0 / 298.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.1477, allocations: 1.688 kB / 298.2 MB, free: 15.91 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.003355/0.1511, allocations: 2.301 MB / 300.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1511, allocations: 8.938 kB / 300.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008264/0.1519, allocations: 398.3 kB / 300.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.1533, allocations: 1.016 MB / 302 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/0.1534, allocations: 117.5 kB / 302.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.1536, allocations: 166.3 kB / 302.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.1557, allocations: 1.726 MB / 304 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/0.1558, allocations: 7.828 kB / 304 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.1559, allocations: 66.88 kB / 304 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.1559, allocations: 39.03 kB / 304.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.1575, allocations: 0.9379 MB / 305 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006369/0.1638, allocations: 7.895 MB / 312.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.1645, allocations: 387.5 kB / 313.3 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/0.1648, allocations: 196 kB / 313.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.1648, allocations: 10.78 kB / 313.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/0.1652, allocations: 347.8 kB / 313.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.204e-06/0.1652, allocations: 4 kB / 313.8 MB, free: 5.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002635/0.1679, allocations: 1.542 MB / 315.4 MB, free: 4.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.1679, allocations: 162.7 kB / 315.5 MB, free: 4.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.1692, allocations: 1.442 MB / 317 MB, free: 2.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.1692, allocations: 37.7 kB / 317 MB, free: 2.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.1697, allocations: 1.031 MB / 318 MB, free: 1.727 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.1698, allocations: 227.4 kB / 318.3 MB, free: 1.508 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.17, allocations: 268.4 kB / 318.5 MB, free: 1.238 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1701, allocations: 0.5551 MB / 319.1 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.1705, allocations: 248.2 kB / 319.3 MB, free: 436 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.1718, allocations: 1.215 MB / 320.5 MB, free: 14.81 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/0.1735, allocations: 1.396 MB / 321.9 MB, free: 13.13 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.1735, allocations: 4 kB / 321.9 MB, free: 13.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002073/0.1756, allocations: 1.242 MB / 323.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.1757, allocations: 45.69 kB / 323.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.1757, allocations: 16.06 kB / 323.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.176, allocations: 79.3 kB / 323.3 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008141/0.1768, allocations: 268.3 kB / 323.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.1798, allocations: 3.576 MB / 327.2 MB, free: 7.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.1807, allocations: 63.94 kB / 327.2 MB, free: 7.727 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.704e-05/0.1808, allocations: 64.17 kB / 327.3 MB, free: 7.664 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.0006292/0.1814, allocations: 405.1 kB / 327.7 MB, free: 7.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.1816, allocations: 143.2 kB / 327.8 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.1827, allocations: 0.5301 MB / 328.3 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1827, allocations: 4 kB / 328.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.1827, allocations: 0 / 328.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.1827, allocations: 7.922 kB / 328.4 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.186, allocations: 2.025 MB / 330.4 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.186, allocations: 4.469 kB / 330.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.1864, allocations: 107.1 kB / 330.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.1866, allocations: 55.3 kB / 330.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.1866, allocations: 19.98 kB / 330.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.1893, allocations: 3.539 MB / 334.1 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1893, allocations: 4 kB / 334.1 MB, free: 0.543 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.191, allocations: 1.015 MB / 335.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.1914, allocations: 163.1 kB / 335.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.1915, allocations: 16 kB / 335.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.1919, allocations: 31.97 kB / 335.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.1921, allocations: 55.14 kB / 335.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.1921, allocations: 20 kB / 335.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0012/0.1933, allocations: 0.841 MB / 336.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1933, allocations: 0 / 336.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001101/0.1944, allocations: 296 kB / 336.5 MB, free: 14.04 MB / 298.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.0002459/0.1946, allocations: 133.9 kB / 336.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.1964, allocations: 1.119 MB / 337.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1964, allocations: 0 / 337.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007336/0.1971, allocations: 0.5631 MB / 338.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.1985, allocations: 315.8 kB / 338.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004166/0.2027, allocations: 2.509 MB / 341.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008397/0.2035, allocations: 0.5922 MB / 341.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005051/0.204, allocations: 150.1 kB / 341.9 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.2042, allocations: 84.5 kB / 342 MB, free: 8.449 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.2042, allocations: 0 / 342 MB, free: 8.449 MB / 298.7 MB Notification: Performance of Templates: time 0.02797/0.2322, allocations: 14.41 MB / 356.4 MB, free: 10.38 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.310076906927861]