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.001353/0.001353, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.001757/0.001757, allocations: 142.4 kB / 25.59 MB, free: 8.906 MB / 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.002/1.002, allocations: 173.4 MB / 202.2 MB, free: 8.309 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.803e-06/1.803e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.557e-05, allocations: 3.25 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008597/0.008623, allocations: 11.35 MB / 280.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004596/0.01322, allocations: 3.167 MB / 283.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008624/0.01408, allocations: 43.81 kB / 283.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.01531, allocations: 0.6283 MB / 284.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.01667, allocations: 0.7597 MB / 285.2 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.01728, allocations: 407.4 kB / 285.5 MB, free: 9.383 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002118/0.0194, allocations: 2.334 MB / 287.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007585/0.02016, allocations: 0.6029 MB / 288.5 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.02158, allocations: 1.333 MB / 289.8 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006754/0.02225, allocations: 0.7089 MB / 290.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.02243, allocations: 212 kB / 290.7 MB, free: 4.133 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.02273, allocations: 255.9 kB / 291 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.02294, allocations: 434.3 kB / 291.4 MB, free: 3.457 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004992/0.02344, allocations: 0.6976 MB / 292.1 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.02452, allocations: 1.385 MB / 293.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.02452, allocations: 0 / 293.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.02452, allocations: 0 / 293.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.02453, allocations: 0 / 293.5 MB, free: 1.367 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.002019/0.02655, allocations: 2.158 MB / 295.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.02659, allocations: 8.031 kB / 295.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006051/0.02719, allocations: 391.6 kB / 296 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.0281, allocations: 0.9401 MB / 297 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.235e-05/0.02816, allocations: 123.4 kB / 297.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.0283, allocations: 160.3 kB / 297.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.02951, allocations: 1.193 MB / 298.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.657e-05/0.02954, allocations: 7.953 kB / 298.5 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-05/0.02962, allocations: 68 kB / 298.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.02964, allocations: 36 kB / 298.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00051/0.03015, allocations: 438 kB / 299 MB, free: 11.65 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/0.03485, allocations: 6.484 MB / 305.5 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.03516, allocations: 241.8 kB / 305.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.03531, allocations: 113.1 kB / 305.8 MB, free: 4.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.03533, allocations: 12.48 kB / 305.8 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.03557, allocations: 255.3 kB / 306.1 MB, free: 4.148 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 1.903e-06/0.03557, allocations: 0 / 306.1 MB, free: 4.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.001246/0.03682, allocations: 1.013 MB / 307.1 MB, free: 3.094 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.03687, allocations: 158.7 kB / 307.2 MB, free: 2.902 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.03788, allocations: 1.047 MB / 308.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.03791, allocations: 33.7 kB / 308.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004599/0.03837, allocations: 0.9733 MB / 309.3 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.03847, allocations: 214.2 kB / 309.5 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.03865, allocations: 228.3 kB / 309.7 MB, free: 384 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.03879, allocations: 0.5276 MB / 310.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.03892, allocations: 124.2 kB / 310.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005003/0.03942, allocations: 1.048 MB / 311.4 MB, free: 14.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000673/0.04009, allocations: 1.128 MB / 312.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.0401, allocations: 4 kB / 312.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009083/0.041, allocations: 0.988 MB / 313.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.04104, allocations: 41.7 kB / 313.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.04106, allocations: 16 kB / 313.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.04119, allocations: 59.36 kB / 313.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.04163, allocations: 275.8 kB / 313.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.04319, allocations: 3.458 MB / 317.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.04357, allocations: 72.12 kB / 317.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.04362, allocations: 48 kB / 317.5 MB, free: 7.543 MB / 298.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.0002214/0.04384, allocations: 255.9 kB / 317.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.04394, allocations: 135.2 kB / 317.9 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004116/0.04435, allocations: 404.5 kB / 318.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.04436, allocations: 8 kB / 318.3 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.04436, allocations: 0 / 318.3 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.04436, allocations: 7.922 kB / 318.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.04556, allocations: 1.324 MB / 319.6 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.04556, allocations: 4 kB / 319.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.04578, allocations: 95.89 kB / 319.7 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.743e-05/0.04588, allocations: 39.36 kB / 319.8 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.0459, allocations: 16 kB / 319.8 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.04738, allocations: 3.426 MB / 323.2 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.04739, allocations: 4 kB / 323.2 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005955/0.04798, allocations: 0.7711 MB / 324 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.04818, allocations: 163.1 kB / 324.1 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.776e-05/0.04826, allocations: 23.92 kB / 324.2 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.0485, allocations: 27.98 kB / 324.2 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.04857, allocations: 51.86 kB / 324.2 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.04859, allocations: 19.94 kB / 324.3 MB, free: 324 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004087/0.049, allocations: 0.5713 MB / 324.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.049, allocations: 0 / 324.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006299/0.04963, allocations: 300 kB / 325.1 MB, free: 15.45 MB / 314.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.0001666/0.04979, allocations: 127.1 kB / 325.2 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006718/0.05047, allocations: 0.8843 MB / 326.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.05047, allocations: 0 / 326.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.05075, allocations: 497.3 kB / 326.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007932/0.05154, allocations: 295.9 kB / 326.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.0546, allocations: 2.401 MB / 329.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.05476, allocations: 232.2 kB / 329.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000307/0.05506, allocations: 158.1 kB / 329.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004425/0.05551, allocations: 370 kB / 330 MB, free: 10.28 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.05551, allocations: 0 / 330 MB, free: 10.28 MB / 314.7 MB Notification: Performance of Templates: time 0.02244/0.07795, allocations: 15.83 MB / 345.9 MB, free: 10.72 MB / 330.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.4546622848138213]