Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.363/1.363, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 191.4 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.4 MB / 0.5775 GB, free: 20.6 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.0007944/0.000794, allocations: 101.9 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003452, allocations: 8.688 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2354, allocations: 106.3 MB / 0.9001 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.4089, allocations: 131.9 MB / 1.029 GB, free: 12.33 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4092, allocations: 75.94 kB / 1.029 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004073/0.4132, allocations: 1.465 MB / 1.03 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.949e-06/0.4133, allocations: 4 kB / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.4133, allocations: 0 / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005064/0.4138, allocations: 379.1 kB / 1.031 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/0.4139, allocations: 12.03 kB / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.135e-05/0.4139, allocations: 8 kB / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.4141, allocations: 178.9 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.4141, allocations: 4 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.4141, allocations: 3.984 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.4143, allocations: 73.61 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4143, allocations: 0 / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.4144, allocations: 7.984 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.4144, allocations: 8 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.4146, allocations: 51.94 kB / 1.031 GB, free: 9.977 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.415, allocations: 288.8 kB / 1.031 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.4152, allocations: 62.48 kB / 1.031 GB, free: 9.574 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.4152, allocations: 3.938 kB / 1.031 GB, free: 9.57 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.4155, allocations: 99.53 kB / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.4155, allocations: 0 / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004766/0.4159, allocations: 145.5 kB / 1.032 GB, free: 9.312 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.416, allocations: 59.36 kB / 1.032 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.165e-05/0.4161, allocations: 101 kB / 1.032 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.4161, allocations: 33.7 kB / 1.032 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.4162, allocations: 88.88 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.4163, allocations: 15.75 kB / 1.032 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.4163, allocations: 0 / 1.032 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4164, allocations: 322.8 kB / 1.032 GB, free: 8.668 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.4165, allocations: 31.97 kB / 1.032 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.4167, allocations: 50.56 kB / 1.032 GB, free: 8.578 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.4168, allocations: 39.97 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4168, allocations: 0 / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002613/0.4171, allocations: 109.6 kB / 1.033 GB, free: 8.426 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.4171, allocations: 11.97 kB / 1.033 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.4171, allocations: 0 / 1.033 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.4171, allocations: 4 kB / 1.033 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.4172, allocations: 19.92 kB / 1.033 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4172, allocations: 0 / 1.033 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.4173, allocations: 27.84 kB / 1.033 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.4174, allocations: 0 / 1.033 GB, free: 8.363 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.153e-05/0.4174, allocations: 121.8 kB / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.4175, allocations: 0 / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.4178, allocations: 121.9 kB / 1.033 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.4178, allocations: 7.984 kB / 1.033 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4178, allocations: 0 / 1.033 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4178, allocations: 0 / 1.033 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.4183, allocations: 398.3 kB / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4183, allocations: 0 / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-05/0.4184, allocations: 11.98 kB / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.4184, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.4184, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4184, allocations: 4 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4184, allocations: 3.953 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.4187, allocations: 203.7 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.841e-05/0.4188, allocations: 85.02 kB / 1.034 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.4188, allocations: 7.922 kB / 1.034 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.4189, allocations: 19.98 kB / 1.034 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.419, allocations: 11.94 kB / 1.034 GB, free: 7.285 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.419, allocations: 4.094 kB / 1.034 GB, free: 7.281 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.212e-05/0.4191, allocations: 92.08 kB / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4191, allocations: 0 / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002094/0.4193, allocations: 8 kB / 1.034 GB, free: 7.184 MB / 0.6823 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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.0001374/0.4194, allocations: 111.2 kB / 1.034 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002526/0.4197, allocations: 75.95 kB / 1.034 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4197, allocations: 3.938 kB / 1.034 GB, free: 6.984 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.4198, allocations: 35.97 kB / 1.034 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.42, allocations: 16.06 kB / 1.034 GB, free: 6.934 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000346/0.4204, allocations: 175.1 kB / 1.034 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.4206, allocations: 0.6887 MB / 1.035 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.611e-05/0.4206, allocations: 7.859 kB / 1.035 GB, free: 6.008 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.4207, allocations: 11.44 kB / 1.035 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of SimCode: time 3.51e-07/0.4207, allocations: 0 / 1.035 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of Templates: time 0.002676/0.4234, allocations: 0.7493 MB / 1.035 GB, free: 5.258 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches