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.001067/0.001067, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001267/0.001267, allocations: 161 kB / 24.56 MB, free: 16 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.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.853e-06/1.853e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.168e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009406/0.009427, allocations: 11.71 MB / 284.7 MB, free: 5.773 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004845/0.01427, allocations: 3.211 MB / 287.9 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006642/0.01494, allocations: 43.81 kB / 287.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.01603, allocations: 0.6245 MB / 288.6 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.01717, allocations: 0.7597 MB / 289.3 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.01775, allocations: 403.4 kB / 289.7 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1374/0.1552, allocations: 2.339 MB / 292.1 MB, free: 16.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.1563, allocations: 0.605 MB / 292.7 MB, free: 16.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.1582, allocations: 1.322 MB / 294 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.1593, allocations: 0.7139 MB / 294.7 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004004/0.1597, allocations: 217.1 kB / 294.9 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005244/0.1602, allocations: 252.3 kB / 295.2 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.1605, allocations: 446.8 kB / 295.6 MB, free: 16.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009014/0.1614, allocations: 0.6972 MB / 296.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.1631, allocations: 1.408 MB / 297.7 MB, free: 16.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1631, allocations: 1.828 kB / 297.7 MB, free: 16.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1631, allocations: 0.625 kB / 297.7 MB, free: 16.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.22e-05/0.1631, allocations: 0 / 297.7 MB, free: 16.02 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.00288/0.166, allocations: 2.144 MB / 299.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1661, allocations: 10.47 kB / 299.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000719/0.1668, allocations: 392.6 kB / 300.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.168, allocations: 0.9806 MB / 301.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.101e-05/0.1681, allocations: 115.1 kB / 301.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.1683, allocations: 165.4 kB / 301.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.1699, allocations: 1.28 MB / 302.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/0.1699, allocations: 10.92 kB / 302.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.693e-05/0.17, allocations: 69.47 kB / 302.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-05/0.17, allocations: 38.5 kB / 302.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008878/0.1709, allocations: 0.5382 MB / 303.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004477/0.1754, allocations: 6.439 MB / 309.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.1758, allocations: 277.5 kB / 310.1 MB, free: 8.043 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.176, allocations: 134.2 kB / 310.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.176, allocations: 8.188 kB / 310.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002799/0.1763, allocations: 272.3 kB / 310.5 MB, free: 7.816 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.174e-06/0.1763, allocations: 0 / 310.5 MB, free: 7.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001492/0.1778, allocations: 1.267 MB / 311.8 MB, free: 7.109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.1778, allocations: 169.4 kB / 312 MB, free: 6.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008044/0.1786, allocations: 1.074 MB / 313.1 MB, free: 6.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1787, allocations: 37.23 kB / 313.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003531/0.179, allocations: 0.9614 MB / 314.1 MB, free: 5.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.1791, allocations: 208.2 kB / 314.3 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.1792, allocations: 222.2 kB / 314.5 MB, free: 5.262 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.514e-05/0.1793, allocations: 0.5183 MB / 315 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.1795, allocations: 157.6 kB / 315.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.1799, allocations: 1.069 MB / 316.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006658/0.1806, allocations: 1.17 MB / 317.4 MB, free: 2.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.1806, allocations: 6.875 kB / 317.4 MB, free: 2.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009517/0.1815, allocations: 1.047 MB / 318.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.1816, allocations: 49.73 kB / 318.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.1816, allocations: 20 kB / 318.5 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.1817, allocations: 63.34 kB / 318.6 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.1821, allocations: 266.9 kB / 318.8 MB, free: 0.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.1838, allocations: 3.484 MB / 322.3 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/0.1842, allocations: 68.12 kB / 322.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.742e-05/0.1843, allocations: 66.94 kB / 322.4 MB, free: 13.09 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.0002484/0.1845, allocations: 251.7 kB / 322.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.1847, allocations: 142.1 kB / 322.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004783/0.1851, allocations: 431.2 kB / 323.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1851, allocations: 4 kB / 323.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1851, allocations: 0 / 323.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1851, allocations: 7.938 kB / 323.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.1868, allocations: 1.523 MB / 324.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1868, allocations: 4.469 kB / 324.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.1871, allocations: 102.7 kB / 324.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-05/0.1872, allocations: 58.56 kB / 324.9 MB, free: 10.51 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.1872, allocations: 8 kB / 325 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.1886, allocations: 3.462 MB / 328.4 MB, free: 6.812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.1886, allocations: 7.469 kB / 328.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/0.1893, allocations: 0.8132 MB / 329.2 MB, free: 5.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.1895, allocations: 167.1 kB / 329.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.158e-05/0.1896, allocations: 16 kB / 329.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.1899, allocations: 27.98 kB / 329.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.225e-05/0.19, allocations: 51.23 kB / 329.5 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.19, allocations: 23.98 kB / 329.5 MB, free: 5.637 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000608/0.1906, allocations: 0.6261 MB / 330.1 MB, free: 5.004 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1906, allocations: 0 / 330.1 MB, free: 5.004 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007177/0.1913, allocations: 300 kB / 330.4 MB, free: 4.711 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.0002002/0.1915, allocations: 138 kB / 330.6 MB, free: 4.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00088/0.1924, allocations: 0.9164 MB / 331.5 MB, free: 3.664 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.1924, allocations: 4 kB / 331.5 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.1927, allocations: 0.4923 MB / 332 MB, free: 3.148 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008541/0.1936, allocations: 319.7 kB / 332.3 MB, free: 2.867 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.1967, allocations: 2.388 MB / 334.7 MB, free: 396 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.1968, allocations: 232.2 kB / 334.9 MB, free: 136 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003602/0.1972, allocations: 150.1 kB / 335.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1973, allocations: 84.48 kB / 335.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1973, allocations: 0 / 335.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of Templates: time 0.02148/0.2188, allocations: 14.43 MB / 349.6 MB, free: 1.805 MB / 298.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","",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.4950854987837374]