Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.001298/0.001298, allocations: 110.5 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.001639/0.001639, allocations: 213.2 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.473/1.473, allocations: 230.3 MB / 258 MB, free: 8.184 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.2621/0.2621, allocations: 46.94 MB / 361.4 MB, free: 4.367 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.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis")
translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") [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.002402/0.002402, allocations: 79.86 kB / 0.4971 GB, free: 7.496 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3662, allocations: 66.04 MB / 0.5616 GB, free: 4.5 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002937/0.3691, allocations: 1.48 MB / 0.5631 GB, free: 3.012 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001032/0.3702, allocations: 490.7 kB / 0.5636 GB, free: 2.527 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 4.921e-05/0.3702, allocations: 0 / 0.5636 GB, free: 2.527 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.3703, allocations: 3.938 kB / 0.5636 GB, free: 2.523 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.346e-05/0.3703, allocations: 7.938 kB / 0.5636 GB, free: 2.516 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.3705, allocations: 31.89 kB / 0.5636 GB, free: 2.484 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001154/0.3707, allocations: 35.86 kB / 0.5636 GB, free: 2.449 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.3708, allocations: 12 kB / 0.5636 GB, free: 2.438 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.3709, allocations: 23.91 kB / 0.5637 GB, free: 2.414 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.466e-05/0.371, allocations: 15.92 kB / 0.5637 GB, free: 2.398 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.371, allocations: 4 kB / 0.5637 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.371, allocations: 4 kB / 0.5637 GB, free: 2.391 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.371, allocations: 15.92 kB / 0.5637 GB, free: 2.375 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.3711, allocations: 11.94 kB / 0.5637 GB, free: 2.363 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.3712, allocations: 38.69 kB / 0.5638 GB, free: 2.328 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3712, allocations: 0 / 0.5638 GB, free: 2.328 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.012e-06/0.3712, allocations: 0 / 0.5638 GB, free: 2.328 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.961e-06/0.3712, allocations: 4 kB / 0.5638 GB, free: 2.324 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.0004922/0.3717, allocations: 281.9 kB / 0.564 GB, free: 2.023 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3717, allocations: 11.97 kB / 0.564 GB, free: 2.012 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.3719, allocations: 12.92 kB / 0.564 GB, free: 2 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.3721, allocations: 122.4 kB / 0.5642 GB, free: 1.855 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.3721, allocations: 384 / 0.5642 GB, free: 1.855 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.3721, allocations: 384 / 0.5642 GB, free: 1.855 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.3723, allocations: 67.72 kB / 0.5642 GB, free: 1.777 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3723, allocations: 0 / 0.5642 GB, free: 1.777 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.3723, allocations: 0 / 0.5642 GB, free: 1.777 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.3723, allocations: 0 / 0.5642 GB, free: 1.777 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.913e-05/0.3724, allocations: 23.97 kB / 0.5643 GB, free: 1.754 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003734/0.3728, allocations: 239.9 kB / 0.5645 GB, free: 1.477 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.3729, allocations: 34.56 kB / 0.5645 GB, free: 1.434 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.399e-05/0.3729, allocations: 8.922 kB / 0.5645 GB, free: 1.422 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.3729, allocations: 0 / 0.5645 GB, free: 1.422 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.373, allocations: 38.5 kB / 0.5646 GB, free: 1.375 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.373, allocations: 0 / 0.5646 GB, free: 1.375 MB / 398.1 MB
Notification: Performance of matching and sorting (n=2): time 0.0002469/0.3732, allocations: 69.7 kB / 0.5646 GB, free: 1.301 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.3733, allocations: 77.11 kB / 0.5647 GB, free: 1.207 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3734, allocations: 117.8 kB / 0.5648 GB, free: 1.082 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.855e-05/0.3734, allocations: 25.7 kB / 0.5648 GB, free: 1.051 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.3735, allocations: 92.12 kB / 0.5649 GB, free: 0.957 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.3735, allocations: 7.891 kB / 0.5649 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.3735, allocations: 13.72 kB / 0.5649 GB, free: 0.9297 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002125/0.3738, allocations: 318.8 kB / 0.5653 GB, free: 0.6094 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.431e-05/0.3738, allocations: 16.03 kB / 0.5653 GB, free: 0.5938 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.624e-05/0.3739, allocations: 25.7 kB / 0.5653 GB, free: 0.5625 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.131e-05/0.374, allocations: 28.88 kB / 0.5653 GB, free: 0.5312 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.374, allocations: 0 / 0.5653 GB, free: 0.5312 MB / 398.1 MB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.000183/0.3741, allocations: 65.59 kB / 0.5654 GB, free: 472 kB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3742, allocations: 6.188 kB / 0.5654 GB, free: 468 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3742, allocations: 0 / 0.5654 GB, free: 468 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3742, allocations: 4.031 kB / 0.5654 GB, free: 464 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.393e-05/0.3742, allocations: 4 kB / 0.5654 GB, free: 460 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.3742, allocations: 0 / 0.5654 GB, free: 460 kB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.927e-05/0.3743, allocations: 15.94 kB / 0.5654 GB, free: 444 kB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.3743, allocations: 7.938 kB / 0.5654 GB, free: 436 kB / 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: 2 (hysteresis.y,$PRE.hysteresis.y)
 * 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 8.979e-05/0.3744, allocations: 118.7 kB / 0.5655 GB, free: 308 kB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.3744, allocations: 0 / 0.5655 GB, free: 308 kB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.3744, allocations: 11.61 kB / 0.5655 GB, free: 292 kB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.3744, allocations: 8 kB / 0.5655 GB, free: 284 kB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3745, allocations: 0 / 0.5655 GB, free: 284 kB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3745, allocations: 0 / 0.5655 GB, free: 284 kB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.3747, allocations: 132.7 kB / 0.5657 GB, free: 108 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3747, allocations: 4 kB / 0.5657 GB, free: 104 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.3747, allocations: 0 / 0.5657 GB, free: 104 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3747, allocations: 0 / 0.5657 GB, free: 104 kB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.3747, allocations: 8.312 kB / 0.5657 GB, free: 96 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.3747, allocations: 0 / 0.5657 GB, free: 96 kB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3747, allocations: 0 / 0.5657 GB, free: 96 kB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.3749, allocations: 159.4 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.3749, allocations: 7.938 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.375, allocations: 0 / 0.5658 GB, free: 15.91 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.375, allocations: 7.984 kB / 0.5659 GB, free: 15.91 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.3751, allocations: 7.984 kB / 0.5659 GB, free: 15.9 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.3751, allocations: 0 / 0.5659 GB, free: 15.9 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 7.531e-05/0.3752, allocations: 91.27 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3752, allocations: 4.031 kB / 0.566 GB, free: 15.8 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002283/0.3754, allocations: 8 kB / 0.566 GB, free: 15.8 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: 1 (hysteresis.y)
 * Number of discrete states: 1 (hysteresis.y)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (2):
 * Single equations (assignments): 2
 * 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.0001092/0.3755, allocations: 91.25 kB / 0.566 GB, free: 15.7 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000142/0.3756, allocations: 27.92 kB / 0.5661 GB, free: 15.67 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3756, allocations: 0 / 0.5661 GB, free: 15.67 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.111e-05/0.3757, allocations: 15.98 kB / 0.5661 GB, free: 15.66 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.3759, allocations: 12 kB / 0.5661 GB, free: 15.64 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002916/0.3762, allocations: 123 kB / 0.5662 GB, free: 15.5 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.3765, allocations: 0.6807 MB / 0.5669 GB, free: 14.79 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 2.885e-05/0.3765, allocations: 0 / 0.5669 GB, free: 14.79 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.581e-05/0.3766, allocations: 19.36 kB / 0.5669 GB, free: 14.77 MB / 414.1 MB
Notification: Performance of SimCode: time 2.9e-07/0.3766, allocations: 0 / 0.5669 GB, free: 14.77 MB / 414.1 MB
Notification: Performance of Templates: time 0.002969/0.3795, allocations: 0.5994 MB / 0.5675 GB, free: 14.18 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.126891745254397]