Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.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.001502/0.001502, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002085/0.002085, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2677/0.2677, allocations: 46.94 MB / 361.4 MB, free: 4.395 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator")
translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660]
"Warning: Requested package Modelica 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.002634/0.002634, allocations: 79.86 kB / 0.4971 GB, free: 7.531 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3653, allocations: 66.04 MB / 0.5616 GB, free: 4.523 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001619/0.3669, allocations: 496.5 kB / 0.5621 GB, free: 4.043 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003569/0.3705, allocations: 2.17 MB / 0.5642 GB, free: 1.855 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.891e-05/0.3705, allocations: 4 kB / 0.5642 GB, free: 1.852 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.05e-05/0.3705, allocations: 0 / 0.5642 GB, free: 1.852 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 2.467e-05/0.3706, allocations: 3.938 kB / 0.5642 GB, free: 1.848 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.3719, allocations: 398.3 kB / 0.5646 GB, free: 1.461 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.601e-05/0.3719, allocations: 0 / 0.5646 GB, free: 1.461 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.705e-05/0.372, allocations: 8 kB / 0.5646 GB, free: 1.453 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.061e-05/0.372, allocations: 3.984 kB / 0.5646 GB, free: 1.449 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.02104/0.3931, allocations: 3.385 MB / 0.5679 GB, free: 14.69 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.3931, allocations: 0 / 0.5679 GB, free: 14.69 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.437e-05/0.3932, allocations: 4 kB / 0.5679 GB, free: 14.69 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.3932, allocations: 3.984 kB / 0.5679 GB, free: 14.68 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.3e-05/0.3932, allocations: 4 kB / 0.5679 GB, free: 14.68 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.3934, allocations: 8 kB / 0.5679 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3934, allocations: 0 / 0.5679 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.773e-06/0.3934, allocations: 4 kB / 0.5679 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 1.819e-05/0.3934, allocations: 3.984 kB / 0.568 GB, free: 14.66 MB / 414.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 0
 * Number of variables: 0
Notification: Performance of Generate backend data structure: time 0.0003176/0.3937, allocations: 234.4 kB / 0.5682 GB, free: 14.41 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3938, allocations: 12.03 kB / 0.5682 GB, free: 14.39 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.394, allocations: 92.2 kB / 0.5683 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3941, allocations: 181.8 kB / 0.5684 GB, free: 14.1 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.493e-05/0.3942, allocations: 158.9 kB / 0.5686 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.671e-05/0.3942, allocations: 150.9 kB / 0.5687 GB, free: 13.8 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.892e-05/0.3943, allocations: 109.2 kB / 0.5688 GB, free: 13.68 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.3944, allocations: 75.28 kB / 0.5689 GB, free: 13.61 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.3945, allocations: 150.6 kB / 0.5691 GB, free: 13.46 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.632e-05/0.3945, allocations: 154.6 kB / 0.5692 GB, free: 13.31 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.138e-05/0.3946, allocations: 162.5 kB / 0.5694 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003438/0.395, allocations: 413 kB / 0.5698 GB, free: 12.7 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.3951, allocations: 173.1 kB / 0.5699 GB, free: 12.52 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.713e-05/0.3951, allocations: 84.14 kB / 0.57 GB, free: 12.44 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.3952, allocations: 79.28 kB / 0.5701 GB, free: 12.36 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.16e-05/0.3953, allocations: 109.8 kB / 0.5702 GB, free: 12.24 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=0): time 1.432e-06/0.3953, allocations: 0 / 0.5702 GB, free: 12.24 MB / 414.1 MB
Notification: Performance of matching and sorting (n=0): time 8.51e-05/0.3953, allocations: 25.7 kB / 0.5702 GB, free: 12.21 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.3955, allocations: 182.1 kB / 0.5704 GB, free: 12.01 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.3956, allocations: 93.84 kB / 0.5705 GB, free: 11.91 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.3956, allocations: 29.83 kB / 0.5705 GB, free: 11.87 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.3957, allocations: 84.14 kB / 0.5706 GB, free: 11.79 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.024e-06/0.3957, allocations: 0 / 0.5706 GB, free: 11.79 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.3957, allocations: 13.72 kB / 0.5706 GB, free: 11.77 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001401/0.3959, allocations: 314.8 kB / 0.5709 GB, free: 11.45 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.19e-06/0.3959, allocations: 0 / 0.5709 GB, free: 11.45 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.013e-05/0.3959, allocations: 13.72 kB / 0.5709 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 3.388e-05/0.3959, allocations: 75.28 kB / 0.571 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.18e-05/0.396, allocations: 79.31 kB / 0.5711 GB, free: 11.28 MB / 414.1 MB
Notification: Performance of matching and sorting (n=0) (initialization): time 6.134e-05/0.396, allocations: 29.7 kB / 0.5711 GB, free: 11.24 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.165e-05/0.3961, allocations: 87.2 kB / 0.5712 GB, free: 11.16 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.681e-05/0.3961, allocations: 83.22 kB / 0.5712 GB, free: 11.07 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-05/0.3962, allocations: 154.6 kB / 0.5714 GB, free: 10.92 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.899e-05/0.3962, allocations: 79.28 kB / 0.5715 GB, free: 10.84 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.703e-05/0.3963, allocations: 158.5 kB / 0.5716 GB, free: 10.69 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.702e-05/0.3964, allocations: 75.28 kB / 0.5717 GB, free: 10.61 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/0.3964, allocations: 83.22 kB / 0.5718 GB, free: 10.53 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * 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 (0):
 * Single equations (assignments): 0
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.3966, allocations: 264.4 kB / 0.572 GB, free: 10.26 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.747e-05/0.3966, allocations: 104.9 kB / 0.5721 GB, free: 10.15 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.3e-05/0.3967, allocations: 111.8 kB / 0.5722 GB, free: 10.04 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-05/0.3968, allocations: 188.1 kB / 0.5724 GB, free: 9.844 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.252e-05/0.3969, allocations: 176.3 kB / 0.5726 GB, free: 9.664 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.188e-05/0.397, allocations: 184.2 kB / 0.5728 GB, free: 9.477 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.3972, allocations: 372.3 kB / 0.5731 GB, free: 9.062 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.022e-05/0.3973, allocations: 101 kB / 0.5732 GB, free: 8.957 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.591e-05/0.3973, allocations: 108.9 kB / 0.5733 GB, free: 8.844 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.875e-05/0.3974, allocations: 192.2 kB / 0.5735 GB, free: 8.648 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.653e-05/0.3975, allocations: 180.2 kB / 0.5737 GB, free: 8.465 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.132e-05/0.3976, allocations: 180.3 kB / 0.5738 GB, free: 8.281 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.49e-05/0.3977, allocations: 188.2 kB / 0.574 GB, free: 8.09 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.3979, allocations: 304.2 kB / 0.5743 GB, free: 7.77 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/0.3979, allocations: 116.9 kB / 0.5744 GB, free: 7.648 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.398, allocations: 184.2 kB / 0.5746 GB, free: 7.461 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.3981, allocations: 108.9 kB / 0.5747 GB, free: 7.348 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.3982, allocations: 180.2 kB / 0.5749 GB, free: 7.164 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.3983, allocations: 105 kB / 0.575 GB, free: 7.055 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.164e-05/0.3983, allocations: 75.28 kB / 0.575 GB, free: 6.98 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3983, allocations: 4 kB / 0.575 GB, free: 6.977 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002767/0.3986, allocations: 0 / 0.575 GB, free: 6.977 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * 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 simulation (0):
 * Single equations (assignments): 0
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.3988, allocations: 174.5 kB / 0.5752 GB, free: 6.793 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 6.234e-05/0.3988, allocations: 0 / 0.5752 GB, free: 6.793 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3988, allocations: 0 / 0.5752 GB, free: 6.793 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 1.623e-06/0.3988, allocations: 4.094 kB / 0.5752 GB, free: 6.789 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.3992, allocations: 455.7 kB / 0.5756 GB, free: 6.34 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000243/0.3995, allocations: 160.2 kB / 0.5758 GB, free: 6.156 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.3998, allocations: 0.6729 MB / 0.5765 GB, free: 5.457 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 3.162e-05/0.3998, allocations: 0 / 0.5765 GB, free: 5.457 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.783e-05/0.3999, allocations: 7.438 kB / 0.5765 GB, free: 5.449 MB / 414.1 MB
Notification: Performance of SimCode: time 1.182e-06/0.3999, allocations: 4 kB / 0.5765 GB, free: 5.445 MB / 414.1 MB
Notification: Performance of Templates: time 0.003072/0.4029, allocations: 309.8 kB / 0.5768 GB, free: 5.148 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.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.373694468289614]