Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.001634/0.001634, allocations: 107.3 kB / 19.69 MB, free: 2.188 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.002139/0.002139, allocations: 185.4 kB / 22.98 MB, free: 5.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 207.6 MB / 233.7 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2307/0.2307, allocations: 44.23 MB / 330.2 MB, free: 9.566 MB / 270.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 70.56 kB / 467.9 MB, free: 4.055 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1154, allocations: 61.03 MB / 0.5166 GB, free: 6.887 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00168/0.1171, allocations: 0.5493 MB / 0.5171 GB, free: 6.336 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007795/0.1179, allocations: 382.6 kB / 0.5175 GB, free: 5.961 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.215e-05/0.1179, allocations: 0 / 0.5175 GB, free: 5.961 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.1179, allocations: 3.938 kB / 0.5175 GB, free: 5.957 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 2.921e-05/0.1179, allocations: 4 kB / 0.5175 GB, free: 5.953 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004246/0.1184, allocations: 107.6 kB / 0.5176 GB, free: 5.848 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 6.529e-05/0.1184, allocations: 31.86 kB / 0.5176 GB, free: 5.816 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.27e-05/0.1185, allocations: 3.984 kB / 0.5176 GB, free: 5.812 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.294e-05/0.1185, allocations: 11.94 kB / 0.5176 GB, free: 5.801 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 5.458e-05/0.1186, allocations: 15.92 kB / 0.5176 GB, free: 5.785 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.1186, allocations: 4 kB / 0.5176 GB, free: 5.781 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.1188, allocations: 115.9 kB / 0.5178 GB, free: 5.668 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.54e-05/0.1188, allocations: 12 kB / 0.5178 GB, free: 5.656 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.959e-05/0.1188, allocations: 19.86 kB / 0.5178 GB, free: 5.637 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000186/0.119, allocations: 95.67 kB / 0.5179 GB, free: 5.543 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.119, allocations: 4 kB / 0.5179 GB, free: 5.539 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.422e-06/0.119, allocations: 0 / 0.5179 GB, free: 5.539 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 4.729e-06/0.119, allocations: 0 / 0.5179 GB, free: 5.539 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.0004323/0.1195, allocations: 286 kB / 0.5182 GB, free: 5.227 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.1195, allocations: 12.03 kB / 0.5182 GB, free: 5.215 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.1195, allocations: 0.9375 kB / 0.5182 GB, free: 5.215 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.1197, allocations: 122.5 kB / 0.5183 GB, free: 5.07 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1197, allocations: 4.375 kB / 0.5183 GB, free: 5.066 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.1197, allocations: 384 / 0.5183 GB, free: 5.066 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.1198, allocations: 63.95 kB / 0.5183 GB, free: 5 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1198, allocations: 4.125 kB / 0.5184 GB, free: 4.996 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1199, allocations: 3.938 kB / 0.5184 GB, free: 4.992 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1199, allocations: 0 / 0.5184 GB, free: 4.992 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 7.473e-05/0.1199, allocations: 27.98 kB / 0.5184 GB, free: 4.965 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001855/0.1201, allocations: 136.8 kB / 0.5185 GB, free: 4.789 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.1203, allocations: 62.58 kB / 0.5186 GB, free: 4.719 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.733e-05/0.1204, allocations: 20.84 kB / 0.5186 GB, free: 4.695 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002428/0.1206, allocations: 27.97 kB / 0.5186 GB, free: 4.668 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1207, allocations: 30.56 kB / 0.5186 GB, free: 4.629 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.123e-06/0.1207, allocations: 0 / 0.5186 GB, free: 4.629 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.04519/0.1659, allocations: 2.588 MB / 0.5212 GB, free: 2.004 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1659, allocations: 59.39 kB / 0.5212 GB, free: 1.934 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.166, allocations: 97.86 kB / 0.5213 GB, free: 1.828 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.166, allocations: 29.7 kB / 0.5214 GB, free: 1.793 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.1661, allocations: 80.14 kB / 0.5214 GB, free: 1.711 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/0.1662, allocations: 67.42 kB / 0.5215 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1663, allocations: 65.62 kB / 0.5216 GB, free: 1.574 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001557/0.1665, allocations: 326.7 kB / 0.5219 GB, free: 1.246 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.1669, allocations: 171.9 kB / 0.522 GB, free: 1.078 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.1673, allocations: 183.5 kB / 0.5222 GB, free: 0.9023 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.1684, allocations: 413.2 kB / 0.5226 GB, free: 0.4961 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1684, allocations: 0 / 0.5226 GB, free: 0.4961 MB / 398.1 MB
Notification: Performance of matching and sorting (n=19) (initialization): time 0.001124/0.1695, allocations: 457.4 kB / 0.523 GB, free: 44 kB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.1695, allocations: 11.98 kB / 0.5231 GB, free: 32 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1695, allocations: 0 / 0.5231 GB, free: 32 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1696, allocations: 3.938 kB / 0.5231 GB, free: 28 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004146/0.17, allocations: 75.88 kB / 0.5231 GB, free: 15.95 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.17, allocations: 0 / 0.5231 GB, free: 15.95 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.1702, allocations: 15.98 kB / 0.5231 GB, free: 15.94 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/0.1702, allocations: 19.98 kB / 0.5232 GB, free: 15.92 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.0001345/0.1704, allocations: 121.8 kB / 0.5233 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.1704, allocations: 11.89 kB / 0.5233 GB, free: 15.78 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/0.1718, allocations: 0.5402 MB / 0.5238 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1718, allocations: 4 kB / 0.5238 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1718, allocations: 0 / 0.5238 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1718, allocations: 4 kB / 0.5238 GB, free: 15.22 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.1741, allocations: 0.8416 MB / 0.5246 GB, free: 14.31 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1741, allocations: 4.25 kB / 0.5247 GB, free: 14.31 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.1744, allocations: 72.08 kB / 0.5247 GB, free: 14.24 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.1744, allocations: 11.97 kB / 0.5247 GB, free: 14.23 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.1744, allocations: 16 kB / 0.5247 GB, free: 14.21 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.1744, allocations: 4 kB / 0.5247 GB, free: 14.21 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1744, allocations: 0 / 0.5247 GB, free: 14.21 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009881/0.1754, allocations: 472.1 kB / 0.5252 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.845e-05/0.1754, allocations: 15.94 kB / 0.5252 GB, free: 13.7 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.1755, allocations: 4 kB / 0.5252 GB, free: 13.69 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.1757, allocations: 19.98 kB / 0.5252 GB, free: 13.67 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.1757, allocations: 19.91 kB / 0.5253 GB, free: 13.65 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.1757, allocations: 15.98 kB / 0.5253 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.843e-05/0.1758, allocations: 87.22 kB / 0.5254 GB, free: 13.55 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1758, allocations: 4 kB / 0.5254 GB, free: 13.55 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0008927/0.1767, allocations: 315.6 kB / 0.5257 GB, free: 13.24 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.001327/0.178, allocations: 230.7 kB / 0.5259 GB, free: 13 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000884/0.1789, allocations: 339.6 kB / 0.5262 GB, free: 12.67 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1789, allocations: 0 / 0.5262 GB, free: 12.67 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00037/0.1793, allocations: 135.8 kB / 0.5263 GB, free: 12.54 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.1796, allocations: 8 kB / 0.5263 GB, free: 12.53 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.1809, allocations: 411 kB / 0.5267 GB, free: 12.09 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.1812, allocations: 0.6926 MB / 0.5274 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0003042/0.1815, allocations: 92.97 kB / 0.5275 GB, free: 11.27 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.1817, allocations: 55.41 kB / 0.5276 GB, free: 11.21 MB / 414.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.1817, allocations: 0 / 0.5276 GB, free: 11.21 MB / 414.1 MB
Notification: Performance of Templates: time 0.2197/0.4015, allocations: 17.95 MB / 0.5451 GB, free: 24.13 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.279742399230599]