Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 249.3 MB / 261.8 MB, free: 5.938 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.001014/0.001014, allocations: 178.1 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.29/1.29, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.000801/0.0008012, allocations: 92.66 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.677e-05/3.698e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.218, allocations: 106.3 MB / 0.8918 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7851/1.003, allocations: 139.4 MB / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/1.004, allocations: 79.58 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02058/1.024, allocations: 7.583 MB / 1.035 GB, free: 5.012 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.507e-06/1.024, allocations: 0 / 1.035 GB, free: 5.012 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.275e-05/1.024, allocations: 12 kB / 1.035 GB, free: 5 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00109/1.025, allocations: 0.6352 MB / 1.036 GB, free: 4.348 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 7.664e-05/1.026, allocations: 16.02 kB / 1.036 GB, free: 4.332 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/1.026, allocations: 55.34 kB / 1.036 GB, free: 4.277 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/1.026, allocations: 399.5 kB / 1.036 GB, free: 3.906 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/1.026, allocations: 35.34 kB / 1.037 GB, free: 3.887 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.815e-05/1.026, allocations: 33.44 kB / 1.037 GB, free: 3.863 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006708/1.027, allocations: 393.2 kB / 1.037 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/1.027, allocations: 0 / 1.037 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/1.027, allocations: 14.19 kB / 1.037 GB, free: 3.566 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/1.027, allocations: 16 kB / 1.037 GB, free: 3.551 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/1.028, allocations: 252.3 kB / 1.037 GB, free: 3.395 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/1.03, allocations: 1.372 MB / 1.039 GB, free: 2.215 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/1.03, allocations: 318.6 kB / 1.039 GB, free: 2.008 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/1.031, allocations: 126.7 kB / 1.039 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/1.031, allocations: 0 / 1.039 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/1.031, allocations: 180.8 kB / 1.039 GB, free: 1.785 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 1.513e-06/1.031, allocations: 0 / 1.039 GB, free: 1.785 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.0005288/1.031, allocations: 276.2 kB / 1.039 GB, free: 1.578 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.032, allocations: 136.5 kB / 1.04 GB, free: 1.414 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/1.032, allocations: 312.8 kB / 1.04 GB, free: 1.172 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/1.032, allocations: 32.02 kB / 1.04 GB, free: 1.141 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/1.032, allocations: 229.8 kB / 1.04 GB, free: 0.9727 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/1.032, allocations: 107.7 kB / 1.04 GB, free: 0.8789 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.611e-05/1.032, allocations: 7.688 kB / 1.04 GB, free: 0.8789 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001559/1.032, allocations: 354.1 kB / 1.041 GB, free: 0.5391 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/1.033, allocations: 92.06 kB / 1.041 GB, free: 500 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/1.033, allocations: 163 kB / 1.041 GB, free: 360 kB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/1.033, allocations: 104.8 kB / 1.041 GB, free: 292 kB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.033, allocations: 0 / 1.041 GB, free: 292 kB / 0.6511 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004691/1.034, allocations: 327.4 kB / 1.041 GB, free: 44 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/1.034, allocations: 4 kB / 1.041 GB, free: 40 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/1.034, allocations: 7.984 kB / 1.041 GB, free: 32 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.034, allocations: 0 / 1.041 GB, free: 32 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/1.034, allocations: 70.34 kB / 1.041 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/1.034, allocations: 4 kB / 1.041 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/1.034, allocations: 49.48 kB / 1.041 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/1.034, allocations: 18.92 kB / 1.041 GB, free: 15.9 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 0.0001346/1.034, allocations: 130.2 kB / 1.041 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.71e-05/1.034, allocations: 39.53 kB / 1.041 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/1.035, allocations: 46.25 kB / 1.042 GB, free: 15.72 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/1.035, allocations: 4 kB / 1.042 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/1.035, allocations: 4 kB / 1.042 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/1.035, allocations: 3.984 kB / 1.042 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/1.036, allocations: 0.8312 MB / 1.042 GB, free: 15.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/1.036, allocations: 3.938 kB / 1.042 GB, free: 15.02 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/1.036, allocations: 55.91 kB / 1.042 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/1.036, allocations: 4 kB / 1.042 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/1.036, allocations: 3.875 kB / 1.042 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/1.036, allocations: 4 kB / 1.042 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.036, allocations: 0 / 1.042 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007245/1.037, allocations: 0.5125 MB / 1.043 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/1.037, allocations: 141.8 kB / 1.043 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/1.037, allocations: 15.12 kB / 1.043 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/1.037, allocations: 27.86 kB / 1.043 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/1.037, allocations: 31.08 kB / 1.043 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/1.037, allocations: 4 kB / 1.043 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002618/1.038, allocations: 244.9 kB / 1.043 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/1.038, allocations: 0 / 1.043 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003414/1.038, allocations: 90.41 kB / 1.043 GB, free: 14.09 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000185/1.038, allocations: 110.2 kB / 1.044 GB, free: 13.97 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0004483/1.039, allocations: 243.9 kB / 1.044 GB, free: 13.81 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.039, allocations: 0 / 1.044 GB, free: 13.81 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/1.039, allocations: 135 kB / 1.044 GB, free: 13.72 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/1.039, allocations: 79.27 kB / 1.044 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/1.041, allocations: 0.5736 MB / 1.045 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/1.041, allocations: 0.823 MB / 1.045 GB, free: 12.27 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001778/1.041, allocations: 47.2 kB / 1.045 GB, free: 12.23 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.925e-05/1.041, allocations: 27.44 kB / 1.045 GB, free: 12.21 MB / 0.6667 GB Notification: Performance of SimCode: time 1.884e-06/1.041, allocations: 0 / 1.045 GB, free: 12.21 MB / 0.6667 GB Notification: Performance of Templates: time 0.008142/1.049, allocations: 3.739 MB / 1.049 GB, free: 8.516 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches