Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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.001752/0.001752, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001493/0.001493, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.195/3.195, allocations: 0.49 GB / 0.7958 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") [Timeout 300] "Notification: Buildings 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.002054/0.002054, allocations: 63.94 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3585, allocations: 176.1 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002075/0.3606, allocations: 0.8635 MB / 1.328 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3618, allocations: 0.9366 MB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/0.3619, allocations: 0 / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.29e-05/0.3619, allocations: 7.875 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.868e-05/0.362, allocations: 19.8 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.3622, allocations: 39.88 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001525/0.3624, allocations: 115.7 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3625, allocations: 25.3 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.3627, allocations: 59.77 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.3628, allocations: 55.77 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.3628, allocations: 8 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.678e-05/0.3628, allocations: 12 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.992e-05/0.3629, allocations: 35.83 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.3629, allocations: 47.73 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.3631, allocations: 123.4 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3631, allocations: 0 / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3631, allocations: 0 / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.3631, allocations: 0 / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006642/0.3638, allocations: 377.7 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.3638, allocations: 8.031 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.3641, allocations: 28.88 kB / 1.33 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.3646, allocations: 203.4 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.3646, allocations: 4.375 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.3646, allocations: 8.375 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002768/0.3649, allocations: 120.5 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3649, allocations: 15.81 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.3649, allocations: 0 / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3649, allocations: 0 / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.3652, allocations: 71.94 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000645/0.3658, allocations: 476.1 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.3661, allocations: 111.8 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.3662, allocations: 54.61 kB / 1.331 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.3663, allocations: 4 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.3663, allocations: 46.47 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.3663, allocations: 0 / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0005689/0.3669, allocations: 161.4 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.749e-05/0.367, allocations: 102.8 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.3671, allocations: 148.3 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.3671, allocations: 33.7 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.692e-05/0.3672, allocations: 112.5 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.3672, allocations: 27.78 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.3673, allocations: 21.72 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3674, allocations: 330.8 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.3676, allocations: 43.95 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.3678, allocations: 85 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.368, allocations: 90.5 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.368, allocations: 4 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003573/0.3684, allocations: 137.6 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3684, allocations: 4 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3684, allocations: 8 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3684, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.3686, allocations: 23.91 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3686, allocations: 4 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.3687, allocations: 15.94 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.3687, allocations: 11.94 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001182/0.3688, allocations: 122.3 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.406e-05/0.3689, allocations: 15.89 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000254/0.3692, allocations: 85.92 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3692, allocations: 4 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3692, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3692, allocations: 3.984 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.3695, allocations: 184.7 kB / 1.333 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3695, allocations: 0 / 1.333 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.3696, allocations: 19.98 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.3696, allocations: 0 / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.3696, allocations: 3.984 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3696, allocations: 4 kB / 1.333 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3696, allocations: 0 / 1.333 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004393/0.3701, allocations: 370.2 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.891e-05/0.3701, allocations: 11.89 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.3701, allocations: 11.98 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.3703, allocations: 15.97 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.3704, allocations: 27.95 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.3704, allocations: 0 / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.195e-05/0.3705, allocations: 117 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3705, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003263/0.3708, allocations: 23.95 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001302/0.3709, allocations: 103.2 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003624/0.3713, allocations: 95.86 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3713, allocations: 0 / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3715, allocations: 47.95 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/0.3719, allocations: 12 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004696/0.3724, allocations: 233.3 kB / 1.334 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.3727, allocations: 0.7002 MB / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.3728, allocations: 15.44 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3728, allocations: 0 / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of Templates: time 0.003373/0.3762, allocations: 1.521 MB / 1.336 GB, free: 8.137 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.047626811021473]