Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001548/0.001548, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001684/0.001684, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.469/1.469, allocations: 230.3 MB / 258 MB, free: 8.195 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.2428/0.2428, allocations: 46.94 MB / 361.4 MB, free: 4.383 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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3")
translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [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.002323/0.002323, allocations: 80.14 kB / 0.4971 GB, free: 7.523 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3331, allocations: 66.05 MB / 0.5616 GB, free: 4.656 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001889/0.335, allocations: 0.4915 MB / 0.5621 GB, free: 4.168 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002219/0.3372, allocations: 1.416 MB / 0.5635 GB, free: 2.73 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.385e-05/0.3372, allocations: 0 / 0.5635 GB, free: 2.73 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.3373, allocations: 0 / 0.5635 GB, free: 2.73 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 3.174e-05/0.3373, allocations: 0 / 0.5635 GB, free: 2.73 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000788/0.3381, allocations: 215.5 kB / 0.5637 GB, free: 2.523 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 6.877e-05/0.3381, allocations: 15.98 kB / 0.5637 GB, free: 2.508 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.476e-05/0.3382, allocations: 0 / 0.5637 GB, free: 2.508 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.96e-05/0.3382, allocations: 4 kB / 0.5637 GB, free: 2.504 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.081e-05/0.3383, allocations: 3.984 kB / 0.5637 GB, free: 2.5 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.3383, allocations: 3.938 kB / 0.5637 GB, free: 2.496 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004976/0.3388, allocations: 279.6 kB / 0.564 GB, free: 2.223 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.925e-05/0.3388, allocations: 7.922 kB / 0.564 GB, free: 2.215 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.3388, allocations: 4 kB / 0.564 GB, free: 2.211 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.3391, allocations: 138.5 kB / 0.5641 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3391, allocations: 0 / 0.5641 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.964e-06/0.3391, allocations: 4 kB / 0.5641 GB, free: 2.074 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 7.564e-06/0.3391, allocations: 0 / 0.5641 GB, free: 2.074 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: 3
 * Number of variables: 3
Notification: Performance of Generate backend data structure: time 0.0004743/0.3396, allocations: 258.3 kB / 0.5644 GB, free: 1.793 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3396, allocations: 12.02 kB / 0.5644 GB, free: 1.781 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.3397, allocations: 8.891 kB / 0.5644 GB, free: 1.773 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.3398, allocations: 106.5 kB / 0.5645 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3398, allocations: 384 / 0.5645 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.3398, allocations: 4.359 kB / 0.5645 GB, free: 1.641 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.34, allocations: 53.88 kB / 0.5646 GB, free: 1.582 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.34, allocations: 4 kB / 0.5646 GB, free: 1.578 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.34, allocations: 0 / 0.5646 GB, free: 1.578 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.34, allocations: 0 / 0.5646 GB, free: 1.578 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.495e-05/0.3401, allocations: 8 kB / 0.5646 GB, free: 1.57 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004157/0.3405, allocations: 212 kB / 0.5648 GB, free: 1.32 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.932e-05/0.3405, allocations: 18.58 kB / 0.5648 GB, free: 1.293 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.3405, allocations: 8.797 kB / 0.5648 GB, free: 1.281 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.3405, allocations: 4 kB / 0.5648 GB, free: 1.277 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.3406, allocations: 34.56 kB / 0.5648 GB, free: 1.234 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3406, allocations: 4.062 kB / 0.5649 GB, free: 1.23 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001795/0.3408, allocations: 29.7 kB / 0.5649 GB, free: 1.195 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3408, allocations: 51.41 kB / 0.5649 GB, free: 1.133 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.793e-05/0.3409, allocations: 97.84 kB / 0.565 GB, free: 1.027 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3409, allocations: 25.95 kB / 0.565 GB, free: 0.9961 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.629e-05/0.341, allocations: 96.03 kB / 0.5651 GB, free: 0.8984 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.07e-05/0.341, allocations: 7.953 kB / 0.5651 GB, free: 0.8906 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.341, allocations: 9.719 kB / 0.5652 GB, free: 0.875 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001626/0.3412, allocations: 326.8 kB / 0.5655 GB, free: 0.5469 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.609e-05/0.3412, allocations: 3.938 kB / 0.5655 GB, free: 0.543 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.426e-05/0.3412, allocations: 18.58 kB / 0.5655 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 4.536e-05/0.3413, allocations: 26.58 kB / 0.5655 GB, free: 492 kB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3413, allocations: 0 / 0.5655 GB, free: 492 kB / 398.1 MB
Notification: Performance of matching and sorting (n=3) (initialization): time 7.701e-05/0.3414, allocations: 49.62 kB / 0.5656 GB, free: 436 kB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3414, allocations: 6.031 kB / 0.5656 GB, free: 432 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.3414, allocations: 0 / 0.5656 GB, free: 432 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.3414, allocations: 4 kB / 0.5656 GB, free: 428 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.684e-05/0.3414, allocations: 12.03 kB / 0.5656 GB, free: 416 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3415, allocations: 3.938 kB / 0.5656 GB, free: 412 kB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.951e-05/0.3415, allocations: 4 kB / 0.5656 GB, free: 408 kB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3415, allocations: 7.984 kB / 0.5656 GB, free: 400 kB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * 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 (3):
 * Single equations (assignments): 3
 * 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.0001142/0.3416, allocations: 109.8 kB / 0.5657 GB, free: 280 kB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.3416, allocations: 4 kB / 0.5657 GB, free: 276 kB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.3417, allocations: 48.86 kB / 0.5658 GB, free: 216 kB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3417, allocations: 3.984 kB / 0.5658 GB, free: 212 kB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3418, allocations: 0 / 0.5658 GB, free: 212 kB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3418, allocations: 7.875 kB / 0.5658 GB, free: 204 kB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.3419, allocations: 120.7 kB / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.3419, allocations: 0 / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3419, allocations: 0 / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.3419, allocations: 0 / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.3419, allocations: 96 / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3419, allocations: 0 / 0.5659 GB, free: 40 kB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3419, allocations: 3.984 kB / 0.5659 GB, free: 36 kB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.3421, allocations: 139.5 kB / 0.566 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.367e-06/0.3421, allocations: 4 kB / 0.566 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.3421, allocations: 0 / 0.566 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.653e-05/0.3421, allocations: 0 / 0.566 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.3422, allocations: 3.984 kB / 0.566 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.3422, allocations: 4 kB / 0.566 GB, free: 15.87 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.233e-05/0.3422, allocations: 79.31 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3422, allocations: 0 / 0.5661 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002906/0.3425, allocations: 43.94 kB / 0.5661 GB, free: 15.75 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 (1):
 * Single equations (assignments): 0
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 1
 * 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.0002678/0.3428, allocations: 135.1 kB / 0.5663 GB, free: 15.61 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001024/0.3429, allocations: 16 kB / 0.5663 GB, free: 15.59 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3429, allocations: 0 / 0.5663 GB, free: 15.59 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.731e-05/0.3429, allocations: 29.7 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.3431, allocations: 4.281 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.3434, allocations: 85.05 kB / 0.5664 GB, free: 15.44 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3438, allocations: 0.6767 MB / 0.5671 GB, free: 14.74 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 2.282e-05/0.3438, allocations: 4 kB / 0.5671 GB, free: 14.73 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.3438, allocations: 7.438 kB / 0.5671 GB, free: 14.73 MB / 414.1 MB
Notification: Performance of SimCode: time 2.81e-07/0.3438, allocations: 0 / 0.5671 GB, free: 14.73 MB / 414.1 MB
Notification: Performance of Templates: time 0.003763/0.3476, allocations: 1.089 MB / 0.5681 GB, free: 13.64 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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: 4.871688417159021]