Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001758/0.001758, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002238/0.002238, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 64.77 kB / 379 MB, free: 2.625 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2345, allocations: 53.37 MB / 432.4 MB, free: 6.91 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01346/0.248, allocations: 11.85 MB / 444.3 MB, free: 11.02 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006138/0.2541, allocations: 3.269 MB / 447.5 MB, free: 7.738 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.2555, allocations: 35.88 kB / 447.6 MB, free: 7.703 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001725/0.2572, allocations: 0.6788 MB / 448.2 MB, free: 7.023 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001913/0.2591, allocations: 0.7328 MB / 449 MB, free: 6.285 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008876/0.26, allocations: 407.5 kB / 449.4 MB, free: 5.887 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003179/0.2632, allocations: 2.238 MB / 451.6 MB, free: 3.641 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0009942/0.2642, allocations: 0.6459 MB / 452.3 MB, free: 2.941 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.2655, allocations: 0.8795 MB / 453.1 MB, free: 2.059 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.2666, allocations: 0.9139 MB / 454.1 MB, free: 1.141 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0002704/0.2668, allocations: 216 kB / 454.3 MB, free: 0.9297 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000461/0.2673, allocations: 256 kB / 454.5 MB, free: 0.6797 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.2677, allocations: 434.4 kB / 454.9 MB, free: 260 kB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001042/0.2687, allocations: 1.015 MB / 456 MB, free: 15.23 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.003032/0.2717, allocations: 2.695 MB / 458.7 MB, free: 12.53 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.2717, allocations: 4 kB / 458.7 MB, free: 12.53 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.363e-06/0.2718, allocations: 0 / 458.7 MB, free: 12.53 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 3.237e-05/0.2718, allocations: 0 / 458.7 MB, free: 12.53 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.003731/0.2755, allocations: 2.037 MB / 460.7 MB, free: 10.44 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2756, allocations: 8.031 kB / 460.7 MB, free: 10.43 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.2764, allocations: 263.6 kB / 461 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/0.2783, allocations: 0.9764 MB / 461.9 MB, free: 9.168 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.2784, allocations: 115.5 kB / 462 MB, free: 9.055 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.2787, allocations: 159.9 kB / 462.2 MB, free: 8.898 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002561/0.2812, allocations: 1.487 MB / 463.7 MB, free: 7.336 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 4.838e-05/0.2813, allocations: 11.89 kB / 463.7 MB, free: 7.324 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.2814, allocations: 68 kB / 463.8 MB, free: 7.258 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.983e-05/0.2815, allocations: 43.98 kB / 463.8 MB, free: 7.215 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.2833, allocations: 0.9668 MB / 464.8 MB, free: 6.242 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008697/0.292, allocations: 6.392 MB / 471.2 MB, free: 15.5 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008518/0.2929, allocations: 376.9 kB / 471.5 MB, free: 15.12 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004361/0.2933, allocations: 198.1 kB / 471.7 MB, free: 14.93 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.2933, allocations: 8.422 kB / 471.7 MB, free: 14.92 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005217/0.2939, allocations: 272.8 kB / 472 MB, free: 14.63 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=50): time 3.967e-06/0.2939, allocations: 7.922 kB / 472 MB, free: 14.62 MB / 382.1 MB
Notification: Performance of matching and sorting (n=56): time 0.003424/0.2973, allocations: 1.553 MB / 473.6 MB, free: 13.04 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.2974, allocations: 166.7 kB / 473.7 MB, free: 12.84 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001736/0.2991, allocations: 1.277 MB / 475 MB, free: 11.55 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.2992, allocations: 37.7 kB / 475 MB, free: 11.5 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007826/0.3, allocations: 0.8934 MB / 475.9 MB, free: 10.6 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.3001, allocations: 214.3 kB / 476.1 MB, free: 10.39 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.3004, allocations: 226.7 kB / 476.4 MB, free: 10.16 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001819/0.3006, allocations: 357.9 kB / 476.7 MB, free: 9.809 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.3011, allocations: 234.5 kB / 476.9 MB, free: 9.578 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009263/0.302, allocations: 0.8033 MB / 477.7 MB, free: 8.504 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3035, allocations: 1.113 MB / 478.9 MB, free: 7.121 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.3035, allocations: 4 kB / 478.9 MB, free: 7.117 MB / 382.1 MB
Notification: Performance of matching and sorting (n=149) (initialization): time 0.002023/0.3055, allocations: 1.176 MB / 480 MB, free: 5.922 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.3056, allocations: 37.7 kB / 480.1 MB, free: 5.879 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/0.3056, allocations: 20 kB / 480.1 MB, free: 5.859 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002339/0.3058, allocations: 69.58 kB / 480.2 MB, free: 5.785 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000772/0.3066, allocations: 267.6 kB / 480.4 MB, free: 5.523 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.3087, allocations: 2.586 MB / 483 MB, free: 2.711 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000969/0.3096, allocations: 67.92 kB / 483.1 MB, free: 2.645 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.3097, allocations: 56 kB / 483.1 MB, free: 2.59 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.0005761/0.3103, allocations: 365.3 kB / 483.5 MB, free: 2.223 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.3105, allocations: 139.1 kB / 483.6 MB, free: 2.086 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.3115, allocations: 0.5434 MB / 484.2 MB, free: 1.52 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.3115, allocations: 8 kB / 484.2 MB, free: 1.512 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3115, allocations: 0 / 484.2 MB, free: 1.512 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3115, allocations: 3.984 kB / 484.2 MB, free: 1.508 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3144, allocations: 1.834 MB / 486 MB, free: 15.56 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.3144, allocations: 4 kB / 486 MB, free: 15.55 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.3148, allocations: 108.3 kB / 486.1 MB, free: 15.45 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.315, allocations: 41.7 kB / 486.2 MB, free: 15.4 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.315, allocations: 19.98 kB / 486.2 MB, free: 15.38 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.317, allocations: 2.539 MB / 488.7 MB, free: 12.61 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.317, allocations: 11.94 kB / 488.7 MB, free: 12.6 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3185, allocations: 0.9228 MB / 489.7 MB, free: 11.61 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0004462/0.319, allocations: 187 kB / 489.8 MB, free: 11.43 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.3191, allocations: 19.94 kB / 489.9 MB, free: 11.41 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005216/0.3196, allocations: 35.97 kB / 489.9 MB, free: 11.38 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3197, allocations: 51.86 kB / 489.9 MB, free: 11.32 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.3198, allocations: 20 kB / 490 MB, free: 11.3 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.001272/0.3211, allocations: 0.8461 MB / 490.8 MB, free: 10.46 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.01e-07/0.3211, allocations: 3.938 kB / 490.8 MB, free: 10.45 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.001064/0.3221, allocations: 315.9 kB / 491.1 MB, free: 10.14 MB / 398.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.000211/0.3223, allocations: 123.2 kB / 491.2 MB, free: 10.02 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001535/0.3239, allocations: 0.9049 MB / 492.2 MB, free: 9.074 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3239, allocations: 4 kB / 492.2 MB, free: 9.07 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007101/0.3246, allocations: 450.3 kB / 492.6 MB, free: 8.605 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.326, allocations: 334.4 kB / 492.9 MB, free: 8.289 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004106/0.3301, allocations: 2.556 MB / 495.5 MB, free: 5.652 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009092/0.331, allocations: 1.182 MB / 496.7 MB, free: 4.441 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.000573/0.3315, allocations: 167.3 kB / 496.8 MB, free: 4.273 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3317, allocations: 91.42 kB / 496.9 MB, free: 4.184 MB / 398.1 MB
Notification: Performance of SimCode: time 6.42e-07/0.3317, allocations: 0 / 496.9 MB, free: 4.184 MB / 398.1 MB
Notification: Performance of Templates: time 0.03166/0.3634, allocations: 16.07 MB / 0.501 GB, free: 4.293 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.18474957626313]