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.001985/0.001985, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002414/0.002414, allocations: 149.4 kB / 24.25 MB, free: 184 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.425/1.425, allocations: 173.4 MB / 200.8 MB, free: 9.285 MB / 186.7 MB " [Timeout remaining time 178] 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.893e-06/1.893e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.568e-05/2.757e-05, allocations: 6.312 kB / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01476/0.01479, allocations: 10.23 MB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007355/0.02214, allocations: 3.067 MB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.02404, allocations: 43.81 kB / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002045/0.02609, allocations: 0.6244 MB / 281.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00232/0.02841, allocations: 0.7636 MB / 282.1 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.0296, allocations: 399.4 kB / 282.4 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003475/0.03308, allocations: 2.33 MB / 284.8 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.03425, allocations: 0.5951 MB / 285.4 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.03631, allocations: 1.317 MB / 286.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.03742, allocations: 0.6581 MB / 287.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003104/0.03774, allocations: 216 kB / 287.6 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.03823, allocations: 252 kB / 287.8 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004143/0.03864, allocations: 446.2 kB / 288.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000906/0.03955, allocations: 0.6898 MB / 288.9 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1144/0.154, allocations: 2.681 MB / 291.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.154, allocations: 0 / 291.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.154, allocations: 0.9375 kB / 291.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.189e-05/0.154, allocations: 1.188 kB / 291.6 MB, free: 20.68 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.003198/0.1572, allocations: 2.023 MB / 293.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1573, allocations: 10.23 kB / 293.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009321/0.1582, allocations: 388.7 kB / 294 MB, free: 19.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.1598, allocations: 1.006 MB / 295 MB, free: 19.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.98e-05/0.1599, allocations: 119.5 kB / 295.1 MB, free: 19.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.1601, allocations: 160.7 kB / 295.3 MB, free: 19.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.1625, allocations: 1.587 MB / 296.9 MB, free: 18.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.198e-05/0.1626, allocations: 10.36 kB / 296.9 MB, free: 18.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.1627, allocations: 68.03 kB / 297 MB, free: 18.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.1627, allocations: 38.84 kB / 297 MB, free: 18.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.1645, allocations: 0.9736 MB / 298 MB, free: 18.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005893/0.1704, allocations: 5.795 MB / 303.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/0.1711, allocations: 373.6 kB / 304.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.1715, allocations: 205.7 kB / 304.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.1715, allocations: 8.594 kB / 304.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.172, allocations: 328.5 kB / 304.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.894e-06/0.172, allocations: 0 / 304.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002812/0.1748, allocations: 1.56 MB / 306.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.1749, allocations: 163.4 kB / 306.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.176, allocations: 1.122 MB / 307.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.1761, allocations: 36.92 kB / 307.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000376/0.1764, allocations: 0.8963 MB / 308.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.796e-05/0.1765, allocations: 214 kB / 308.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.1768, allocations: 215.2 kB / 308.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.254e-05/0.1768, allocations: 351.8 kB / 309.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004013/0.1772, allocations: 262.8 kB / 309.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005814/0.1778, allocations: 0.9311 MB / 310.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.1788, allocations: 1.12 MB / 311.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.1788, allocations: 3.969 kB / 311.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001639/0.1805, allocations: 1.244 MB / 312.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.1805, allocations: 46.48 kB / 312.8 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.1805, allocations: 17.25 kB / 312.8 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.1808, allocations: 68.2 kB / 312.9 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/0.1815, allocations: 266.3 kB / 313.2 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.1828, allocations: 2.531 MB / 315.7 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008049/0.1836, allocations: 65.5 kB / 315.7 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.124e-05/0.1837, allocations: 60.77 kB / 315.8 MB, free: 6.504 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.0003945/0.1841, allocations: 366.2 kB / 316.2 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.1842, allocations: 135.2 kB / 316.3 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008557/0.185, allocations: 0.5371 MB / 316.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.185, allocations: 4 kB / 316.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.185, allocations: 0 / 316.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.185, allocations: 7.922 kB / 316.8 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.187, allocations: 1.549 MB / 318.4 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.187, allocations: 11.38 kB / 318.4 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003986/0.1874, allocations: 109 kB / 318.5 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.1876, allocations: 45.64 kB / 318.6 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.1876, allocations: 15.98 kB / 318.6 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.1887, allocations: 2.502 MB / 321.1 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1887, allocations: 4 kB / 321.1 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.1898, allocations: 0.921 MB / 322 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003323/0.1901, allocations: 161.7 kB / 322.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.1903, allocations: 16 kB / 322.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005519/0.1908, allocations: 34.05 kB / 322.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.1909, allocations: 56.02 kB / 322.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-05/0.191, allocations: 23.98 kB / 322.3 MB, free: 15.81 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.1921, allocations: 0.7122 MB / 323 MB, free: 15.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1921, allocations: 8 kB / 323 MB, free: 15.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001165/0.1933, allocations: 303.9 kB / 323.3 MB, free: 14.79 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.0002653/0.1936, allocations: 134.9 kB / 323.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.1952, allocations: 0.9174 MB / 324.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1952, allocations: 0 / 324.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008004/0.196, allocations: 467.7 kB / 324.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.1975, allocations: 315 kB / 325.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/0.2018, allocations: 2.441 MB / 327.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007684/0.2026, allocations: 0.5961 MB / 328.2 MB, free: 9.867 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005195/0.2031, allocations: 154.1 kB / 328.3 MB, free: 9.715 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.2033, allocations: 84.5 kB / 328.4 MB, free: 9.633 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2033, allocations: 0 / 328.4 MB, free: 9.633 MB / 282.7 MB Notification: Performance of Templates: time 0.02818/0.2314, allocations: 14.33 MB / 342.7 MB, free: 11.62 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.038068562047556]