Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001695/0.001695, allocations: 106 kB / 21.22 MB, free: 0.6758 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.001993/0.001993, allocations: 189.2 kB / 24.51 MB, free: 4.051 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.566/1.566, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2504/0.2504, allocations: 44.91 MB / 353.5 MB, free: 11.84 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
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(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.0.0_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.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 67.89 kB / 497.7 MB, free: 1.035 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3059, allocations: 64.29 MB / 0.5488 GB, free: 13.15 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001673/0.3076, allocations: 0.5451 MB / 0.5493 GB, free: 12.75 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007476/0.3083, allocations: 379.3 kB / 0.5497 GB, free: 12.46 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.3084, allocations: 1 kB / 0.5497 GB, free: 12.46 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.3084, allocations: 3.938 kB / 0.5497 GB, free: 12.45 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 3.151e-05/0.3084, allocations: 0 / 0.5497 GB, free: 12.45 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.3088, allocations: 102.9 kB / 0.5498 GB, free: 12.39 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 7.056e-05/0.3089, allocations: 27.92 kB / 0.5498 GB, free: 12.38 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.446e-05/0.3089, allocations: 5.766 kB / 0.5498 GB, free: 12.38 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.969e-05/0.309, allocations: 21.91 kB / 0.5499 GB, free: 12.36 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.309, allocations: 16.77 kB / 0.5499 GB, free: 12.35 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.3091, allocations: 6.062 kB / 0.5499 GB, free: 12.34 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002723/0.3093, allocations: 119.6 kB / 0.55 GB, free: 12.28 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.71e-05/0.3093, allocations: 4.797 kB / 0.55 GB, free: 12.28 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.366e-05/0.3094, allocations: 15.47 kB / 0.55 GB, free: 12.27 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.3096, allocations: 97.31 kB / 0.5501 GB, free: 12.21 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3096, allocations: 5.094 kB / 0.5501 GB, free: 12.21 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.343e-06/0.3096, allocations: 4 kB / 0.5501 GB, free: 12.2 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 4.969e-06/0.3096, allocations: 0 / 0.5501 GB, free: 12.2 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.0005086/0.3101, allocations: 292 kB / 0.5504 GB, free: 11.91 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3101, allocations: 8.844 kB / 0.5504 GB, free: 11.91 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.3102, allocations: 7.203 kB / 0.5504 GB, free: 11.9 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.3103, allocations: 110.2 kB / 0.5505 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3103, allocations: 5.625 kB / 0.5505 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.3104, allocations: 7.094 kB / 0.5505 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.3105, allocations: 52.2 kB / 0.5506 GB, free: 11.72 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3105, allocations: 12.14 kB / 0.5506 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.3106, allocations: 3.938 kB / 0.5506 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3106, allocations: 1.531 kB / 0.5506 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 7.05e-05/0.3106, allocations: 24.42 kB / 0.5506 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002156/0.3108, allocations: 147.2 kB / 0.5508 GB, free: 11.52 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.3111, allocations: 50.34 kB / 0.5508 GB, free: 11.49 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 5.151e-05/0.3111, allocations: 22.81 kB / 0.5508 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/0.3114, allocations: 37.08 kB / 0.5509 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3114, allocations: 31.66 kB / 0.5509 GB, free: 11.41 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.103e-06/0.3114, allocations: 1.125 kB / 0.5509 GB, free: 11.41 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.04424/0.3556, allocations: 2.577 MB / 0.5534 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.3557, allocations: 53.66 kB / 0.5535 GB, free: 9.977 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.3558, allocations: 107.8 kB / 0.5536 GB, free: 9.867 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.3559, allocations: 30.98 kB / 0.5536 GB, free: 9.832 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.3559, allocations: 84.14 kB / 0.5537 GB, free: 9.746 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.616e-05/0.356, allocations: 63.44 kB / 0.5537 GB, free: 9.691 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.3561, allocations: 54.94 kB / 0.5538 GB, free: 9.66 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001712/0.3563, allocations: 323.9 kB / 0.5541 GB, free: 9.336 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.3567, allocations: 175.1 kB / 0.5543 GB, free: 9.246 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/0.3572, allocations: 176.6 kB / 0.5544 GB, free: 9.156 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.3583, allocations: 411.1 kB / 0.5548 GB, free: 8.961 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3583, allocations: 0 / 0.5548 GB, free: 8.961 MB / 398.1 MB
Notification: Performance of matching and sorting (n=19) (initialization): time 0.001146/0.3594, allocations: 466.2 kB / 0.5553 GB, free: 8.664 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3594, allocations: 4 kB / 0.5553 GB, free: 8.66 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3594, allocations: 0 / 0.5553 GB, free: 8.66 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3595, allocations: 8.188 kB / 0.5553 GB, free: 8.652 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/0.3599, allocations: 67.94 kB / 0.5553 GB, free: 8.586 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3599, allocations: 8 kB / 0.5554 GB, free: 8.578 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.3601, allocations: 23.91 kB / 0.5554 GB, free: 8.555 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.3601, allocations: 12 kB / 0.5554 GB, free: 8.543 MB / 398.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.0001525/0.3603, allocations: 133.6 kB / 0.5555 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.461e-05/0.3603, allocations: 7.953 kB / 0.5555 GB, free: 8.395 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.3617, allocations: 0.5413 MB / 0.5561 GB, free: 7.84 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.3617, allocations: 0 / 0.5561 GB, free: 7.84 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3617, allocations: 480 / 0.5561 GB, free: 7.84 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.3618, allocations: 3.984 kB / 0.5561 GB, free: 7.836 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.3641, allocations: 0.8647 MB / 0.5569 GB, free: 6.91 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3641, allocations: 0 / 0.5569 GB, free: 6.91 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.3644, allocations: 71.88 kB / 0.557 GB, free: 6.84 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.758e-06/0.3644, allocations: 3.938 kB / 0.557 GB, free: 6.836 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.3644, allocations: 15.98 kB / 0.557 GB, free: 6.82 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3644, allocations: 8.188 kB / 0.557 GB, free: 6.812 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3644, allocations: 3.938 kB / 0.557 GB, free: 6.809 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3654, allocations: 470.5 kB / 0.5574 GB, free: 6.316 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.677e-05/0.3654, allocations: 7.953 kB / 0.5575 GB, free: 6.309 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.3655, allocations: 4 kB / 0.5575 GB, free: 6.305 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3657, allocations: 23.97 kB / 0.5575 GB, free: 6.281 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.3657, allocations: 15.92 kB / 0.5575 GB, free: 6.266 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.3658, allocations: 19.98 kB / 0.5575 GB, free: 6.246 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 5.696e-05/0.3658, allocations: 79.28 kB / 0.5576 GB, free: 6.168 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3658, allocations: 0 / 0.5576 GB, free: 6.168 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0009176/0.3668, allocations: 323.6 kB / 0.5579 GB, free: 5.852 MB / 398.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.3681, allocations: 226.7 kB / 0.5581 GB, free: 5.621 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.000888/0.369, allocations: 327.7 kB / 0.5584 GB, free: 5.301 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.369, allocations: 0 / 0.5584 GB, free: 5.301 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.3694, allocations: 148.1 kB / 0.5586 GB, free: 5.156 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.3696, allocations: 15.98 kB / 0.5586 GB, free: 5.141 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.371, allocations: 414.2 kB / 0.559 GB, free: 4.688 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.3714, allocations: 0.7004 MB / 0.5597 GB, free: 3.957 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0003081/0.3717, allocations: 93.17 kB / 0.5598 GB, free: 3.863 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.3719, allocations: 55.33 kB / 0.5598 GB, free: 3.809 MB / 398.1 MB
Notification: Performance of SimCode: time 7.01e-07/0.3719, allocations: 0 / 0.5598 GB, free: 3.809 MB / 398.1 MB
Notification: Performance of Templates: time 0.02721/0.3991, allocations: 17.96 MB / 0.5773 GB, free: 1.887 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.302777952514589]