Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.458/2.458, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001381/0.001381, allocations: 191.5 kB / 0.4902 GB, free: 2.211 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.621/1.621, allocations: 223.1 MB / 0.7992 GB, free: 15.62 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.000861/0.000861, allocations: 112.7 kB / 0.9397 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004525, allocations: 11.14 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.293, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.4853, allocations: 150.5 MB / 1.376 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4855, allocations: 79.95 kB / 1.376 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.007951/0.4935, allocations: 2.606 MB / 1.379 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4936, allocations: 0 / 1.379 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.4936, allocations: 0 / 1.379 GB, free: 12.04 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007007/0.4943, allocations: 408.9 kB / 1.379 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.4944, allocations: 8.562 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.392e-05/0.4944, allocations: 7.906 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.4946, allocations: 175 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.4947, allocations: 8 kB / 1.379 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.4947, allocations: 4 kB / 1.379 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.495, allocations: 73.66 kB / 1.379 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.495, allocations: 3.938 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4951, allocations: 0 / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4951, allocations: 4 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.4953, allocations: 59.88 kB / 1.38 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005871/0.4959, allocations: 332.6 kB / 1.38 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.4961, allocations: 50.55 kB / 1.38 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.4961, allocations: 8 kB / 1.38 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.4964, allocations: 99.42 kB / 1.38 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.244e-06/0.4964, allocations: 0 / 1.38 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0005326/0.497, allocations: 145.5 kB / 1.38 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.497, allocations: 59.42 kB / 1.38 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.016e-05/0.4971, allocations: 112.9 kB / 1.38 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.4972, allocations: 25.7 kB / 1.38 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7e-05/0.4973, allocations: 92.31 kB / 1.38 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.4973, allocations: 19.81 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/0.4973, allocations: 0 / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4974, allocations: 322.8 kB / 1.381 GB, free: 9.84 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.4976, allocations: 51.97 kB / 1.381 GB, free: 9.789 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.4978, allocations: 83.39 kB / 1.381 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.498, allocations: 77.67 kB / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.498, allocations: 0 / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004633/0.4985, allocations: 215.1 kB / 1.381 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.4985, allocations: 38.95 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4985, allocations: 0 / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.4986, allocations: 4 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.4987, allocations: 11.98 kB / 1.381 GB, free: 9.332 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.4987, allocations: 12.02 kB / 1.381 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.4989, allocations: 47.89 kB / 1.381 GB, free: 9.273 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.499, allocations: 8 kB / 1.381 GB, free: 9.266 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001106/0.4991, allocations: 126.7 kB / 1.381 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.4991, allocations: 8.453 kB / 1.381 GB, free: 9.125 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003212/0.4994, allocations: 122 kB / 1.382 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.4995, allocations: 0 / 1.382 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4995, allocations: 0 / 1.382 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4995, allocations: 7.953 kB / 1.382 GB, free: 8.988 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.5, allocations: 378.4 kB / 1.382 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5, allocations: 3.938 kB / 1.382 GB, free: 8.559 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.5001, allocations: 15.98 kB / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.5001, allocations: 0 / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.5001, allocations: 0 / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.5001, allocations: 7.984 kB / 1.382 GB, free: 8.535 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5001, allocations: 3.953 kB / 1.382 GB, free: 8.531 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.5004, allocations: 215.4 kB / 1.382 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.5005, allocations: 77.11 kB / 1.382 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.5005, allocations: 4 kB / 1.382 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.5006, allocations: 11.98 kB / 1.382 GB, free: 8.195 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.5007, allocations: 7.953 kB / 1.382 GB, free: 8.188 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.5007, allocations: 7.984 kB / 1.382 GB, free: 8.18 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.772e-05/0.5008, allocations: 87.22 kB / 1.382 GB, free: 8.094 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5008, allocations: 4 kB / 1.382 GB, free: 8.09 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002774/0.5011, allocations: 31.91 kB / 1.382 GB, free: 8.059 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000189/0.5013, allocations: 116 kB / 1.382 GB, free: 7.938 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003884/0.5016, allocations: 179.3 kB / 1.383 GB, free: 7.75 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5017, allocations: 0 / 1.383 GB, free: 7.75 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.5018, allocations: 43.97 kB / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.502, allocations: 8.047 kB / 1.383 GB, free: 7.699 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.5024, allocations: 174.7 kB / 1.383 GB, free: 7.496 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.5027, allocations: 0.6887 MB / 1.384 GB, free: 6.781 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.532e-05/0.5028, allocations: 8.125 kB / 1.384 GB, free: 6.773 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/0.5028, allocations: 11.44 kB / 1.384 GB, free: 6.766 MB / 0.8855 GB Notification: Performance of SimCode: time 4e-07/0.5028, allocations: 0 / 1.384 GB, free: 6.766 MB / 0.8855 GB Notification: Performance of Templates: time 0.003839/0.5067, allocations: 1.224 MB / 1.385 GB, free: 5.559 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches