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_withLosses.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.001446/0.001446, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001521/0.001521, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.451/1.451, allocations: 230.6 MB / 258.2 MB, free: 8.055 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_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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [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.00197/0.00197, allocations: 64.77 kB / 379.1 MB, free: 2.633 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2798, allocations: 53.37 MB / 432.4 MB, free: 6.957 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0143/0.2941, allocations: 12.25 MB / 444.7 MB, free: 10.66 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006489/0.3006, allocations: 3.323 MB / 448 MB, free: 7.324 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.3017, allocations: 47.81 kB / 448 MB, free: 7.277 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001723/0.3034, allocations: 0.6907 MB / 448.7 MB, free: 6.582 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001854/0.3053, allocations: 0.7833 MB / 449.5 MB, free: 5.793 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008056/0.3061, allocations: 407.4 kB / 449.9 MB, free: 5.395 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.002776/0.3089, allocations: 2.413 MB / 452.3 MB, free: 2.973 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.3099, allocations: 0.6579 MB / 453 MB, free: 2.262 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.3112, allocations: 0.9379 MB / 453.9 MB, free: 1.32 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3123, allocations: 0.9762 MB / 454.9 MB, free: 348 kB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000289/0.3126, allocations: 228 kB / 455.1 MB, free: 120 kB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004758/0.3131, allocations: 272 kB / 455.4 MB, free: 15.85 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003754/0.3135, allocations: 458.3 kB / 455.8 MB, free: 15.4 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3145, allocations: 1.081 MB / 456.9 MB, free: 14.32 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.003041/0.3175, allocations: 2.837 MB / 459.7 MB, free: 11.47 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3175, allocations: 0 / 459.7 MB, free: 11.47 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.222e-06/0.3175, allocations: 4 kB / 459.8 MB, free: 11.46 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 3.199e-05/0.3176, allocations: 0 / 459.8 MB, free: 11.46 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: 393
 * Number of variables: 393
Notification: Performance of Generate backend data structure: time 0.003817/0.3214, allocations: 2.149 MB / 461.9 MB, free: 9.273 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.3214, allocations: 8.031 kB / 461.9 MB, free: 9.266 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009066/0.3223, allocations: 291.5 kB / 462.2 MB, free: 8.98 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.3242, allocations: 1.051 MB / 463.2 MB, free: 7.887 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.471e-05/0.3243, allocations: 115.5 kB / 463.4 MB, free: 7.773 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002469/0.3246, allocations: 159.9 kB / 463.5 MB, free: 7.617 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.3273, allocations: 1.504 MB / 465 MB, free: 6.051 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 5.145e-05/0.3273, allocations: 15.94 kB / 465 MB, free: 6.035 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.3275, allocations: 64 kB / 465.1 MB, free: 5.973 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.919e-05/0.3275, allocations: 36 kB / 465.1 MB, free: 5.938 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.3296, allocations: 1.045 MB / 466.2 MB, free: 4.887 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008243/0.3379, allocations: 6.112 MB / 472.3 MB, free: 14.48 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.3394, allocations: 0.5687 MB / 472.9 MB, free: 13.9 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009494/0.3404, allocations: 431.5 kB / 473.3 MB, free: 13.48 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.494e-05/0.3404, allocations: 8.641 kB / 473.3 MB, free: 13.47 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.3405, allocations: 39.22 kB / 473.3 MB, free: 13.42 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=66): time 2.295e-06/0.3405, allocations: 4 kB / 473.3 MB, free: 13.41 MB / 382.1 MB
Notification: Performance of matching and sorting (n=72): time 0.005004/0.3455, allocations: 2.173 MB / 475.5 MB, free: 11.21 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.3456, allocations: 111.5 kB / 475.6 MB, free: 11.07 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.3475, allocations: 1.306 MB / 476.9 MB, free: 9.754 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.3476, allocations: 41.7 kB / 477 MB, free: 9.707 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.3483, allocations: 0.871 MB / 477.8 MB, free: 8.828 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3485, allocations: 269.8 kB / 478.1 MB, free: 8.562 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/0.3488, allocations: 210.8 kB / 478.3 MB, free: 8.352 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001648/0.349, allocations: 349.9 kB / 478.6 MB, free: 8.004 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.3496, allocations: 282.5 kB / 478.9 MB, free: 7.727 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009755/0.3505, allocations: 0.7385 MB / 479.7 MB, free: 6.777 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.3521, allocations: 1.081 MB / 480.7 MB, free: 5.488 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.3521, allocations: 4 kB / 480.7 MB, free: 5.484 MB / 382.1 MB
Notification: Performance of matching and sorting (n=144) (initialization): time 0.002456/0.3546, allocations: 1.264 MB / 482 MB, free: 4.203 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.3546, allocations: 14.81 kB / 482 MB, free: 4.191 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.3546, allocations: 16 kB / 482 MB, free: 4.176 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.3551, allocations: 143 kB / 482.2 MB, free: 4.027 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.356, allocations: 251.6 kB / 482.4 MB, free: 3.781 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004044/0.36, allocations: 4.332 MB / 486.8 MB, free: 15.11 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009049/0.3609, allocations: 55.92 kB / 486.8 MB, free: 15.05 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/0.361, allocations: 59.92 kB / 486.9 MB, free: 14.99 MB / 398.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.0006014/0.3616, allocations: 353.5 kB / 487.2 MB, free: 14.64 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.3618, allocations: 147.1 kB / 487.4 MB, free: 14.49 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.3636, allocations: 0.8256 MB / 488.2 MB, free: 13.64 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3636, allocations: 15.88 kB / 488.2 MB, free: 13.63 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3636, allocations: 4 kB / 488.2 MB, free: 13.62 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3636, allocations: 3.984 kB / 488.2 MB, free: 13.62 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.3676, allocations: 2.293 MB / 490.5 MB, free: 11.22 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-06/0.3676, allocations: 8.062 kB / 490.5 MB, free: 11.21 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/0.3682, allocations: 131.9 kB / 490.6 MB, free: 11.08 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.000436/0.3686, allocations: 138.8 kB / 490.8 MB, free: 10.94 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.082e-05/0.3686, allocations: 16 kB / 490.8 MB, free: 10.92 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004387/0.373, allocations: 4.482 MB / 495.3 MB, free: 6.098 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.373, allocations: 4 kB / 495.3 MB, free: 6.094 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.3754, allocations: 1.309 MB / 496.6 MB, free: 4.707 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0004711/0.3758, allocations: 211 kB / 496.8 MB, free: 4.5 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.376, allocations: 20 kB / 496.8 MB, free: 4.48 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005957/0.3766, allocations: 35.97 kB / 496.8 MB, free: 4.445 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.3767, allocations: 68.27 kB / 496.9 MB, free: 4.379 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.3768, allocations: 23.98 kB / 496.9 MB, free: 4.355 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.001252/0.378, allocations: 0.882 MB / 497.8 MB, free: 3.473 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.378, allocations: 0 / 497.8 MB, free: 3.473 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.001126/0.3791, allocations: 324 kB / 498.1 MB, free: 3.156 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.0002156/0.3793, allocations: 137.7 kB / 498.3 MB, free: 3.016 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001804/0.3812, allocations: 1.089 MB / 499.4 MB, free: 1.891 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3812, allocations: 0 / 499.4 MB, free: 1.891 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3822, allocations: 0.6874 MB / 0.4883 GB, free: 1.168 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.3835, allocations: 363.2 kB / 0.4887 GB, free: 0.8242 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004869/0.3884, allocations: 2.97 MB / 0.4916 GB, free: 13.77 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008534/0.3893, allocations: 1.217 MB / 0.4928 GB, free: 12.52 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0005238/0.3898, allocations: 171.6 kB / 0.4929 GB, free: 12.35 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.39, allocations: 91.42 kB / 0.493 GB, free: 12.27 MB / 414.1 MB
Notification: Performance of SimCode: time 6.71e-07/0.39, allocations: 0 / 0.493 GB, free: 12.27 MB / 414.1 MB
Notification: Performance of Templates: time 0.03544/0.4254, allocations: 18.82 MB / 0.5114 GB, free: 9.633 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.215743319131434]