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.001016/0.001016, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001539/0.002555, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009957/0.0009957, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001454/0.00245, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9173/0.9173, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.16/1.077, allocations: 52.49 MB / 238.5 MB, free: 7.641 MB / 234.7 MB " [Timeout remaining time 179] 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.1327/0.1327, allocations: 32.8 MB / 272 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02036/0.1531, allocations: 12.54 MB / 284.5 MB, free: 9.727 MB / 282.7 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.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 1.383e-06/1.383e-06, allocations: 0 / 285.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.64e-05, allocations: 2.312 kB / 285.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00235/0.002367, allocations: 1.535 MB / 287.4 MB, free: 6.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005363/0.002903, allocations: 419 kB / 287.8 MB, free: 6.473 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.002929, allocations: 0 / 287.8 MB, free: 6.473 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.002951, allocations: 3.938 kB / 287.8 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.63e-05/0.002978, allocations: 7.875 kB / 287.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.902e-05/0.003067, allocations: 15.98 kB / 287.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.314e-05/0.00314, allocations: 39.86 kB / 287.8 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003068/0.006207, allocations: 3.984 kB / 287.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.00633, allocations: 27.97 kB / 287.9 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.508e-05/0.006395, allocations: 23.92 kB / 287.9 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.006415, allocations: 0 / 287.9 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.006426, allocations: 4 kB / 287.9 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.006446, allocations: 4 kB / 287.9 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.44e-05/0.006471, allocations: 15.88 kB / 287.9 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.059e-05/0.006561, allocations: 15.92 kB / 287.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.261e-05/0.006574, allocations: 4 kB / 287.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006575, allocations: 0 / 287.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.006583, allocations: 4 kB / 287.9 MB, free: 6.305 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.0003988/0.006982, allocations: 244.6 kB / 288.2 MB, free: 6.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.007017, allocations: 8.031 kB / 288.2 MB, free: 6.035 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.516e-05/0.007052, allocations: 8.938 kB / 288.2 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.007157, allocations: 113.7 kB / 288.3 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.007168, allocations: 4.375 kB / 288.3 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.007182, allocations: 8.312 kB / 288.3 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.007318, allocations: 94.3 kB / 288.4 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.007324, allocations: 192 / 288.4 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.007332, allocations: 384 / 288.4 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.00734, allocations: 7.922 kB / 288.4 MB, free: 5.758 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.289e-05/0.007363, allocations: 4 kB / 288.4 MB, free: 5.754 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.007607, allocations: 148.3 kB / 288.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.047e-05/0.007658, allocations: 22.58 kB / 288.6 MB, free: 5.562 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.634e-05/0.007674, allocations: 8.922 kB / 288.6 MB, free: 5.551 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.007687, allocations: 3.938 kB / 288.6 MB, free: 5.547 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/0.007815, allocations: 30.56 kB / 288.6 MB, free: 5.508 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.007816, allocations: 0 / 288.6 MB, free: 5.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001195/0.007936, allocations: 41.67 kB / 288.7 MB, free: 5.461 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.007964, allocations: 55.41 kB / 288.7 MB, free: 5.395 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.008032, allocations: 114.7 kB / 288.8 MB, free: 5.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.008052, allocations: 25.7 kB / 288.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.284e-05/0.008095, allocations: 96.23 kB / 289 MB, free: 5.141 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.008112, allocations: 3.953 kB / 289 MB, free: 5.137 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.008145, allocations: 17.72 kB / 289 MB, free: 5.113 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.543e-05/0.00823, allocations: 314.8 kB / 289.3 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.008244, allocations: 7.984 kB / 289.3 MB, free: 4.789 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.967e-05/0.008273, allocations: 43.36 kB / 289.3 MB, free: 4.734 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.759e-05/0.008301, allocations: 8.859 kB / 289.3 MB, free: 4.723 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.008304, allocations: 4 kB / 289.4 MB, free: 4.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.044e-05/0.008365, allocations: 37.83 kB / 289.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.008378, allocations: 7.984 kB / 289.4 MB, free: 4.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.008383, allocations: 8.328 kB / 289.4 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.008395, allocations: 3.938 kB / 289.4 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.23e-05/0.008457, allocations: 4 kB / 289.4 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.008462, allocations: 3.938 kB / 289.4 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.205e-05/0.008494, allocations: 7.938 kB / 289.4 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.008507, allocations: 15.97 kB / 289.4 MB, free: 4.625 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.753e-05/0.008564, allocations: 105.8 kB / 289.5 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.008589, allocations: 8 kB / 289.6 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.008611, allocations: 7.578 kB / 289.6 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.008613, allocations: 7.875 kB / 289.6 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.008615, allocations: 4 kB / 289.6 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.008618, allocations: 0 / 289.6 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.008734, allocations: 73.88 kB / 289.6 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.008735, allocations: 0 / 289.6 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.524e-05/0.00876, allocations: 4 kB / 289.6 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-06/0.008768, allocations: 7.938 kB / 289.7 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.008769, allocations: 0 / 289.7 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-06/0.008774, allocations: 0 / 289.7 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.008776, allocations: 3.938 kB / 289.7 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.008777, allocations: 4 kB / 289.7 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.862e-05/0.008866, allocations: 139.5 kB / 289.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.008882, allocations: 0 / 289.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.041e-05/0.008942, allocations: 4 kB / 289.8 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.008986, allocations: 11.92 kB / 289.8 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.008991, allocations: 3.984 kB / 289.8 MB, free: 4.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.76e-05/0.009009, allocations: 12.86 kB / 289.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009009, allocations: 0 / 289.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.00921, allocations: 8 kB / 289.8 MB, free: 4.184 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 7.4e-05/0.009284, allocations: 72.42 kB / 289.9 MB, free: 4.105 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.278e-05/0.009357, allocations: 20.88 kB / 289.9 MB, free: 4.082 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.009362, allocations: 0 / 289.9 MB, free: 4.082 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.019e-05/0.009392, allocations: 16.84 kB / 289.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.009545, allocations: 4 kB / 290 MB, free: 4.059 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000849/0.01039, allocations: 140.3 kB / 290.1 MB, free: 3.895 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.444e-05/0.01044, allocations: 55.36 kB / 290.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.784e-05/0.01047, allocations: 3.984 kB / 290.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.834e-05/0.01053, allocations: 59.47 kB / 290.2 MB, free: 3.758 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01054, allocations: 0 / 290.2 MB, free: 3.758 MB / 282.7 MB Notification: Performance of Templates: time 0.002622/0.01316, allocations: 0.6925 MB / 290.9 MB, free: 3.082 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5780221512541175]