Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 387.1 MB / 399.7 MB, free: 9.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 172.9 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009051/0.0009054, allocations: 106.5 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.416e-05/4.418e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 142.4 MB / 1.212 GB, free: 38.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.353, allocations: 149.9 MB / 1.359 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/1.353, allocations: 74.25 kB / 1.359 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01285/1.366, allocations: 4.341 MB / 1.363 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.503e-06/1.366, allocations: 0 / 1.363 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.207e-06/1.366, allocations: 7.875 kB / 1.363 GB, free: 34.43 MB / 0.8386 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.0006233/1.367, allocations: 0.5128 MB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/1.367, allocations: 11.69 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.9e-05/1.367, allocations: 27.28 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/1.367, allocations: 201.2 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/1.367, allocations: 14.2 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/1.367, allocations: 22.69 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/1.367, allocations: 121.5 kB / 1.364 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/1.367, allocations: 0 / 1.364 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/1.367, allocations: 7.344 kB / 1.364 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/1.367, allocations: 7.953 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/1.368, allocations: 62.95 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007408/1.368, allocations: 0.6813 MB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/1.369, allocations: 136.8 kB / 1.365 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.541e-05/1.369, allocations: 50.73 kB / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/1.369, allocations: 3.875 kB / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/1.369, allocations: 147 kB / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/1.369, allocations: 0 / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.000283/1.369, allocations: 150 kB / 1.365 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/1.369, allocations: 109.8 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/1.369, allocations: 167.3 kB / 1.365 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/1.37, allocations: 36.95 kB / 1.366 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.455e-05/1.37, allocations: 121.2 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/1.37, allocations: 42.78 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.06e-05/1.37, allocations: 3.969 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001137/1.37, allocations: 331.8 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/1.37, allocations: 97.69 kB / 1.366 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/1.37, allocations: 161.8 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/1.37, allocations: 139.3 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.37, allocations: 0 / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004761/1.371, allocations: 347.3 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.08e-05/1.371, allocations: 71.09 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/1.371, allocations: 3.812 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/1.371, allocations: 0 / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/1.371, allocations: 26.19 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/1.371, allocations: 3.781 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/1.371, allocations: 114.7 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/1.372, allocations: 14.2 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001024/1.372, allocations: 129.2 kB / 1.367 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/1.372, allocations: 19.47 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/1.372, allocations: 76.19 kB / 1.367 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/1.372, allocations: 3.781 kB / 1.367 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.372, allocations: 3.938 kB / 1.367 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/1.372, allocations: 3.844 kB / 1.367 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/1.372, allocations: 249.4 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.372, allocations: 3.812 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.672e-05/1.372, allocations: 17.47 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/1.372, allocations: 7.812 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/1.372, allocations: 3.375 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.372, allocations: 3.844 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/1.372, allocations: 0 / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/1.372, allocations: 207.4 kB / 1.368 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/1.372, allocations: 94.75 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/1.372, allocations: 3.75 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/1.373, allocations: 29.61 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.23e-05/1.373, allocations: 29.11 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/1.373, allocations: 7.031 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001005/1.373, allocations: 150 kB / 1.368 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.373, allocations: 0 / 1.368 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002595/1.373, allocations: 59.84 kB / 1.368 GB, free: 31.28 MB / 0.8386 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 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001913/1.373, allocations: 122.3 kB / 1.368 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003923/1.374, allocations: 311.2 kB / 1.368 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.374, allocations: 0 / 1.368 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.897e-05/1.374, allocations: 66.92 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/1.374, allocations: 37.73 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000401/1.374, allocations: 210.8 kB / 1.369 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/1.375, allocations: 0.7304 MB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.746e-05/1.375, allocations: 16.14 kB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.736e-05/1.375, allocations: 21.78 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.375, allocations: 3.906 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of Templates: time 0.005843/1.381, allocations: 3.093 MB / 1.372 GB, free: 29.98 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches