Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001045/0.001045, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.0009823/0.0009823, allocations: 166.6 kB / 24.91 MB, free: 8.77 MB / 18.57 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.041/1.041, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2828/0.2828, allocations: 34.26 MB / 296.1 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 325.3 MB, free: 7.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.921e-05, allocations: 5.469 kB / 325.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002967/0.002997, allocations: 1.547 MB / 326.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.00415, allocations: 482.7 kB / 327.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.955e-05/0.00421, allocations: 0 / 327.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.05e-05/0.00424, allocations: 3.938 kB / 327.3 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.938e-05/0.0043, allocations: 7.875 kB / 327.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.004519, allocations: 23.97 kB / 327.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.004633, allocations: 31.86 kB / 327.4 MB, free: 5.609 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.7e-05/0.00472, allocations: 19.91 kB / 327.4 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.004863, allocations: 27.92 kB / 327.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.915e-05/0.004922, allocations: 15.92 kB / 327.4 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.004941, allocations: 4 kB / 327.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.802e-05/0.004999, allocations: 7.984 kB / 327.4 MB, free: 5.535 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.51e-05/0.005014, allocations: 8 kB / 327.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.005034, allocations: 11.98 kB / 327.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.005142, allocations: 35.83 kB / 327.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.005146, allocations: 0 / 327.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.005147, allocations: 0 / 327.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.005151, allocations: 0 / 327.5 MB, free: 5.48 MB / 298.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.0003416/0.005493, allocations: 250.2 kB / 327.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.005527, allocations: 12.03 kB / 327.7 MB, free: 5.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.005664, allocations: 8.938 kB / 327.8 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.005812, allocations: 121.7 kB / 327.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.005821, allocations: 384 / 327.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.607e-06/0.00583, allocations: 384 / 327.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.005955, allocations: 94.36 kB / 328 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.005963, allocations: 192 / 328 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.00597, allocations: 384 / 328 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.005979, allocations: 7.938 kB / 328 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.289e-05/0.006002, allocations: 4 kB / 328 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002254/0.006228, allocations: 156.1 kB / 328.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.664e-05/0.006284, allocations: 30.59 kB / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.447e-05/0.006299, allocations: 8.859 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.00631, allocations: 0 / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.006337, allocations: 34.62 kB / 328.2 MB, free: 4.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.006338, allocations: 0 / 328.2 MB, free: 4.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001317/0.00647, allocations: 45.56 kB / 328.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.006515, allocations: 77.11 kB / 328.3 MB, free: 4.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.006587, allocations: 118.8 kB / 328.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.006607, allocations: 25.7 kB / 328.5 MB, free: 4.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.006643, allocations: 92.08 kB / 328.6 MB, free: 4.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.006662, allocations: 3.953 kB / 328.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.006701, allocations: 21.69 kB / 328.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.272e-05/0.006784, allocations: 310.8 kB / 328.9 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.485e-05/0.006798, allocations: 8 kB / 328.9 MB, free: 3.914 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.019e-05/0.006829, allocations: 39.42 kB / 328.9 MB, free: 3.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.982e-05/0.006868, allocations: 16.83 kB / 328.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.00687, allocations: 0 / 328.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.104e-05/0.006941, allocations: 49.7 kB / 329 MB, free: 3.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.006955, allocations: 8.031 kB / 329 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.00696, allocations: 0 / 329 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.006975, allocations: 3.938 kB / 329 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.73e-05/0.007032, allocations: 4 kB / 329 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.007037, allocations: 3.984 kB / 329 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.25e-05/0.007069, allocations: 8 kB / 329 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.007074, allocations: 0 / 329 MB, free: 3.762 MB / 298.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 7.371e-05/0.007148, allocations: 109.8 kB / 329.1 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.007171, allocations: 4 kB / 329.1 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.438e-05/0.007196, allocations: 15.61 kB / 329.1 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.0072, allocations: 3.938 kB / 329.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.007202, allocations: 0 / 329.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.007205, allocations: 0 / 329.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.007346, allocations: 70.52 kB / 329.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.007349, allocations: 0 / 329.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.00739, allocations: 0 / 329.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.007393, allocations: 7.938 kB / 329.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.007397, allocations: 0 / 329.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.007399, allocations: 0 / 329.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.007399, allocations: 0 / 329.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.622e-05/0.007496, allocations: 139.5 kB / 329.4 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.775e-06/0.007503, allocations: 4 kB / 329.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.007517, allocations: 0 / 329.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.933e-05/0.007557, allocations: 7.984 kB / 329.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.007594, allocations: 15.92 kB / 329.4 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.007597, allocations: 0 / 329.4 MB, free: 3.348 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.681e-05/0.007614, allocations: 20.83 kB / 329.4 MB, free: 3.324 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007614, allocations: 3.938 kB / 329.4 MB, free: 3.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001133/0.007727, allocations: 4 kB / 329.4 MB, free: 3.316 MB / 298.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 8.336e-05/0.007811, allocations: 80.39 kB / 329.5 MB, free: 3.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.64e-05/0.007877, allocations: 12.86 kB / 329.5 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.007881, allocations: 4 kB / 329.5 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.587e-05/0.007897, allocations: 8.859 kB / 329.5 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001104/0.008007, allocations: 7.984 kB / 329.5 MB, free: 3.191 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003595/0.008366, allocations: 140.9 kB / 329.7 MB, free: 3.027 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.031e-05/0.008397, allocations: 59.34 kB / 329.7 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.217e-05/0.008419, allocations: 4.062 kB / 329.7 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.008466, allocations: 55.38 kB / 329.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.008467, allocations: 0 / 329.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of Templates: time 0.002125/0.01059, allocations: 0.6635 MB / 330.4 MB, free: 2.234 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.846166417002678]