Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.45/2.45, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001114/0.001114, allocations: 180 kB / 0.4902 GB, free: 2.246 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.667/1.667, allocations: 223.2 MB / 0.7992 GB, free: 15.68 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.0009973/0.0009977, allocations: 108.8 kB / 0.9396 GB, free: 2.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000368/0.000368, allocations: 15.53 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3124, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2086/0.521, allocations: 150.4 MB / 1.376 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.5213, allocations: 67.97 kB / 1.376 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.006826/0.5281, allocations: 2.107 MB / 1.378 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.715e-06/0.5282, allocations: 0 / 1.378 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.5282, allocations: 0 / 1.378 GB, free: 12.64 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.0005427/0.5287, allocations: 412.8 kB / 1.379 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.5288, allocations: 8.562 kB / 1.379 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.563e-05/0.5288, allocations: 4 kB / 1.379 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.529, allocations: 178.9 kB / 1.379 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.529, allocations: 8 kB / 1.379 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.5291, allocations: 11.94 kB / 1.379 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.5293, allocations: 65.66 kB / 1.379 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.5293, allocations: 0 / 1.379 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.5293, allocations: 4 kB / 1.379 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5293, allocations: 4 kB / 1.379 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.5295, allocations: 47.95 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.5301, allocations: 332.6 kB / 1.379 GB, free: 11.44 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.5303, allocations: 66.61 kB / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-06/0.5303, allocations: 0 / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.5306, allocations: 99.55 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 3.226e-06/0.5306, allocations: 0 / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.000487/0.5311, allocations: 165.4 kB / 1.38 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.5312, allocations: 63.34 kB / 1.38 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.5313, allocations: 109 kB / 1.38 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.5313, allocations: 29.7 kB / 1.38 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.379e-05/0.5314, allocations: 92.05 kB / 1.38 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.5314, allocations: 19.78 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.387e-05/0.5314, allocations: 8 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5316, allocations: 318.8 kB / 1.38 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.5318, allocations: 55.95 kB / 1.38 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.532, allocations: 92.25 kB / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.5322, allocations: 89.55 kB / 1.38 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.5322, allocations: 4 kB / 1.38 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004981/0.5327, allocations: 211.2 kB / 1.381 GB, free: 9.949 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.5327, allocations: 37.69 kB / 1.381 GB, free: 9.906 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5328, allocations: 3.984 kB / 1.381 GB, free: 9.902 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.5328, allocations: 4 kB / 1.381 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.5329, allocations: 24.05 kB / 1.381 GB, free: 9.875 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.5329, allocations: 0 / 1.381 GB, free: 9.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.5332, allocations: 47.92 kB / 1.381 GB, free: 9.828 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.5332, allocations: 11.98 kB / 1.381 GB, free: 9.816 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.edge1.u,edge1.u,edge1.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.0001105/0.5333, allocations: 118.5 kB / 1.381 GB, free: 9.691 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.5333, allocations: 7.906 kB / 1.381 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.5334, allocations: 8.375 kB / 1.381 GB, free: 9.668 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.5334, allocations: 7.984 kB / 1.381 GB, free: 9.66 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.5334, allocations: 3.938 kB / 1.381 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.5334, allocations: 0 / 1.381 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005091/0.5339, allocations: 382.5 kB / 1.381 GB, free: 9.227 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5339, allocations: 4 kB / 1.381 GB, free: 9.223 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.73e-05/0.534, allocations: 11.98 kB / 1.381 GB, free: 9.211 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.534, allocations: 0 / 1.381 GB, free: 9.211 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.534, allocations: 7.875 kB / 1.381 GB, free: 9.203 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.5341, allocations: 7.984 kB / 1.381 GB, free: 9.195 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5341, allocations: 3.953 kB / 1.381 GB, free: 9.191 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.5344, allocations: 211.4 kB / 1.382 GB, free: 8.969 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.932e-05/0.5345, allocations: 81.11 kB / 1.382 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.5345, allocations: 8 kB / 1.382 GB, free: 8.863 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.242e-05/0.5346, allocations: 7.984 kB / 1.382 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.5347, allocations: 4 kB / 1.382 GB, free: 8.852 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.5347, allocations: 11.94 kB / 1.382 GB, free: 8.84 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.447e-05/0.5347, allocations: 91.77 kB / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5347, allocations: 0 / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002732/0.535, allocations: 31.92 kB / 1.382 GB, free: 8.719 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 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.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.0002099/0.5352, allocations: 124 kB / 1.382 GB, free: 8.59 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004162/0.5357, allocations: 179.4 kB / 1.382 GB, free: 8.402 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5357, allocations: 4.25 kB / 1.382 GB, free: 8.398 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.5358, allocations: 43.97 kB / 1.382 GB, free: 8.355 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.536, allocations: 12.86 kB / 1.382 GB, free: 8.344 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004063/0.5365, allocations: 179.2 kB / 1.382 GB, free: 8.137 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.5368, allocations: 0.6926 MB / 1.383 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.406e-05/0.5368, allocations: 15.7 kB / 1.383 GB, free: 7.402 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.5369, allocations: 11.44 kB / 1.383 GB, free: 7.391 MB / 0.8855 GB Notification: Performance of SimCode: time 7.21e-07/0.5369, allocations: 0 / 1.383 GB, free: 7.391 MB / 0.8855 GB Notification: Performance of Templates: time 0.004045/0.5409, allocations: 1.262 MB / 1.384 GB, free: 6.141 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches