Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001025/0.001025, allocations: 91.33 kB / 20.43 MB, free: 4.137 MB / 18.57 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.001683/0.001683, allocations: 169 kB / 23.8 MB, free: 0.7695 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9557/0.9557, allocations: 158.6 MB / 185.7 MB, free: 2.879 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1533/0.1533, allocations: 32.37 MB / 270.4 MB, free: 14.7 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.676e-05/2.847e-05, allocations: 4.281 kB / 347.7 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001804/0.001833, allocations: 1.479 MB / 349.1 MB, free: 7.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005828/0.002415, allocations: 451.9 kB / 349.6 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.41e-05/0.00245, allocations: 0 / 349.6 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.002477, allocations: 0 / 349.6 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.435e-05/0.002522, allocations: 3.938 kB / 349.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.002706, allocations: 23.84 kB / 349.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.224e-05/0.002768, allocations: 35.91 kB / 349.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.643e-05/0.002854, allocations: 4 kB / 349.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.561e-05/0.00295, allocations: 27.86 kB / 349.7 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.372e-05/0.003004, allocations: 19.97 kB / 349.7 MB, free: 7.402 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.003021, allocations: 0 / 349.7 MB, free: 7.402 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-06/0.00303, allocations: 4 kB / 349.7 MB, free: 7.398 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.66e-05/0.003046, allocations: 7.938 kB / 349.7 MB, free: 7.391 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.003067, allocations: 11.98 kB / 349.7 MB, free: 7.379 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.077e-05/0.003148, allocations: 23.97 kB / 349.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.00315, allocations: 0 / 349.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.003152, allocations: 0 / 349.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.003156, allocations: 0 / 349.7 MB, free: 7.355 MB / 282.7 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.0002997/0.003456, allocations: 368.6 kB / 350.1 MB, free: 6.961 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.00349, allocations: 12.03 kB / 350.1 MB, free: 6.949 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.003525, allocations: 12.83 kB / 350.1 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.449e-05/0.003589, allocations: 124.5 kB / 350.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.003599, allocations: 384 / 350.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.003611, allocations: 8.375 kB / 350.3 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.003739, allocations: 95.97 kB / 350.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.003747, allocations: 192 / 350.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.003756, allocations: 384 / 350.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.003763, allocations: 3.938 kB / 350.4 MB, free: 6.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.843e-05/0.003791, allocations: 7.984 kB / 350.4 MB, free: 6.652 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.00406, allocations: 259.8 kB / 350.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.974e-05/0.00411, allocations: 35 kB / 350.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.984e-05/0.00413, allocations: 11.67 kB / 350.7 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.004145, allocations: 0 / 350.7 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.004164, allocations: 41.39 kB / 350.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.004165, allocations: 0 / 350.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001412/0.004306, allocations: 37.7 kB / 350.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.171e-05/0.004328, allocations: 85.09 kB / 350.8 MB, free: 6.105 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.256e-05/0.00438, allocations: 165.9 kB / 351 MB, free: 5.926 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.004391, allocations: 29.83 kB / 351 MB, free: 5.891 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.273e-05/0.004424, allocations: 138.8 kB / 351.1 MB, free: 5.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.004442, allocations: 7.953 kB / 351.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.004467, allocations: 19.38 kB / 351.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.855e-05/0.004516, allocations: 0.4884 MB / 351.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.724e-05/0.004533, allocations: 4 kB / 351.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.648e-05/0.00456, allocations: 45.08 kB / 351.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.137e-05/0.004591, allocations: 23.75 kB / 351.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.004593, allocations: 4 kB / 351.7 MB, free: 5.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.488e-05/0.004648, allocations: 37.66 kB / 351.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.004663, allocations: 15.92 kB / 351.8 MB, free: 5.062 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.004668, allocations: 4.031 kB / 351.8 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.004683, allocations: 3.938 kB / 351.8 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.097e-05/0.004764, allocations: 4 kB / 351.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.004769, allocations: 0 / 351.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.412e-05/0.004794, allocations: 4 kB / 351.8 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.0048, allocations: 3.984 kB / 351.8 MB, free: 5.043 MB / 282.7 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 5.641e-05/0.004856, allocations: 160.6 kB / 352 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.004873, allocations: 7.875 kB / 352 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.004895, allocations: 11.62 kB / 352 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.004898, allocations: 0 / 352 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.004902, allocations: 4 kB / 352 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.004905, allocations: 0 / 352 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.494e-05/0.00498, allocations: 116.6 kB / 352.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.004981, allocations: 0 / 352.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.917e-05/0.005, allocations: 8 kB / 352.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.005002, allocations: 0 / 352.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.005011, allocations: 7.922 kB / 352.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.005012, allocations: 0 / 352.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.005013, allocations: 4 kB / 352.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.659e-05/0.00509, allocations: 187.8 kB / 352.3 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.005098, allocations: 8.031 kB / 352.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.005118, allocations: 7.938 kB / 352.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.652e-05/0.005155, allocations: 4 kB / 352.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.005196, allocations: 7.984 kB / 352.3 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.0052, allocations: 0 / 352.3 MB, free: 4.457 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.18e-05/0.005221, allocations: 131.5 kB / 352.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005221, allocations: 0 / 352.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001313/0.005353, allocations: 11.94 kB / 352.5 MB, free: 4.316 MB / 282.7 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 6.503e-05/0.005418, allocations: 91.25 kB / 352.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.066e-05/0.005508, allocations: 23.67 kB / 352.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.00551, allocations: 0 / 352.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.014e-05/0.00553, allocations: 19.62 kB / 352.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.00568, allocations: 4 kB / 352.6 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.006121, allocations: 141.3 kB / 352.7 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.775e-05/0.006148, allocations: 51.59 kB / 352.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.23e-05/0.006171, allocations: 4.062 kB / 352.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.006205, allocations: 16.48 kB / 352.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.006206, allocations: 0 / 352.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of Templates: time 0.002336/0.008542, allocations: 0.6431 MB / 353.5 MB, free: 3.273 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0424538729712367]