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.001275/0.001275, allocations: 113 kB / 18.45 MB, free: 4.602 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.001342/0.001342, allocations: 190.9 kB / 21.4 MB, free: 1.664 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.423/1.423, allocations: 225.6 MB / 249.8 MB, free: 3.625 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 0.001609/0.001609, allocations: 47.92 kB / 366.8 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.1003, allocations: 52.14 MB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01383/0.1142, allocations: 11.79 MB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006456/0.1206, allocations: 3.23 MB / 434 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001336/0.1219, allocations: 31.94 kB / 434 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002153/0.1241, allocations: 0.6791 MB / 434.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002553/0.1266, allocations: 0.729 MB / 435.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.1278, allocations: 395.5 kB / 435.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003212/0.131, allocations: 2.246 MB / 438.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.132, allocations: 0.6454 MB / 438.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.1333, allocations: 0.8482 MB / 439.6 MB, free: 7.375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.1346, allocations: 0.9139 MB / 440.5 MB, free: 6.457 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002788/0.1348, allocations: 216 kB / 440.7 MB, free: 6.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004936/0.1353, allocations: 264 kB / 440.9 MB, free: 5.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003646/0.1357, allocations: 430.4 kB / 441.4 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.1368, allocations: 1.015 MB / 442.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003189/0.14, allocations: 2.685 MB / 445.1 MB, free: 1.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.14, allocations: 3.938 kB / 445.1 MB, free: 1.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.14, allocations: 0 / 445.1 MB, free: 1.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.14, allocations: 0 / 445.1 MB, free: 1.848 MB / 366.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.242/0.382, allocations: 2.111 MB / 447.2 MB, free: 29.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3821, allocations: 8.75 kB / 447.2 MB, free: 29.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008389/0.3829, allocations: 270.6 kB / 447.4 MB, free: 29.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.3844, allocations: 1.047 MB / 448.5 MB, free: 29.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.3845, allocations: 117.8 kB / 448.6 MB, free: 29.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.3846, allocations: 156.5 kB / 448.8 MB, free: 29.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.3868, allocations: 1.485 MB / 450.2 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/0.3868, allocations: 13.11 kB / 450.3 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-05/0.3869, allocations: 69.5 kB / 450.3 MB, free: 28.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.3869, allocations: 45.28 kB / 450.4 MB, free: 28.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.3885, allocations: 0.9701 MB / 451.3 MB, free: 28.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006925/0.3954, allocations: 6.531 MB / 457.9 MB, free: 24.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007664/0.3962, allocations: 378.1 kB / 458.2 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.3966, allocations: 205.6 kB / 458.4 MB, free: 24.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.13e-05/0.3966, allocations: 12.72 kB / 458.5 MB, free: 24.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004631/0.3971, allocations: 262.5 kB / 458.7 MB, free: 24.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.885e-06/0.3971, allocations: 0.6562 kB / 458.7 MB, free: 24.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002963/0.4001, allocations: 1.786 MB / 460.5 MB, free: 23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.4001, allocations: 166.5 kB / 460.7 MB, free: 22.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/0.4017, allocations: 1.277 MB / 461.9 MB, free: 22.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.4017, allocations: 40.17 kB / 462 MB, free: 22.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.4023, allocations: 0.8945 MB / 462.9 MB, free: 21.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.4024, allocations: 218.8 kB / 463.1 MB, free: 21.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.4026, allocations: 221 kB / 463.3 MB, free: 21.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.341e-05/0.4027, allocations: 349.2 kB / 463.6 MB, free: 20.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000434/0.4031, allocations: 230.3 kB / 463.9 MB, free: 20.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006259/0.4037, allocations: 0.7991 MB / 464.7 MB, free: 19.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.4048, allocations: 1.123 MB / 465.8 MB, free: 18.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.4048, allocations: 6.016 kB / 465.8 MB, free: 18.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001872/0.4067, allocations: 1.182 MB / 467 MB, free: 18.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.4067, allocations: 40.92 kB / 467 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.4067, allocations: 19.47 kB / 467 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.407, allocations: 66.58 kB / 467.1 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007622/0.4077, allocations: 270.1 kB / 467.4 MB, free: 18.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.409, allocations: 2.768 MB / 470.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009792/0.41, allocations: 70.95 kB / 470.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.868e-05/0.4101, allocations: 59.53 kB / 470.3 MB, free: 15.45 MB / 366.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.0004885/0.4106, allocations: 363.4 kB / 470.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.4107, allocations: 140.3 kB / 470.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009877/0.4117, allocations: 0.5475 MB / 471.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.4117, allocations: 7.391 kB / 471.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.4117, allocations: 5.594 kB / 471.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4117, allocations: 3.953 kB / 471.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.4143, allocations: 1.871 MB / 473.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.4143, allocations: 2.375 kB / 473.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.4147, allocations: 106.7 kB / 473.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.4149, allocations: 41.44 kB / 473.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.4149, allocations: 16.53 kB / 473.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.4161, allocations: 2.742 MB / 476.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.4161, allocations: 5.016 kB / 476.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.4175, allocations: 0.9354 MB / 477 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003602/0.4179, allocations: 264.9 kB / 477.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.418, allocations: 22.92 kB / 477.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.4185, allocations: 32.14 kB / 477.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4186, allocations: 53.52 kB / 477.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.4187, allocations: 22.88 kB / 477.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.4199, allocations: 0.8454 MB / 478.3 MB, free: 9.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4199, allocations: 0 / 478.3 MB, free: 9.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001191/0.421, allocations: 305.4 kB / 478.6 MB, free: 9.738 MB / 366.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.0002049/0.4212, allocations: 143.2 kB / 478.7 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.4227, allocations: 0.9012 MB / 479.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.4227, allocations: 3.938 kB / 479.6 MB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005647/0.4232, allocations: 446.4 kB / 480 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4246, allocations: 331.8 kB / 480.4 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.4282, allocations: 2.618 MB / 483 MB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005578/0.4288, allocations: 1.176 MB / 484.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.429, allocations: 90.66 kB / 484.3 MB, free: 6.113 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.429, allocations: 0 / 484.3 MB, free: 6.113 MB / 366.1 MB Notification: Performance of Templates: time 0.04263/0.4717, allocations: 31.82 MB / 0.504 GB, free: 9.434 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.970677366945893]