Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001793/0.001793, allocations: 112 kB / 20.43 MB, free: 1.449 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.002218/0.002218, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.43/1.43, allocations: 225.6 MB / 252.5 MB, free: 13.01 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses")
translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 43.92 kB / 370.9 MB, free: 9.34 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2629, allocations: 52.19 MB / 423.1 MB, free: 14.67 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01447/0.2774, allocations: 12.23 MB / 435.4 MB, free: 2.387 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.007019/0.2844, allocations: 3.292 MB / 438.7 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.2864, allocations: 43.81 kB / 438.7 MB, free: 15.04 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002874/0.2893, allocations: 0.6907 MB / 439.4 MB, free: 14.35 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003147/0.2925, allocations: 0.7833 MB / 440.2 MB, free: 13.56 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.2939, allocations: 407.5 kB / 440.6 MB, free: 13.16 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004149/0.2981, allocations: 2.413 MB / 443 MB, free: 10.74 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001712/0.2998, allocations: 0.6461 MB / 443.6 MB, free: 10.04 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.3017, allocations: 0.9417 MB / 444.6 MB, free: 9.094 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.3036, allocations: 0.9723 MB / 445.5 MB, free: 8.117 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0005842/0.3042, allocations: 232 kB / 445.8 MB, free: 7.891 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000873/0.305, allocations: 275.9 kB / 446 MB, free: 7.621 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0005056/0.3055, allocations: 458.3 kB / 446.5 MB, free: 7.172 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001465/0.307, allocations: 1.081 MB / 447.6 MB, free: 6.086 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.003723/0.3107, allocations: 2.84 MB / 450.4 MB, free: 3.234 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3107, allocations: 0 / 450.4 MB, free: 3.234 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.823e-06/0.3107, allocations: 0 / 450.4 MB, free: 3.234 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 5.164e-05/0.3108, allocations: 0 / 450.4 MB, free: 3.234 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: 393
 * Number of variables: 393
Notification: Performance of Generate backend data structure: time 0.004389/0.3152, allocations: 2.133 MB / 452.5 MB, free: 1.059 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3152, allocations: 8.031 kB / 452.6 MB, free: 1.051 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000961/0.3162, allocations: 291.5 kB / 452.8 MB, free: 0.7656 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002113/0.3183, allocations: 1.052 MB / 453.9 MB, free: 15.67 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-05/0.3184, allocations: 115.5 kB / 454 MB, free: 15.55 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002432/0.3186, allocations: 167.9 kB / 454.2 MB, free: 15.39 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002925/0.3216, allocations: 1.496 MB / 455.7 MB, free: 13.83 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 5.683e-05/0.3216, allocations: 23.88 kB / 455.7 MB, free: 13.81 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.3217, allocations: 60 kB / 455.7 MB, free: 13.75 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-05/0.3218, allocations: 40 kB / 455.8 MB, free: 13.71 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.3241, allocations: 1.041 MB / 456.8 MB, free: 12.66 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009466/0.3336, allocations: 6.12 MB / 462.9 MB, free: 6.246 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.3352, allocations: 0.5688 MB / 463.5 MB, free: 5.668 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3362, allocations: 426.6 kB / 463.9 MB, free: 5.25 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.3363, allocations: 8.656 kB / 463.9 MB, free: 5.242 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.3363, allocations: 39.22 kB / 464 MB, free: 5.191 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=66): time 2.535e-06/0.3363, allocations: 0 / 464 MB, free: 5.191 MB / 366.1 MB
Notification: Performance of matching and sorting (n=72): time 0.005367/0.3417, allocations: 2.169 MB / 466.1 MB, free: 2.992 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/0.3418, allocations: 111.5 kB / 466.3 MB, free: 2.859 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.3438, allocations: 1.314 MB / 467.6 MB, free: 1.531 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.3438, allocations: 37.7 kB / 467.6 MB, free: 1.488 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007281/0.3446, allocations: 0.871 MB / 468.5 MB, free: 0.6094 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.3448, allocations: 269.7 kB / 468.7 MB, free: 352 kB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.3451, allocations: 214.8 kB / 468.9 MB, free: 132 kB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.00019/0.3453, allocations: 341.9 kB / 469.3 MB, free: 15.79 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006298/0.3459, allocations: 282.5 kB / 469.6 MB, free: 15.51 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.347, allocations: 0.7463 MB / 470.3 MB, free: 14.55 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.3487, allocations: 1.077 MB / 471.4 MB, free: 13.27 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.3487, allocations: 11.94 kB / 471.4 MB, free: 13.25 MB / 382.1 MB
Notification: Performance of matching and sorting (n=144) (initialization): time 0.002696/0.3514, allocations: 1.265 MB / 472.7 MB, free: 11.97 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.3515, allocations: 14.5 kB / 472.7 MB, free: 11.96 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.3515, allocations: 16.03 kB / 472.7 MB, free: 11.95 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.352, allocations: 138.5 kB / 472.8 MB, free: 11.8 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009229/0.3529, allocations: 263.6 kB / 473.1 MB, free: 11.54 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.3574, allocations: 4.317 MB / 477.4 MB, free: 6.883 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.3585, allocations: 67.92 kB / 477.5 MB, free: 6.816 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-05/0.3586, allocations: 56 kB / 477.5 MB, free: 6.762 MB / 382.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 68
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (137):
 * Single equations (assignments): 134
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * 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,2,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,4)}
Notification: Performance of prepare postOptimizeDAE: time 0.0006744/0.3593, allocations: 357.3 kB / 477.9 MB, free: 6.402 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002638/0.3595, allocations: 147.1 kB / 478 MB, free: 6.258 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.3614, allocations: 0.8256 MB / 478.8 MB, free: 5.41 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.3615, allocations: 15.92 kB / 478.9 MB, free: 5.395 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3615, allocations: 0 / 478.9 MB, free: 5.395 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3615, allocations: 0 / 478.9 MB, free: 5.395 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00416/0.3656, allocations: 2.289 MB / 481.1 MB, free: 2.992 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.3656, allocations: 8.031 kB / 481.1 MB, free: 2.984 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.3662, allocations: 127.8 kB / 481.3 MB, free: 2.859 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004888/0.3667, allocations: 146.4 kB / 481.4 MB, free: 2.707 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.214e-05/0.3668, allocations: 19.98 kB / 481.4 MB, free: 2.688 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00469/0.3715, allocations: 4.481 MB / 485.9 MB, free: 13.86 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.3715, allocations: 4 kB / 485.9 MB, free: 13.86 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002623/0.3741, allocations: 1.305 MB / 487.2 MB, free: 12.48 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0006111/0.3747, allocations: 207 kB / 487.4 MB, free: 12.28 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.3749, allocations: 23.94 kB / 487.5 MB, free: 12.25 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.3755, allocations: 43.95 kB / 487.5 MB, free: 12.21 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.3757, allocations: 60.28 kB / 487.6 MB, free: 12.15 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.663e-05/0.3758, allocations: 31.98 kB / 487.6 MB, free: 12.12 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.001465/0.3772, allocations: 0.8781 MB / 488.5 MB, free: 11.24 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3772, allocations: 0 / 488.5 MB, free: 11.24 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.00131/0.3785, allocations: 324 kB / 488.8 MB, free: 10.92 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 16
 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (63):
 * Single equations (assignments): 60
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * 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,2,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,6)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/0.3788, allocations: 139.2 kB / 488.9 MB, free: 10.78 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.002122/0.3809, allocations: 1.089 MB / 490 MB, free: 9.656 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.381, allocations: 4 kB / 490 MB, free: 9.652 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00111/0.3821, allocations: 0.6869 MB / 490.7 MB, free: 8.93 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.3838, allocations: 361.8 kB / 491 MB, free: 8.586 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005599/0.3894, allocations: 2.966 MB / 494 MB, free: 5.539 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009211/0.3903, allocations: 1.213 MB / 495.2 MB, free: 4.297 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0006677/0.391, allocations: 175.5 kB / 495.4 MB, free: 4.121 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.3912, allocations: 95.42 kB / 495.5 MB, free: 4.031 MB / 398.1 MB
Notification: Performance of SimCode: time 7.82e-07/0.3912, allocations: 4 kB / 495.5 MB, free: 4.027 MB / 398.1 MB
Notification: Performance of Templates: time 0.03966/0.4309, allocations: 18.78 MB / 0.5022 GB, free: 1.43 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.3304098239168525]