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.334/2.334, allocations: 390.3 MB / 402.9 MB, free: 6.691 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.001039/0.001039, allocations: 176.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.001291/0.001292, allocations: 83.95 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.135e-05/4.137e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9678/1.324, allocations: 150.5 MB / 1.366 GB, free: 3.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/1.324, allocations: 72.14 kB / 1.366 GB, free: 3.551 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008137/1.332, allocations: 2.589 MB / 1.368 GB, free: 1.309 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.874e-06/1.332, allocations: 0 / 1.368 GB, free: 1.309 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.755e-06/1.332, allocations: 3.375 kB / 1.368 GB, free: 1.309 MB / 0.823 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.000516/1.333, allocations: 392.5 kB / 1.369 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/1.333, allocations: 8.031 kB / 1.369 GB, free: 0.8711 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/1.333, allocations: 7.984 kB / 1.369 GB, free: 0.8633 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/1.333, allocations: 183.6 kB / 1.369 GB, free: 0.6484 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/1.333, allocations: 8 kB / 1.369 GB, free: 0.6406 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/1.333, allocations: 4 kB / 1.369 GB, free: 0.6367 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/1.333, allocations: 48.06 kB / 1.369 GB, free: 0.5898 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/1.333, allocations: 4 kB / 1.369 GB, free: 0.5859 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/1.333, allocations: 7.672 kB / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/1.333, allocations: 0 / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.88e-05/1.333, allocations: 15.81 kB / 1.369 GB, free: 0.5703 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005009/1.334, allocations: 327.6 kB / 1.369 GB, free: 232 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.227e-05/1.334, allocations: 41.75 kB / 1.369 GB, free: 188 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.692e-05/1.334, allocations: 23.5 kB / 1.369 GB, free: 168 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/1.334, allocations: 0 / 1.369 GB, free: 168 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/1.334, allocations: 81.58 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/1.334, allocations: 4 kB / 1.369 GB, free: 76 kB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002285/1.334, allocations: 87.16 kB / 1.37 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/1.334, allocations: 59.34 kB / 1.37 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.81e-05/1.334, allocations: 107.7 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/1.334, allocations: 25.7 kB / 1.37 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/1.335, allocations: 91.81 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.496e-05/1.335, allocations: 22.91 kB / 1.37 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/1.335, allocations: 0 / 1.37 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001298/1.335, allocations: 322.3 kB / 1.37 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.18e-05/1.335, allocations: 37.25 kB / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/1.335, allocations: 69.11 kB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/1.335, allocations: 59.62 kB / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.335, allocations: 0 / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003013/1.335, allocations: 167.6 kB / 1.37 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/1.335, allocations: 39.17 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.335, allocations: 0 / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/1.335, allocations: 0 / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/1.336, allocations: 23.05 kB / 1.37 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/1.336, allocations: 7.953 kB / 1.37 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/1.336, allocations: 51.86 kB / 1.371 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/1.336, allocations: 4 kB / 1.371 GB, free: 14.94 MB / 0.8386 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 () * 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 8.676e-05/1.336, allocations: 108.5 kB / 1.371 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/1.336, allocations: 7.984 kB / 1.371 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/1.336, allocations: 94.97 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.336, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/1.336, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/1.336, allocations: 11.95 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/1.337, allocations: 331.3 kB / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/1.337, allocations: 4 kB / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/1.337, allocations: 11.98 kB / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/1.337, allocations: 0 / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/1.337, allocations: 3.938 kB / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/1.337, allocations: 7.891 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/1.337, allocations: 4 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/1.337, allocations: 182.5 kB / 1.371 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/1.337, allocations: 85.02 kB / 1.371 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/1.337, allocations: 3.938 kB / 1.371 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/1.337, allocations: 15.3 kB / 1.371 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/1.337, allocations: 3.953 kB / 1.371 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/1.337, allocations: 11.98 kB / 1.371 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.872e-05/1.337, allocations: 90.47 kB / 1.371 GB, free: 13.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.337, allocations: 0 / 1.371 GB, free: 13.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002605/1.337, allocations: 31.19 kB / 1.372 GB, free: 13.91 MB / 0.8386 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) * 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.0001542/1.338, allocations: 115.2 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002199/1.338, allocations: 143.1 kB / 1.372 GB, free: 13.67 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.338, allocations: 0 / 1.372 GB, free: 13.67 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/1.338, allocations: 19.5 kB / 1.372 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/1.338, allocations: 20.69 kB / 1.372 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002516/1.338, allocations: 96.22 kB / 1.372 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/1.339, allocations: 0.6887 MB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.81e-05/1.339, allocations: 8.172 kB / 1.373 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.673e-05/1.339, allocations: 11.44 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.339, allocations: 0 / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of Templates: time 0.003466/1.342, allocations: 1.214 MB / 1.374 GB, free: 11.61 MB / 0.8386 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