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.0017/0.0017, allocations: 112 kB / 20.43 MB, free: 1.457 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.001959/0.001959, allocations: 180.8 kB / 23.71 MB, free: 4.695 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.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.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.001706/0.001706, allocations: 51.92 kB / 370.9 MB, free: 9.312 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2611, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01446/0.2756, allocations: 11.83 MB / 435 MB, free: 2.777 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006982/0.2825, allocations: 3.234 MB / 438.2 MB, free: 15.53 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/0.2846, allocations: 39.88 kB / 438.2 MB, free: 15.49 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.00259/0.2871, allocations: 0.6653 MB / 438.9 MB, free: 14.82 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.002949/0.2901, allocations: 0.7329 MB / 439.6 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.2914, allocations: 399.5 kB / 440 MB, free: 13.7 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003596/0.295, allocations: 2.26 MB / 442.3 MB, free: 11.43 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.2964, allocations: 0.6495 MB / 442.9 MB, free: 10.73 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.2978, allocations: 0.8678 MB / 443.8 MB, free: 9.859 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.2993, allocations: 0.91 MB / 444.7 MB, free: 8.945 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0003071/0.2996, allocations: 216 kB / 444.9 MB, free: 8.734 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005144/0.3001, allocations: 267.9 kB / 445.2 MB, free: 8.473 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.00037/0.3005, allocations: 426.5 kB / 445.6 MB, free: 8.055 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001035/0.3015, allocations: 1.019 MB / 446.6 MB, free: 7.031 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002919/0.3044, allocations: 2.689 MB / 449.3 MB, free: 4.332 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3044, allocations: 0 / 449.3 MB, free: 4.332 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.102e-06/0.3044, allocations: 4 kB / 449.3 MB, free: 4.328 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 3.131e-05/0.3045, allocations: 4 kB / 449.3 MB, free: 4.324 MB / 350.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.003646/0.3081, allocations: 2.026 MB / 451.3 MB, free: 2.25 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3082, allocations: 8.031 kB / 451.4 MB, free: 2.242 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008248/0.309, allocations: 279.5 kB / 451.6 MB, free: 1.969 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.3107, allocations: 0.9648 MB / 452.6 MB, free: 0.9727 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.3108, allocations: 119.4 kB / 452.7 MB, free: 0.8555 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.311, allocations: 159.9 kB / 452.9 MB, free: 0.6992 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.3136, allocations: 1.483 MB / 454.3 MB, free: 15.14 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 4.885e-05/0.3137, allocations: 15.94 kB / 454.4 MB, free: 15.12 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.3138, allocations: 64 kB / 454.4 MB, free: 15.06 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.334e-05/0.3138, allocations: 36 kB / 454.5 MB, free: 15.03 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.3157, allocations: 0.9746 MB / 455.4 MB, free: 14.05 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008359/0.3241, allocations: 6.392 MB / 461.8 MB, free: 7.309 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008822/0.325, allocations: 372.1 kB / 462.2 MB, free: 6.934 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.3254, allocations: 206.1 kB / 462.4 MB, free: 6.73 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.3255, allocations: 8.438 kB / 462.4 MB, free: 6.723 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005254/0.326, allocations: 268.8 kB / 462.7 MB, free: 6.438 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=50): time 2.374e-06/0.326, allocations: 0 / 462.7 MB, free: 6.438 MB / 366.1 MB
Notification: Performance of matching and sorting (n=56): time 0.003218/0.3292, allocations: 1.56 MB / 464.2 MB, free: 4.836 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.3294, allocations: 162.7 kB / 464.4 MB, free: 4.641 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.3311, allocations: 1.277 MB / 465.7 MB, free: 3.348 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.3311, allocations: 37.7 kB / 465.7 MB, free: 3.305 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007598/0.3319, allocations: 0.8972 MB / 466.6 MB, free: 2.398 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.332, allocations: 214.3 kB / 466.8 MB, free: 2.188 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.3323, allocations: 222.8 kB / 467 MB, free: 1.965 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002532/0.3326, allocations: 349.9 kB / 467.4 MB, free: 1.617 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.3331, allocations: 230.5 kB / 467.6 MB, free: 1.391 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.3341, allocations: 0.8072 MB / 468.4 MB, free: 320 kB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.3356, allocations: 1.11 MB / 469.5 MB, free: 14.93 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.3356, allocations: 8 kB / 469.5 MB, free: 14.92 MB / 382.1 MB
Notification: Performance of matching and sorting (n=149) (initialization): time 0.002081/0.3377, allocations: 1.18 MB / 470.7 MB, free: 13.72 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.3378, allocations: 41.7 kB / 470.7 MB, free: 13.68 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.3378, allocations: 20 kB / 470.7 MB, free: 13.66 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.338, allocations: 74.31 kB / 470.8 MB, free: 13.58 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008069/0.3388, allocations: 263.5 kB / 471.1 MB, free: 13.32 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/0.3411, allocations: 2.567 MB / 473.6 MB, free: 10.53 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008347/0.3419, allocations: 71.81 kB / 473.7 MB, free: 10.46 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.789e-05/0.342, allocations: 72.03 kB / 473.8 MB, free: 10.39 MB / 382.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.0005374/0.3425, allocations: 349.3 kB / 474.1 MB, free: 10.04 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3427, allocations: 135.2 kB / 474.3 MB, free: 9.902 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.3438, allocations: 0.563 MB / 474.8 MB, free: 9.32 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3438, allocations: 4 kB / 474.8 MB, free: 9.316 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3438, allocations: 0 / 474.8 MB, free: 9.316 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3438, allocations: 7.812 kB / 474.8 MB, free: 9.312 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.3466, allocations: 1.823 MB / 476.7 MB, free: 7.379 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3466, allocations: 4 kB / 476.7 MB, free: 7.375 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004514/0.3471, allocations: 107.8 kB / 476.8 MB, free: 7.27 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001418/0.3472, allocations: 41.7 kB / 476.8 MB, free: 7.223 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.3473, allocations: 16 kB / 476.8 MB, free: 7.207 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002087/0.3494, allocations: 2.55 MB / 479.4 MB, free: 4.426 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.3494, allocations: 12.09 kB / 479.4 MB, free: 4.414 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.3508, allocations: 0.9305 MB / 480.3 MB, free: 3.414 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.3512, allocations: 187.1 kB / 480.5 MB, free: 3.23 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.3513, allocations: 12 kB / 480.5 MB, free: 3.219 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.3519, allocations: 31.97 kB / 480.5 MB, free: 3.188 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.352, allocations: 59.8 kB / 480.6 MB, free: 3.129 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.3521, allocations: 16 kB / 480.6 MB, free: 3.113 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.001206/0.3533, allocations: 0.8461 MB / 481.5 MB, free: 2.266 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3533, allocations: 0 / 481.5 MB, free: 2.266 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.001041/0.3543, allocations: 307.9 kB / 481.8 MB, free: 1.965 MB / 382.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.0002206/0.3545, allocations: 139 kB / 481.9 MB, free: 1.82 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.001571/0.3561, allocations: 0.892 MB / 482.8 MB, free: 0.8906 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3561, allocations: 0 / 482.8 MB, free: 0.8906 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.3569, allocations: 471.5 kB / 483.2 MB, free: 416 kB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.3585, allocations: 339.6 kB / 483.6 MB, free: 84 kB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.3626, allocations: 2.556 MB / 486.1 MB, free: 13.44 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000916/0.3636, allocations: 1.178 MB / 487.3 MB, free: 12.23 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0005485/0.3641, allocations: 175.3 kB / 487.5 MB, free: 12.06 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.3643, allocations: 83.44 kB / 487.6 MB, free: 11.98 MB / 398.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.3643, allocations: 0 / 487.6 MB, free: 11.98 MB / 398.1 MB
Notification: Performance of Templates: time 0.03147/0.3958, allocations: 16 MB / 0.4918 GB, free: 12.15 MB / 414.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.212977286428213]