Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.00169/0.00169, 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.002049/0.002049, 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.437/1.437, allocations: 230.3 MB / 258 MB, free: 8.234 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.2241/0.2241, allocations: 46.93 MB / 361.4 MB, free: 4.414 MB / 286.1 MB
"
[Timeout remaining time 180]
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.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives")
translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [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.00235/0.00235, allocations: 83.86 kB / 0.4972 GB, free: 7.52 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3223, allocations: 66.04 MB / 0.5616 GB, free: 4.535 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001693/0.324, allocations: 0.5498 MB / 0.5622 GB, free: 3.988 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007488/0.3248, allocations: 366.7 kB / 0.5625 GB, free: 3.629 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.415e-05/0.3248, allocations: 0 / 0.5625 GB, free: 3.629 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.685e-05/0.3248, allocations: 3.938 kB / 0.5625 GB, free: 3.625 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 3.522e-05/0.3249, allocations: 3.938 kB / 0.5625 GB, free: 3.621 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.3253, allocations: 111.6 kB / 0.5626 GB, free: 3.512 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 7.582e-05/0.3254, allocations: 27.91 kB / 0.5627 GB, free: 3.484 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.053e-05/0.3255, allocations: 7.797 kB / 0.5627 GB, free: 3.48 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.536e-05/0.3255, allocations: 11.98 kB / 0.5627 GB, free: 3.469 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.776e-05/0.3255, allocations: 19.86 kB / 0.5627 GB, free: 3.449 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.3256, allocations: 4 kB / 0.5627 GB, free: 3.445 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.3258, allocations: 115.9 kB / 0.5628 GB, free: 3.332 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.3258, allocations: 11.98 kB / 0.5628 GB, free: 3.32 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.3259, allocations: 11.88 kB / 0.5628 GB, free: 3.309 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.3261, allocations: 94.42 kB / 0.5629 GB, free: 3.223 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.3261, allocations: 4 kB / 0.5629 GB, free: 3.219 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.373e-06/0.3261, allocations: 0 / 0.5629 GB, free: 3.219 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 4.95e-06/0.3261, allocations: 0 / 0.5629 GB, free: 3.219 MB / 398.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 9
 * Number of variables: 9
Notification: Performance of Generate backend data structure: time 0.0004843/0.3266, allocations: 294 kB / 0.5632 GB, free: 2.898 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3266, allocations: 8.031 kB / 0.5632 GB, free: 2.891 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.032e-05/0.3266, allocations: 4.938 kB / 0.5632 GB, free: 2.887 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3268, allocations: 118.4 kB / 0.5633 GB, free: 2.746 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.3268, allocations: 8.312 kB / 0.5634 GB, free: 2.738 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.3268, allocations: 4.375 kB / 0.5634 GB, free: 2.734 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.327, allocations: 58.25 kB / 0.5634 GB, free: 2.672 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.327, allocations: 192 / 0.5634 GB, free: 2.672 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.327, allocations: 3.938 kB / 0.5634 GB, free: 2.668 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.327, allocations: 0 / 0.5634 GB, free: 2.668 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 7.211e-05/0.3271, allocations: 31.91 kB / 0.5634 GB, free: 2.637 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.3273, allocations: 144.7 kB / 0.5636 GB, free: 2.453 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.3275, allocations: 50.55 kB / 0.5636 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.819e-05/0.3275, allocations: 24.86 kB / 0.5637 GB, free: 2.367 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002338/0.3278, allocations: 35.89 kB / 0.5637 GB, free: 2.332 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.3278, allocations: 34.78 kB / 0.5637 GB, free: 2.289 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.3278, allocations: 0 / 0.5637 GB, free: 2.289 MB / 398.1 MB
Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default
========================================
1: k2
2: k1
3: x
Please use -d=bltdump for more information.
Notification: Performance of matching and sorting (n=19): time 0.04199/0.3698, allocations: 2.57 MB / 0.5662 GB, free: 15.68 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.3698, allocations: 55.41 kB / 0.5663 GB, free: 15.62 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.3699, allocations: 109.8 kB / 0.5664 GB, free: 15.5 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.37, allocations: 25.7 kB / 0.5664 GB, free: 15.47 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.37, allocations: 91.89 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.453e-05/0.3701, allocations: 59.44 kB / 0.5666 GB, free: 15.32 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3702, allocations: 61.67 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001437/0.3704, allocations: 318.8 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.3708, allocations: 179.9 kB / 0.5671 GB, free: 14.75 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/0.3712, allocations: 175.9 kB / 0.5673 GB, free: 14.58 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.3722, allocations: 415.1 kB / 0.5677 GB, free: 14.18 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3722, allocations: 4 kB / 0.5677 GB, free: 14.17 MB / 414.1 MB
Notification: Performance of matching and sorting (n=19) (initialization): time 0.001057/0.3733, allocations: 463.4 kB / 0.5681 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3733, allocations: 4 kB / 0.5681 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3733, allocations: 3.938 kB / 0.5681 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.3733, allocations: 0 / 0.5681 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/0.3737, allocations: 71.94 kB / 0.5682 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3737, allocations: 3.984 kB / 0.5682 GB, free: 13.63 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.3739, allocations: 23.97 kB / 0.5682 GB, free: 13.61 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.374, allocations: 15.98 kB / 0.5682 GB, free: 13.59 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 (19):
 * Single equations (assignments): 19
 * 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.0001269/0.3741, allocations: 125.7 kB / 0.5683 GB, free: 13.46 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.3741, allocations: 7.953 kB / 0.5684 GB, free: 13.45 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.3754, allocations: 0.5369 MB / 0.5689 GB, free: 12.9 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3754, allocations: 4 kB / 0.5689 GB, free: 12.9 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3754, allocations: 0 / 0.5689 GB, free: 12.9 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3754, allocations: 0 / 0.5689 GB, free: 12.9 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3776, allocations: 0.8649 MB / 0.5697 GB, free: 11.96 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3776, allocations: 0 / 0.5697 GB, free: 11.96 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.3779, allocations: 63.95 kB / 0.5698 GB, free: 11.9 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3779, allocations: 0 / 0.5698 GB, free: 11.9 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.378, allocations: 24.17 kB / 0.5698 GB, free: 11.88 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.378, allocations: 8.656 kB / 0.5698 GB, free: 11.87 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.378, allocations: 0 / 0.5698 GB, free: 11.87 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009/0.3789, allocations: 467.2 kB / 0.5703 GB, free: 11.38 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.456e-05/0.3789, allocations: 11.95 kB / 0.5703 GB, free: 11.37 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.3789, allocations: 7.984 kB / 0.5703 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.3791, allocations: 27.86 kB / 0.5703 GB, free: 11.34 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.3792, allocations: 19.97 kB / 0.5703 GB, free: 11.32 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.3792, allocations: 15.98 kB / 0.5703 GB, free: 11.3 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.204e-05/0.3792, allocations: 83.27 kB / 0.5704 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3792, allocations: 0 / 0.5704 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0008194/0.38, allocations: 315.6 kB / 0.5707 GB, free: 10.91 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 7
 * 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 (19):
 * Single equations (assignments): 19
 * 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.001226/0.3813, allocations: 246.6 kB / 0.571 GB, free: 10.66 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008062/0.3821, allocations: 323.7 kB / 0.5713 GB, free: 10.34 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3821, allocations: 0 / 0.5713 GB, free: 10.34 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.3824, allocations: 148 kB / 0.5714 GB, free: 10.2 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.3827, allocations: 15.56 kB / 0.5714 GB, free: 10.19 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.384, allocations: 414.3 kB / 0.5718 GB, free: 9.738 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.3844, allocations: 0.6965 MB / 0.5725 GB, free: 9.012 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0002888/0.3847, allocations: 96.97 kB / 0.5726 GB, free: 8.914 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.3849, allocations: 47.41 kB / 0.5726 GB, free: 8.867 MB / 414.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.3849, allocations: 0 / 0.5726 GB, free: 8.867 MB / 414.1 MB
Notification: Performance of Templates: time 0.02515/0.41, allocations: 17.95 MB / 0.5902 GB, free: 6.934 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.08055985160172]