Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.012/1.012, allocations: 173.3 MB / 201.1 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.678e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01258/0.01261, allocations: 11.71 MB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004851/0.01746, allocations: 3.176 MB / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008604/0.01832, allocations: 39.88 kB / 282.9 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.01964, allocations: 0.6283 MB / 283.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001373/0.02101, allocations: 0.7597 MB / 284.3 MB, free: 6.039 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006417/0.02165, allocations: 411.4 kB / 284.7 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.02369, allocations: 2.337 MB / 287 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000816/0.02451, allocations: 0.6068 MB / 287.7 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.02601, allocations: 1.329 MB / 289 MB, free: 1.305 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009257/0.02694, allocations: 0.7011 MB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.0272, allocations: 212 kB / 289.9 MB, free: 404 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.02756, allocations: 247.9 kB / 290.1 MB, free: 156 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1119/0.1395, allocations: 437.6 kB / 290.6 MB, free: 19.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.1409, allocations: 0.6968 MB / 291.3 MB, free: 19.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002002/0.1429, allocations: 1.39 MB / 292.6 MB, free: 19.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1429, allocations: 0 / 292.6 MB, free: 19.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1429, allocations: 0 / 292.6 MB, free: 19.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.97e-05/0.143, allocations: 0 / 292.6 MB, free: 19.28 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.002736/0.1457, allocations: 2.135 MB / 294.8 MB, free: 18.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1458, allocations: 14.86 kB / 294.8 MB, free: 18.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006651/0.1464, allocations: 390.5 kB / 295.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.1477, allocations: 0.9635 MB / 296.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.49e-05/0.1478, allocations: 113.8 kB / 296.3 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.148, allocations: 163.1 kB / 296.4 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.1496, allocations: 1.277 MB / 297.7 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.933e-05/0.1497, allocations: 12.62 kB / 297.7 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.481e-05/0.1498, allocations: 68.94 kB / 297.8 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.1498, allocations: 38.19 kB / 297.8 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1509, allocations: 0.5411 MB / 298.3 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007111/0.158, allocations: 6.437 MB / 304.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.1586, allocations: 265.7 kB / 305 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.1589, allocations: 133.2 kB / 305.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.1589, allocations: 9.688 kB / 305.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.1593, allocations: 276.5 kB / 305.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.966e-06/0.1593, allocations: 0 / 305.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002837/0.1622, allocations: 1.274 MB / 306.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.1622, allocations: 160.5 kB / 306.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.1638, allocations: 1.072 MB / 308 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.1639, allocations: 37.17 kB / 308 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005804/0.1644, allocations: 0.9604 MB / 309 MB, free: 10.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.1646, allocations: 210.9 kB / 309.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000259/0.1649, allocations: 227.4 kB / 309.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.165, allocations: 0.5146 MB / 309.9 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.1653, allocations: 158.1 kB / 310 MB, free: 9.723 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006603/0.166, allocations: 1.064 MB / 311.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.167, allocations: 1.162 MB / 312.3 MB, free: 7.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.167, allocations: 10.5 kB / 312.3 MB, free: 7.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00159/0.1686, allocations: 1.049 MB / 313.3 MB, free: 6.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.1686, allocations: 43.42 kB / 313.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.1686, allocations: 21.12 kB / 313.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/0.1689, allocations: 70.19 kB / 313.5 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007279/0.1696, allocations: 262.8 kB / 313.7 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.171, allocations: 3.495 MB / 317.2 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009322/0.1719, allocations: 64.48 kB / 317.3 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.517e-05/0.172, allocations: 59.97 kB / 317.3 MB, free: 3.293 MB / 266.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.0003548/0.1724, allocations: 250.3 kB / 317.6 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.1725, allocations: 142.3 kB / 317.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007161/0.1732, allocations: 419.5 kB / 318.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.1733, allocations: 9.5 kB / 318.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1733, allocations: 7.25 kB / 318.1 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1733, allocations: 7.266 kB / 318.2 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.1756, allocations: 1.53 MB / 319.7 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.1756, allocations: 7.312 kB / 319.7 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.1759, allocations: 101.7 kB / 319.8 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001449/0.1761, allocations: 51.7 kB / 319.8 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.529e-05/0.1761, allocations: 14.47 kB / 319.9 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001611/0.1777, allocations: 3.467 MB / 323.3 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.1777, allocations: 7.062 kB / 323.3 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.1788, allocations: 0.8082 MB / 324.1 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.1792, allocations: 167.7 kB / 324.3 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.1793, allocations: 14.03 kB / 324.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/0.1797, allocations: 30.92 kB / 324.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.1798, allocations: 54.02 kB / 324.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.1799, allocations: 16.41 kB / 324.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009652/0.1808, allocations: 0.6352 MB / 325 MB, free: 13.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1808, allocations: 0 / 325 MB, free: 13.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001378/0.1822, allocations: 304.5 kB / 325.3 MB, free: 12.99 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.0002569/0.1825, allocations: 138.1 kB / 325.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.1838, allocations: 0.9147 MB / 326.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1838, allocations: 0 / 326.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005471/0.1843, allocations: 0.4958 MB / 326.9 MB, free: 11.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.1857, allocations: 307.6 kB / 327.2 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/0.1903, allocations: 2.392 MB / 329.6 MB, free: 8.676 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.1906, allocations: 232.1 kB / 329.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005832/0.1911, allocations: 154.1 kB / 330 MB, free: 8.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.1913, allocations: 76.5 kB / 330 MB, free: 8.195 MB / 282.7 MB Notification: Performance of SimCode: time 1.503e-06/0.1913, allocations: 0 / 330 MB, free: 8.195 MB / 282.7 MB Notification: Performance of Templates: time 0.02609/0.2174, allocations: 15.26 MB / 345.3 MB, free: 9.258 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.170388019643724]