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.001301/0.001301, allocations: 79.81 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001359/0.001359, allocations: 155.7 kB / 23.94 MB, free: 4.176 MB / 14.72 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.411/1.411, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 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.503e-06/1.503e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.108e-05/3.258e-05, allocations: 5.094 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01426/0.01429, allocations: 10.21 MB / 329.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007126/0.02142, allocations: 3.067 MB / 332.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.02308, allocations: 43.47 kB / 332.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.02496, allocations: 0.625 MB / 332.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002302/0.02727, allocations: 0.7601 MB / 333.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.0283, allocations: 402 kB / 334 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003609/0.03191, allocations: 2.338 MB / 336.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.03305, allocations: 0.6022 MB / 337 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.03487, allocations: 1.312 MB / 338.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000943/0.03581, allocations: 0.6523 MB / 338.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002845/0.03609, allocations: 217.1 kB / 339.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004956/0.03659, allocations: 258.5 kB / 339.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003874/0.03698, allocations: 438.3 kB / 339.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009072/0.03788, allocations: 0.6936 MB / 340.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00337/0.04125, allocations: 2.686 MB / 343.2 MB, free: 3.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.351e-06/0.04126, allocations: 4 kB / 343.2 MB, free: 3.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.04126, allocations: 3.984 kB / 343.2 MB, free: 3.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.202e-05/0.0413, allocations: 0 / 343.2 MB, free: 3.297 MB / 302.1 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.003721/0.04503, allocations: 2.014 MB / 345.2 MB, free: 1.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.04507, allocations: 16.92 kB / 345.2 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007812/0.04585, allocations: 263.6 kB / 345.5 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.04758, allocations: 0.9679 MB / 346.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.04769, allocations: 123.5 kB / 346.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002433/0.04794, allocations: 164.2 kB / 346.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.05061, allocations: 1.584 MB / 348.3 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.05066, allocations: 15.89 kB / 348.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.05079, allocations: 68 kB / 348.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.812e-05/0.05083, allocations: 39.98 kB / 348.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.05279, allocations: 0.9669 MB / 349.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007867/0.06066, allocations: 5.697 MB / 355.1 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008757/0.06153, allocations: 384.9 kB / 355.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.06199, allocations: 209.5 kB / 355.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.06203, allocations: 4.5 kB / 355.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005731/0.0626, allocations: 325.1 kB / 356 MB, free: 5.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.415e-06/0.06261, allocations: 0 / 356 MB, free: 5.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003264/0.06587, allocations: 1.54 MB / 357.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.06598, allocations: 166.7 kB / 357.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.06748, allocations: 1.114 MB / 358.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.06753, allocations: 41.7 kB / 358.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007334/0.06826, allocations: 0.8927 MB / 359.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.06843, allocations: 214.3 kB / 360 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.06873, allocations: 214.8 kB / 360.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.06891, allocations: 349.9 kB / 360.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.0694, allocations: 260.2 kB / 360.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.0705, allocations: 0.9367 MB / 361.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.07205, allocations: 1.114 MB / 362.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.07206, allocations: 4 kB / 362.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002032/0.07409, allocations: 1.19 MB / 364 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.876e-05/0.07415, allocations: 49.62 kB / 364.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/0.07418, allocations: 20 kB / 364.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.07443, allocations: 65.64 kB / 364.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/0.07527, allocations: 263.6 kB / 364.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.07747, allocations: 2.528 MB / 367 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008406/0.07831, allocations: 72.16 kB / 367 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-05/0.0784, allocations: 60 kB / 367.1 MB, free: 9.93 MB / 334.1 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.0005413/0.07894, allocations: 361.3 kB / 367.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.0791, allocations: 119.2 kB / 367.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.08021, allocations: 0.534 MB / 368.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.08022, allocations: 11.94 kB / 368.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.08022, allocations: 4 kB / 368.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.08023, allocations: 3.984 kB / 368.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.08282, allocations: 1.54 MB / 369.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.08282, allocations: 3.938 kB / 369.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.08328, allocations: 107.9 kB / 369.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001401/0.08342, allocations: 45.7 kB / 369.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.08345, allocations: 12 kB / 369.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001992/0.08544, allocations: 2.505 MB / 372.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.08545, allocations: 7.938 kB / 372.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.08692, allocations: 0.8952 MB / 373.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/0.08726, allocations: 167.1 kB / 373.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.08739, allocations: 19.94 kB / 373.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005313/0.08792, allocations: 31.97 kB / 373.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.08804, allocations: 51.86 kB / 373.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.08807, allocations: 24 kB / 373.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001044/0.08911, allocations: 0.7122 MB / 374.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08911, allocations: 3.938 kB / 374.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001076/0.09019, allocations: 304 kB / 374.5 MB, free: 2.086 MB / 334.1 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.0002468/0.09044, allocations: 127.1 kB / 374.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.092, allocations: 0.9224 MB / 375.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.092, allocations: 4.375 kB / 375.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007258/0.09273, allocations: 464.8 kB / 376 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.09411, allocations: 313 kB / 376.3 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004054/0.09816, allocations: 2.401 MB / 378.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/0.09885, allocations: 0.5922 MB / 379.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000488/0.09934, allocations: 150.2 kB / 379.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.09952, allocations: 88.48 kB / 379.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.09952, allocations: 3.938 kB / 379.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.02786/0.1274, allocations: 14.24 MB / 393.8 MB, free: 14.85 MB / 366.1 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.0223921574652195]