Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.304/2.304, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001083/0.001083, allocations: 183.9 kB / 0.4902 GB, free: 2.25 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.628/1.628, allocations: 223.2 MB / 0.7992 GB, free: 14.7 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.0008372/0.0008371, allocations: 98.61 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004708, allocations: 14.22 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3534, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2045/0.558, allocations: 150.4 MB / 1.376 GB, free: 3.047 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5583, allocations: 75.89 kB / 1.376 GB, free: 2.973 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006398/0.5647, allocations: 2.103 MB / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.003e-06/0.5648, allocations: 0 / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.5648, allocations: 0 / 1.378 GB, free: 0.8672 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.0005552/0.5654, allocations: 408.9 kB / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.5654, allocations: 8.562 kB / 1.379 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.5655, allocations: 7.906 kB / 1.379 GB, free: 408 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.5656, allocations: 171 kB / 1.379 GB, free: 196 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.5657, allocations: 4 kB / 1.379 GB, free: 192 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.5657, allocations: 15.98 kB / 1.379 GB, free: 176 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.5659, allocations: 73.64 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5659, allocations: 0 / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.566, allocations: 0 / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.566, allocations: 4 kB / 1.379 GB, free: 92 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.5662, allocations: 51.95 kB / 1.379 GB, free: 40 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.5667, allocations: 332.6 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.567, allocations: 70.61 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.567, allocations: 3.938 kB / 1.379 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.5672, allocations: 87.48 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.5672, allocations: 0 / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0004704/0.5677, allocations: 161.5 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.5678, allocations: 59.36 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.397e-05/0.5679, allocations: 109 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.5679, allocations: 33.7 kB / 1.38 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.568, allocations: 92.12 kB / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.568, allocations: 19.66 kB / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.568, allocations: 4 kB / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5682, allocations: 322.8 kB / 1.38 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.5683, allocations: 51.97 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.5685, allocations: 95.5 kB / 1.38 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.5687, allocations: 89.61 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.5687, allocations: 4 kB / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004447/0.5692, allocations: 211.2 kB / 1.381 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/0.5693, allocations: 33.83 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.5693, allocations: 4 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.5693, allocations: 7.938 kB / 1.381 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.5694, allocations: 15.98 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.5694, allocations: 0 / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.5697, allocations: 63.75 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.5697, allocations: 8 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001138/0.5698, allocations: 118.5 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.5698, allocations: 7.938 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.5699, allocations: 8.375 kB / 1.381 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.5699, allocations: 4 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5699, allocations: 0 / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.5699, allocations: 7.984 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005173/0.5704, allocations: 390.5 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.5704, allocations: 7.938 kB / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.225e-05/0.5705, allocations: 19.92 kB / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5705, allocations: 0 / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.5705, allocations: 0 / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5705, allocations: 0 / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5705, allocations: 3.953 kB / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000318/0.5709, allocations: 211.5 kB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.824e-05/0.5709, allocations: 85.02 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.5709, allocations: 4 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.658e-05/0.571, allocations: 7.984 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.5711, allocations: 7.984 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.5711, allocations: 7.953 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.448e-05/0.5712, allocations: 99.81 kB / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5712, allocations: 0 / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002626/0.5715, allocations: 20 kB / 1.382 GB, free: 12.95 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: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001913/0.5717, allocations: 124.2 kB / 1.382 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004042/0.5721, allocations: 183.8 kB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.5721, allocations: 0 / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.5722, allocations: 43.95 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.5724, allocations: 23.86 kB / 1.382 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000385/0.5728, allocations: 179.7 kB / 1.382 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.5732, allocations: 0.6926 MB / 1.383 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.004e-05/0.5732, allocations: 7.781 kB / 1.383 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.5732, allocations: 11.44 kB / 1.383 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of SimCode: time 2.61e-07/0.5732, allocations: 7.938 kB / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of Templates: time 0.003785/0.577, allocations: 1.259 MB / 1.384 GB, free: 10.36 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches