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.001645/0.001645, allocations: 117.8 kB / 17.13 MB, free: 6.004 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.002056/0.002056, allocations: 217.8 kB / 20.1 MB, free: 3.051 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.485/1.485, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.007/3.007, allocations: 0.49 GB / 0.7923 GB, free: 1.266 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.002044/0.002044, allocations: 71.91 kB / 1.15 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9434/0.9454, allocations: 176.1 MB / 1.322 GB, free: 25.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001982/0.9474, allocations: 0.8617 MB / 1.323 GB, free: 24.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.9484, allocations: 0.9218 MB / 1.324 GB, free: 23.78 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.254e-05/0.9485, allocations: 2.812 kB / 1.324 GB, free: 23.78 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.005e-05/0.9486, allocations: 7.875 kB / 1.324 GB, free: 23.77 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.9487, allocations: 22.98 kB / 1.324 GB, free: 23.75 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.9489, allocations: 42.52 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.949, allocations: 124.7 kB / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.9491, allocations: 15.58 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.9493, allocations: 62.45 kB / 1.324 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.234e-05/0.9494, allocations: 53.69 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.9494, allocations: 9.281 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.843e-05/0.9494, allocations: 13.97 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.045e-05/0.9495, allocations: 29.23 kB / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.077e-05/0.9495, allocations: 46.55 kB / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.9497, allocations: 123.5 kB / 1.324 GB, free: 23.51 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.9497, allocations: 3.031 kB / 1.324 GB, free: 23.51 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9497, allocations: 4 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.9497, allocations: 0 / 1.324 GB, free: 23.5 MB / 1.061 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.0006171/0.9503, allocations: 449.1 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.9503, allocations: 15.23 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002731/0.9506, allocations: 28.31 kB / 1.325 GB, free: 23.08 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.951, allocations: 256.2 kB / 1.325 GB, free: 22.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.9511, allocations: 9.875 kB / 1.325 GB, free: 22.86 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.9511, allocations: 9.875 kB / 1.325 GB, free: 22.85 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.9513, allocations: 120.4 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.9513, allocations: 7.875 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.9514, allocations: 4 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.9514, allocations: 3.188 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.9516, allocations: 73.48 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.9521, allocations: 0.4974 MB / 1.326 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.9524, allocations: 116.6 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.9525, allocations: 52.11 kB / 1.326 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.9525, allocations: 2.781 kB / 1.326 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.9526, allocations: 34.5 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.9526, allocations: 4 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0005693/0.9531, allocations: 159 kB / 1.326 GB, free: 22.04 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.9532, allocations: 105.7 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.799e-05/0.9532, allocations: 146 kB / 1.326 GB, free: 21.8 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.9533, allocations: 32.58 kB / 1.326 GB, free: 21.77 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.303e-05/0.9533, allocations: 109.5 kB / 1.326 GB, free: 21.66 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.9533, allocations: 25.75 kB / 1.326 GB, free: 21.64 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.9534, allocations: 28.12 kB / 1.326 GB, free: 21.62 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.629e-05/0.9534, allocations: 328.5 kB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.9536, allocations: 42.94 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.9537, allocations: 85.17 kB / 1.327 GB, free: 21.22 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.954, allocations: 89.48 kB / 1.327 GB, free: 21.18 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.954, allocations: 0 / 1.327 GB, free: 21.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003505/0.9543, allocations: 141.9 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.9544, allocations: 5.094 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.9544, allocations: 6.5 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.9544, allocations: 0 / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.9545, allocations: 23.94 kB / 1.327 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.9545, allocations: 2.875 kB / 1.327 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.9546, allocations: 19.62 kB / 1.327 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.9547, allocations: 4.844 kB / 1.327 GB, free: 21.11 MB / 1.061 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 6.659e-05/0.9547, allocations: 126.9 kB / 1.327 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.9548, allocations: 9.078 kB / 1.327 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.955, allocations: 89.06 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.955, allocations: 2.688 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.955, allocations: 4 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.955, allocations: 2.672 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.9553, allocations: 212.8 kB / 1.328 GB, free: 20.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.9553, allocations: 0 / 1.328 GB, free: 20.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.9554, allocations: 23.86 kB / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.9554, allocations: 2.344 kB / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.9554, allocations: 0 / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.9554, allocations: 2.625 kB / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.9554, allocations: 7.875 kB / 1.328 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/0.9558, allocations: 371.5 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.577e-05/0.9558, allocations: 84.72 kB / 1.328 GB, free: 20.28 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.9559, allocations: 2.531 kB / 1.328 GB, free: 20.28 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.9561, allocations: 22.97 kB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.046e-05/0.9562, allocations: 22.95 kB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.9562, allocations: 2.781 kB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.716e-05/0.9562, allocations: 112.9 kB / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9562, allocations: 0 / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003387/0.9566, allocations: 22.27 kB / 1.328 GB, free: 20.18 MB / 1.061 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.0001527/0.9567, allocations: 111.5 kB / 1.328 GB, free: 20.08 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004154/0.9571, allocations: 103.8 kB / 1.328 GB, free: 20.05 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.9571, allocations: 1.125 kB / 1.328 GB, free: 20.05 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.9573, allocations: 46.52 kB / 1.329 GB, free: 20.04 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.9578, allocations: 16.16 kB / 1.329 GB, free: 20.04 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004668/0.9583, allocations: 231.6 kB / 1.329 GB, free: 19.83 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.9584, allocations: 0.698 MB / 1.329 GB, free: 19.14 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.9585, allocations: 23.34 kB / 1.329 GB, free: 19.12 MB / 1.061 GB Notification: Performance of SimCode: time 4e-07/0.9585, allocations: 0 / 1.329 GB, free: 19.12 MB / 1.061 GB Notification: Performance of Templates: time 0.00408/0.9625, allocations: 1.511 MB / 1.331 GB, free: 18.99 MB / 1.061 GB " [Timeout remaining time 299] 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.514871316991048]