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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 208.1 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2308/0.2308, allocations: 44.94 MB / 358.8 MB, free: 6.035 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 63.91 kB / 0.4935 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3818, allocations: 65.47 MB / 0.5574 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002838/0.3847, allocations: 1.461 MB / 0.5589 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009579/0.3856, allocations: 455 kB / 0.5593 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-05/0.3857, allocations: 0 / 0.5593 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.475e-05/0.3857, allocations: 0 / 0.5593 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.345e-05/0.3857, allocations: 7.875 kB / 0.5593 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.386, allocations: 31.95 kB / 0.5593 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.3861, allocations: 39.8 kB / 0.5594 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.3862, allocations: 4 kB / 0.5594 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.3864, allocations: 27.92 kB / 0.5594 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.3864, allocations: 19.91 kB / 0.5594 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.3865, allocations: 0 / 0.5594 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.309e-05/0.3865, allocations: 12 kB / 0.5594 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.3865, allocations: 3.938 kB / 0.5594 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.3865, allocations: 15.92 kB / 0.5595 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.3867, allocations: 39.55 kB / 0.5595 GB, free: 5.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3867, allocations: 0 / 0.5595 GB, free: 5.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3867, allocations: 0 / 0.5595 GB, free: 5.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.3867, allocations: 0 / 0.5595 GB, free: 5.34 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.0004842/0.3872, allocations: 280.9 kB / 0.5598 GB, free: 5.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.3872, allocations: 12.03 kB / 0.5598 GB, free: 5.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.3874, allocations: 8.938 kB / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.3876, allocations: 118.5 kB / 0.5599 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.3876, allocations: 384 / 0.5599 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.3876, allocations: 8.312 kB / 0.5599 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3878, allocations: 89.41 kB / 0.56 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.3878, allocations: 7.938 kB / 0.56 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3878, allocations: 0 / 0.56 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3878, allocations: 7.938 kB / 0.56 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.113e-05/0.3879, allocations: 19.98 kB / 0.56 GB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003567/0.3883, allocations: 204.6 kB / 0.5602 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.3884, allocations: 34.52 kB / 0.5603 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.338e-05/0.3884, allocations: 16.91 kB / 0.5603 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3884, allocations: 0 / 0.5603 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3885, allocations: 38.5 kB / 0.5603 GB, free: 4.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3885, allocations: 0 / 0.5603 GB, free: 4.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002438/0.3887, allocations: 61.67 kB / 0.5604 GB, free: 4.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.3888, allocations: 81.11 kB / 0.5604 GB, free: 4.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.3889, allocations: 109.8 kB / 0.5605 GB, free: 4.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3889, allocations: 25.7 kB / 0.5606 GB, free: 4.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.29e-05/0.3889, allocations: 88.14 kB / 0.5607 GB, free: 3.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.389, allocations: 11.88 kB / 0.5607 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.389, allocations: 17.72 kB / 0.5607 GB, free: 3.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3891, allocations: 310.8 kB / 0.561 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.59e-05/0.3892, allocations: 19.92 kB / 0.561 GB, free: 3.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.61e-05/0.3893, allocations: 55.53 kB / 0.5611 GB, free: 3.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.087e-05/0.3894, allocations: 24.84 kB / 0.5611 GB, free: 3.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3894, allocations: 0 / 0.5611 GB, free: 3.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001348/0.3895, allocations: 65.7 kB / 0.5611 GB, free: 3.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.3895, allocations: 6.969 kB / 0.5611 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3895, allocations: 0 / 0.5611 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3895, allocations: 4 kB / 0.5611 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.619e-05/0.3896, allocations: 3.984 kB / 0.5612 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3896, allocations: 7.938 kB / 0.5612 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.3897, allocations: 15.97 kB / 0.5612 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.3897, allocations: 0 / 0.5612 GB, free: 3.422 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.488e-05/0.3898, allocations: 114.2 kB / 0.5613 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.3898, allocations: 4 kB / 0.5613 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.3898, allocations: 7.625 kB / 0.5613 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3898, allocations: 0 / 0.5613 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3898, allocations: 3.938 kB / 0.5613 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3898, allocations: 0 / 0.5613 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.39, allocations: 113.3 kB / 0.5614 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.39, allocations: 11.88 kB / 0.5614 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.39, allocations: 7.984 kB / 0.5614 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.39, allocations: 0 / 0.5614 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.39, allocations: 0 / 0.5614 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.39, allocations: 0 / 0.5614 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.39, allocations: 0 / 0.5614 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.3902, allocations: 159.4 kB / 0.5616 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-06/0.3902, allocations: 3.938 kB / 0.5616 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.3902, allocations: 0 / 0.5616 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.812e-05/0.3903, allocations: 16.02 kB / 0.5616 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.3904, allocations: 3.984 kB / 0.5616 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3904, allocations: 4 kB / 0.5616 GB, free: 2.922 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.95e-05/0.3904, allocations: 83.28 kB / 0.5617 GB, free: 2.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3904, allocations: 4 kB / 0.5617 GB, free: 2.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.3906, allocations: 8 kB / 0.5617 GB, free: 2.828 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.0001183/0.3907, allocations: 95.23 kB / 0.5618 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.3909, allocations: 23.98 kB / 0.5618 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3909, allocations: 0 / 0.5618 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.177e-05/0.391, allocations: 23.92 kB / 0.5618 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.3912, allocations: 3.938 kB / 0.5618 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003287/0.3915, allocations: 130.9 kB / 0.562 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.286e-05/0.3916, allocations: 63.34 kB / 0.562 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.989e-05/0.3916, allocations: 0 / 0.562 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.3916, allocations: 11.44 kB / 0.562 GB, free: 2.43 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3916, allocations: 0 / 0.562 GB, free: 2.43 MB / 398.1 MB Notification: Performance of Templates: time 0.003273/0.3949, allocations: 0.6389 MB / 0.5627 GB, free: 1.801 MB / 398.1 MB " [Timeout remaining time 660] 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.23697604984045]