Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.406/2.406, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001094/0.001094, allocations: 174.9 kB / 0.4902 GB, free: 2.199 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.491/1.491, allocations: 223.1 MB / 0.7992 GB, free: 14.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.0009693/0.0009696, allocations: 102 kB / 0.9396 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003665, allocations: 10.5 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3049, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1971/0.5021, allocations: 150.2 MB / 1.376 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5024, allocations: 71.95 kB / 1.376 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01226/0.5147, allocations: 4.081 MB / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.335e-06/0.5147, allocations: 0 / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.5147, allocations: 4 kB / 1.38 GB, free: 15.11 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.0005314/0.5153, allocations: 472.8 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.5153, allocations: 8.562 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.546e-05/0.5154, allocations: 15.91 kB / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.5155, allocations: 182.9 kB / 1.381 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.5156, allocations: 4 kB / 1.381 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.5157, allocations: 16 kB / 1.381 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.5158, allocations: 53.67 kB / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.5158, allocations: 4 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.5158, allocations: 0 / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.5159, allocations: 0 / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.318e-05/0.5159, allocations: 27.97 kB / 1.381 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.5165, allocations: 416.5 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.592e-05/0.5166, allocations: 26.58 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.5166, allocations: 0 / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.5168, allocations: 107.3 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.5168, allocations: 0 / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0003163/0.5171, allocations: 137.5 kB / 1.381 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.5172, allocations: 59.36 kB / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.5173, allocations: 127.4 kB / 1.382 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.5174, allocations: 29.7 kB / 1.382 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.274e-05/0.5174, allocations: 104.6 kB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.5175, allocations: 19.7 kB / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/0.5175, allocations: 8 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5176, allocations: 322.8 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.5178, allocations: 87.89 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.518, allocations: 138.8 kB / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.5182, allocations: 173 kB / 1.382 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.5183, allocations: 4 kB / 1.382 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000585/0.5188, allocations: 366.5 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.202e-05/0.5189, allocations: 101.3 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.519, allocations: 4 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.519, allocations: 7.938 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.863e-05/0.519, allocations: 11.88 kB / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.519, allocations: 4 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.5195, allocations: 107.8 kB / 1.383 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.5196, allocations: 19.98 kB / 1.383 GB, free: 11.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001313/0.5197, allocations: 125.8 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.5197, allocations: 7.906 kB / 1.383 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.5198, allocations: 16.36 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.5198, allocations: 0 / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.5198, allocations: 3.953 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5198, allocations: 0 / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.52, allocations: 185.6 kB / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.52, allocations: 0 / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.68e-05/0.52, allocations: 19.92 kB / 1.383 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.52, allocations: 0 / 1.383 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.52, allocations: 0 / 1.383 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.52, allocations: 4 kB / 1.383 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.52, allocations: 0 / 1.383 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.5202, allocations: 136.9 kB / 1.383 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.5203, allocations: 89.02 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.5203, allocations: 0 / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.196e-05/0.5203, allocations: 4 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.5204, allocations: 11.98 kB / 1.384 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.5204, allocations: 4 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.74e-05/0.5204, allocations: 95.27 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.21e-07/0.5204, allocations: 0 / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002808/0.5207, allocations: 55.94 kB / 1.384 GB, free: 10.86 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002192/0.521, allocations: 114.5 kB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004562/0.5214, allocations: 373.9 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5214, allocations: 0 / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 6.776e-05/0.5215, allocations: 43.91 kB / 1.384 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.5217, allocations: 20.95 kB / 1.384 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.5221, allocations: 207.9 kB / 1.384 GB, free: 10.04 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.5224, allocations: 0.6965 MB / 1.385 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.137e-05/0.5225, allocations: 8.438 kB / 1.385 GB, free: 9.305 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.496e-05/0.5225, allocations: 11.44 kB / 1.385 GB, free: 9.293 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5225, allocations: 4 kB / 1.385 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of Templates: time 0.0059/0.5284, allocations: 2.363 MB / 1.387 GB, free: 6.953 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches