Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.545/1.545, allocations: 249.3 MB / 261.8 MB, free: 5.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 178.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000797/0.000797, allocations: 86.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.978e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2123, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7012/0.9136, allocations: 132.1 MB / 1.021 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.9139, allocations: 76.19 kB / 1.021 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006354/0.9202, allocations: 2.134 MB / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.314e-06/0.9203, allocations: 0 / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.9203, allocations: 4 kB / 1.023 GB, free: 0.6953 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008603/0.9212, allocations: 481 kB / 1.023 GB, free: 196 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.9212, allocations: 8.031 kB / 1.023 GB, free: 188 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.9213, allocations: 11.91 kB / 1.023 GB, free: 176 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.9215, allocations: 192.1 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.9215, allocations: 7.562 kB / 1.024 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.9215, allocations: 11.75 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.9218, allocations: 136.8 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.9218, allocations: 7.875 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.9218, allocations: 3.375 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.9218, allocations: 7.953 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.922, allocations: 61.3 kB / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009931/0.923, allocations: 0.6093 MB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.9232, allocations: 123.2 kB / 1.025 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/0.9233, allocations: 52.75 kB / 1.025 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.9233, allocations: 4 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.9236, allocations: 142.5 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.9236, allocations: 0 / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14): time 0.0003101/0.9239, allocations: 139.1 kB / 1.025 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.924, allocations: 102.8 kB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.9241, allocations: 155.7 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.9242, allocations: 34.33 kB / 1.025 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.265e-05/0.9243, allocations: 114.1 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.9243, allocations: 42.39 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.9243, allocations: 7.438 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.9244, allocations: 326 kB / 1.026 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.336e-05/0.9245, allocations: 45.88 kB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.9247, allocations: 99.08 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.099e-05/0.9248, allocations: 38.92 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9248, allocations: 0 / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002622/0.925, allocations: 179.1 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.9251, allocations: 5.094 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.9251, allocations: 4 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.9251, allocations: 0 / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.9253, allocations: 55.89 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.9254, allocations: 0.7031 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.9256, allocations: 62.89 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.9257, allocations: 15.73 kB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.328e-05/0.9258, allocations: 112.7 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.9258, allocations: 23.61 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.926, allocations: 76.84 kB / 1.026 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.926, allocations: 4 kB / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.926, allocations: 0 / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.926, allocations: 0 / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.9262, allocations: 235.1 kB / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9262, allocations: 0 / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.9264, allocations: 39.91 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.9264, allocations: 3.953 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.9265, allocations: 11.61 kB / 1.027 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.9265, allocations: 0 / 1.027 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.9265, allocations: 0 / 1.027 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.9267, allocations: 201.1 kB / 1.027 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.599e-05/0.9268, allocations: 88.92 kB / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.9268, allocations: 11.38 kB / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.9271, allocations: 47.95 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.9272, allocations: 47.34 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.9272, allocations: 7.062 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.859e-05/0.9273, allocations: 115.5 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9273, allocations: 4 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002101/0.9275, allocations: 31.25 kB / 1.027 GB, free: 12.47 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001782/0.9277, allocations: 111.8 kB / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002689/0.928, allocations: 133.9 kB / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.928, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.9282, allocations: 64.94 kB / 1.027 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.9284, allocations: 31.5 kB / 1.027 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/0.9288, allocations: 189.1 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.9291, allocations: 0.7127 MB / 1.028 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.265e-05/0.9292, allocations: 17.33 kB / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.9293, allocations: 23.42 kB / 1.028 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of SimCode: time 4.3e-07/0.9293, allocations: 0 / 1.028 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of Templates: time 0.004375/0.9337, allocations: 2.138 MB / 1.03 GB, free: 9.121 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches