Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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.001714/0.001714, allocations: 102 kB / 21.22 MB, free: 0.6562 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.001889/0.001889, allocations: 185.2 kB / 24.51 MB, free: 4.016 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.55/1.55, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.2341/0.2341, allocations: 44.9 MB / 353.5 MB, free: 11.9 MB / 286.1 MB
"
[Timeout remaining time 179]
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.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis")
translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 63.89 kB / 497.7 MB, free: 1.02 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4784/0.4804, allocations: 64.29 MB / 0.5488 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003137/0.4836, allocations: 1.46 MB / 0.5502 GB, free: 11.99 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008517/0.4844, allocations: 436.9 kB / 0.5506 GB, free: 11.65 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.4845, allocations: 1.469 kB / 0.5506 GB, free: 11.65 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.712e-05/0.4845, allocations: 0 / 0.5506 GB, free: 11.65 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.307e-05/0.4846, allocations: 5.094 kB / 0.5507 GB, free: 11.64 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.4848, allocations: 17.97 kB / 0.5507 GB, free: 11.63 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 9.93e-05/0.4849, allocations: 30.7 kB / 0.5507 GB, free: 11.61 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.485, allocations: 10.42 kB / 0.5507 GB, free: 11.61 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.4851, allocations: 23.06 kB / 0.5507 GB, free: 11.59 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.028e-05/0.4852, allocations: 20.84 kB / 0.5507 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.4852, allocations: 3.156 kB / 0.5508 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.302e-05/0.4852, allocations: 2.219 kB / 0.5508 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.424e-05/0.4852, allocations: 10.11 kB / 0.5508 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.4853, allocations: 11.31 kB / 0.5508 GB, free: 11.56 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.4854, allocations: 34.02 kB / 0.5508 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4854, allocations: 5.312 kB / 0.5508 GB, free: 11.53 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.114e-06/0.4854, allocations: 0 / 0.5508 GB, free: 11.53 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 7.154e-06/0.4854, allocations: 0 / 0.5508 GB, free: 11.53 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.0005438/0.4859, allocations: 271 kB / 0.5511 GB, free: 11.26 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.486, allocations: 11.05 kB / 0.5511 GB, free: 11.26 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.486, allocations: 11.28 kB / 0.5511 GB, free: 11.25 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.4862, allocations: 116.8 kB / 0.5512 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.4862, allocations: 1.625 kB / 0.5512 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.4862, allocations: 1.562 kB / 0.5512 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.4864, allocations: 70.2 kB / 0.5513 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4864, allocations: 4 kB / 0.5513 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.4864, allocations: 5.094 kB / 0.5513 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.4864, allocations: 0 / 0.5513 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.4865, allocations: 19.42 kB / 0.5513 GB, free: 11.03 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.487, allocations: 230.4 kB / 0.5515 GB, free: 10.77 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.4871, allocations: 31.25 kB / 0.5515 GB, free: 10.74 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 5.26e-05/0.4871, allocations: 19.31 kB / 0.5516 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.4871, allocations: 3.938 kB / 0.5516 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.4872, allocations: 31.66 kB / 0.5516 GB, free: 10.68 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.4872, allocations: 1.125 kB / 0.5516 GB, free: 10.68 MB / 398.1 MB
Notification: Performance of matching and sorting (n=2): time 0.000277/0.4874, allocations: 61.58 kB / 0.5517 GB, free: 10.64 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.4875, allocations: 78.67 kB / 0.5517 GB, free: 10.54 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.4876, allocations: 111.6 kB / 0.5518 GB, free: 10.43 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.4876, allocations: 27.11 kB / 0.5519 GB, free: 10.4 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.618e-05/0.4877, allocations: 85.48 kB / 0.552 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.4877, allocations: 9.141 kB / 0.552 GB, free: 10.31 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.4878, allocations: 12.75 kB / 0.552 GB, free: 10.29 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.000153/0.4879, allocations: 320 kB / 0.5523 GB, free: 9.973 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.954e-05/0.488, allocations: 11 kB / 0.5523 GB, free: 9.969 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 6.036e-05/0.488, allocations: 30.2 kB / 0.5523 GB, free: 9.941 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.792e-05/0.4881, allocations: 33.02 kB / 0.5523 GB, free: 9.918 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4881, allocations: 0 / 0.5523 GB, free: 9.918 MB / 398.1 MB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001407/0.4883, allocations: 64.44 kB / 0.5524 GB, free: 9.867 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.4883, allocations: 5.438 kB / 0.5524 GB, free: 9.867 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4883, allocations: 0 / 0.5524 GB, free: 9.867 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4883, allocations: 1.281 kB / 0.5524 GB, free: 9.867 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.576e-05/0.4884, allocations: 6.562 kB / 0.5524 GB, free: 9.863 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.4884, allocations: 9.469 kB / 0.5524 GB, free: 9.855 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.338e-05/0.4884, allocations: 9.516 kB / 0.5524 GB, free: 9.852 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.4885, allocations: 0 / 0.5524 GB, free: 9.852 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: 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 9.858e-05/0.4885, allocations: 120.6 kB / 0.5526 GB, free: 9.727 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.4886, allocations: 2.844 kB / 0.5526 GB, free: 9.727 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.4886, allocations: 13.09 kB / 0.5526 GB, free: 9.711 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4886, allocations: 0 / 0.5526 GB, free: 9.711 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4886, allocations: 0 / 0.5526 GB, free: 9.711 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.4886, allocations: 4 kB / 0.5526 GB, free: 9.707 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.4888, allocations: 139 kB / 0.5527 GB, free: 9.535 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4888, allocations: 1.562 kB / 0.5527 GB, free: 9.535 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.4888, allocations: 2.906 kB / 0.5527 GB, free: 9.535 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4888, allocations: 0 / 0.5527 GB, free: 9.535 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4889, allocations: 5.438 kB / 0.5527 GB, free: 9.531 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.4889, allocations: 0 / 0.5527 GB, free: 9.531 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4889, allocations: 0 / 0.5527 GB, free: 9.531 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.489, allocations: 165 kB / 0.5529 GB, free: 9.371 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.634e-06/0.489, allocations: 1.344 kB / 0.5529 GB, free: 9.371 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.4891, allocations: 5.406 kB / 0.5529 GB, free: 9.367 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.4892, allocations: 9.266 kB / 0.5529 GB, free: 9.363 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.4892, allocations: 6.984 kB / 0.5529 GB, free: 9.359 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.4892, allocations: 0 / 0.5529 GB, free: 9.359 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 7.08e-05/0.4893, allocations: 89.92 kB / 0.553 GB, free: 9.277 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4893, allocations: 0 / 0.553 GB, free: 9.277 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002185/0.4895, allocations: 5.781 kB / 0.553 GB, free: 9.277 MB / 398.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.0001077/0.4896, allocations: 95.06 kB / 0.5531 GB, free: 9.188 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001731/0.4898, allocations: 28.2 kB / 0.5531 GB, free: 9.176 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4898, allocations: 0 / 0.5531 GB, free: 9.176 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.46e-05/0.4898, allocations: 16.33 kB / 0.5531 GB, free: 9.168 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.4901, allocations: 11.53 kB / 0.5531 GB, free: 9.16 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003271/0.4904, allocations: 125.2 kB / 0.5532 GB, free: 9.039 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.4907, allocations: 0.6825 MB / 0.5539 GB, free: 8.336 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 3.399e-05/0.4907, allocations: 1.312 kB / 0.5539 GB, free: 8.336 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.4908, allocations: 12.53 kB / 0.5539 GB, free: 8.328 MB / 398.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.4908, allocations: 0 / 0.5539 GB, free: 8.328 MB / 398.1 MB
Notification: Performance of Templates: time 0.003301/0.4941, allocations: 0.6121 MB / 0.5545 GB, free: 8.012 MB / 398.1 MB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.592300189658999]