Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001518/0.001518, allocations: 173.2 kB / 498.1 MB, free: 5.746 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.495/1.495, allocations: 223.2 MB / 0.7948 GB, free: 17.84 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.0009478/0.0009478, allocations: 96.33 kB / 0.9346 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 10.5 kB / 1.084 GB, free: 221.8 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2684, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.453, allocations: 149.7 MB / 1.369 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.4533, allocations: 71.95 kB / 1.369 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.008033/0.4613, allocations: 2.615 MB / 1.372 GB, free: 9.559 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.896e-06/0.4614, allocations: 0 / 1.372 GB, free: 9.559 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.4614, allocations: 0 / 1.372 GB, free: 9.559 MB / 0.8698 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.0006177/0.462, allocations: 408.8 kB / 1.372 GB, free: 9.105 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.4621, allocations: 12.03 kB / 1.372 GB, free: 9.094 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.4622, allocations: 7.906 kB / 1.372 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.4623, allocations: 171 kB / 1.372 GB, free: 8.879 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.4623, allocations: 4 kB / 1.372 GB, free: 8.875 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.4624, allocations: 11.98 kB / 1.372 GB, free: 8.863 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.4626, allocations: 65.66 kB / 1.372 GB, free: 8.793 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4626, allocations: 0 / 1.372 GB, free: 8.793 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4627, allocations: 8 kB / 1.372 GB, free: 8.785 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4627, allocations: 0 / 1.372 GB, free: 8.785 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.4629, allocations: 55.89 kB / 1.372 GB, free: 8.73 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005863/0.4635, allocations: 328.6 kB / 1.373 GB, free: 8.359 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.4636, allocations: 54.55 kB / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.4637, allocations: 0 / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.4639, allocations: 103.5 kB / 1.373 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/0.4639, allocations: 0 / 1.373 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004767/0.4644, allocations: 153.5 kB / 1.373 GB, free: 8.027 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.4645, allocations: 59.3 kB / 1.373 GB, free: 7.957 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.4646, allocations: 109 kB / 1.373 GB, free: 7.844 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.4646, allocations: 25.7 kB / 1.373 GB, free: 7.812 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.414e-05/0.4647, allocations: 92.27 kB / 1.373 GB, free: 7.715 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.4647, allocations: 19.8 kB / 1.373 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.4647, allocations: 0 / 1.373 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.4649, allocations: 322.8 kB / 1.374 GB, free: 7.371 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.4651, allocations: 51.95 kB / 1.374 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.4652, allocations: 79.39 kB / 1.374 GB, free: 7.23 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.4654, allocations: 85.67 kB / 1.374 GB, free: 7.141 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4654, allocations: 0 / 1.374 GB, free: 7.141 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004907/0.4659, allocations: 207.2 kB / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.909e-05/0.466, allocations: 41.69 kB / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.466, allocations: 0 / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.466, allocations: 0 / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4662, allocations: 19.92 kB / 1.374 GB, free: 6.859 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.4662, allocations: 7.953 kB / 1.374 GB, free: 6.852 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.4664, allocations: 52.86 kB / 1.374 GB, free: 6.801 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.4665, allocations: 4 kB / 1.374 GB, free: 6.797 MB / 0.8698 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.0001146/0.4666, allocations: 125.8 kB / 1.374 GB, free: 6.664 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.4666, allocations: 0 / 1.374 GB, free: 6.664 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003151/0.4669, allocations: 133.9 kB / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.4669, allocations: 0 / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4669, allocations: 0 / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.467, allocations: 3.953 kB / 1.374 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004708/0.4674, allocations: 366.5 kB / 1.375 GB, free: 6.105 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4675, allocations: 7.938 kB / 1.375 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.89e-05/0.4675, allocations: 12.08 kB / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.4675, allocations: 3.984 kB / 1.375 GB, free: 6.082 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.4676, allocations: 4 kB / 1.375 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4676, allocations: 4.469 kB / 1.375 GB, free: 6.074 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.4676, allocations: 7.953 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.4679, allocations: 207.4 kB / 1.375 GB, free: 5.848 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.224e-05/0.468, allocations: 85.02 kB / 1.375 GB, free: 5.746 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.468, allocations: 3.984 kB / 1.375 GB, free: 5.742 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.4681, allocations: 11.94 kB / 1.375 GB, free: 5.73 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.4681, allocations: 15.94 kB / 1.375 GB, free: 5.715 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-06/0.4682, allocations: 4 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.415e-05/0.4682, allocations: 95.2 kB / 1.375 GB, free: 5.617 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4682, allocations: 0 / 1.375 GB, free: 5.617 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000269/0.4685, allocations: 24 kB / 1.375 GB, free: 5.594 MB / 0.8698 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.0001948/0.4687, allocations: 123 kB / 1.375 GB, free: 5.465 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.4691, allocations: 175.8 kB / 1.376 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4691, allocations: 3.938 kB / 1.376 GB, free: 5.277 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.4692, allocations: 48.09 kB / 1.376 GB, free: 5.23 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.4694, allocations: 8.5 kB / 1.376 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000412/0.4699, allocations: 166.8 kB / 1.376 GB, free: 5.031 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.4702, allocations: 0.6887 MB / 1.376 GB, free: 4.316 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.817e-05/0.4702, allocations: 8.172 kB / 1.376 GB, free: 4.309 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.4703, allocations: 11.44 kB / 1.376 GB, free: 4.297 MB / 0.8698 GB Notification: Performance of SimCode: time 2.21e-07/0.4703, allocations: 3.938 kB / 1.376 GB, free: 4.293 MB / 0.8698 GB Notification: Performance of Templates: time 0.004274/0.4746, allocations: 1.214 MB / 1.378 GB, free: 3.094 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches