Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.387/2.387, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001179/0.001179, allocations: 180.1 kB / 492.3 MB, free: 0.6016 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.66/1.66, allocations: 221.3 MB / 0.7872 GB, free: 12.93 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.0009956/0.000996, allocations: 95.88 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.433e-05/4.45e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2644, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8973/1.162, allocations: 149.3 MB / 1.358 GB, free: 18.93 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/1.162, allocations: 70.86 kB / 1.358 GB, free: 18.93 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.011/1.173, allocations: 4.068 MB / 1.362 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.493e-06/1.173, allocations: 4 kB / 1.362 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.682e-06/1.173, allocations: 3.938 kB / 1.362 GB, free: 34.41 MB / 0.8386 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.0003317/1.173, allocations: 451.4 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/1.173, allocations: 9.125 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/1.173, allocations: 15.41 kB / 1.363 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.598e-05/1.174, allocations: 176.2 kB / 1.363 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/1.174, allocations: 7.719 kB / 1.363 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/1.174, allocations: 16.88 kB / 1.363 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/1.174, allocations: 53.45 kB / 1.363 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/1.174, allocations: 4 kB / 1.363 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/1.174, allocations: 1.312 kB / 1.363 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/1.174, allocations: 7.781 kB / 1.363 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.349e-05/1.174, allocations: 22.16 kB / 1.363 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004497/1.174, allocations: 411.3 kB / 1.363 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.848e-05/1.174, allocations: 31.23 kB / 1.363 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.072e-05/1.174, allocations: 23.92 kB / 1.363 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/1.174, allocations: 5.062 kB / 1.363 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/1.175, allocations: 96.62 kB / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/1.175, allocations: 0 / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002058/1.175, allocations: 112.7 kB / 1.364 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/1.175, allocations: 59.2 kB / 1.364 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.12e-05/1.175, allocations: 130.2 kB / 1.364 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/1.175, allocations: 33.58 kB / 1.364 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.082e-05/1.175, allocations: 97.61 kB / 1.364 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/1.175, allocations: 23.3 kB / 1.364 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/1.175, allocations: 3.906 kB / 1.364 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.922e-05/1.175, allocations: 321.6 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/1.175, allocations: 82.3 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/1.175, allocations: 143.3 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/1.176, allocations: 164.5 kB / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.176, allocations: 0 / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004558/1.176, allocations: 369.5 kB / 1.365 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/1.176, allocations: 102.5 kB / 1.365 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.176, allocations: 3.938 kB / 1.365 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/1.176, allocations: 3.844 kB / 1.365 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.053e-05/1.176, allocations: 3.938 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/1.176, allocations: 9.5 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004322/1.177, allocations: 111.5 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/1.177, allocations: 17.05 kB / 1.365 GB, free: 32.29 MB / 0.8386 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 () * 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 9.301e-05/1.177, allocations: 124.6 kB / 1.365 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/1.177, allocations: 7.75 kB / 1.365 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/1.177, allocations: 15.03 kB / 1.365 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/1.177, allocations: 3.812 kB / 1.365 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.177, allocations: 0 / 1.365 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.177, allocations: 7.953 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.675e-05/1.177, allocations: 184.5 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.177, allocations: 4 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-05/1.177, allocations: 10.77 kB / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/1.177, allocations: 0 / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/1.177, allocations: 0 / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.177, allocations: 0 / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/1.177, allocations: 0 / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/1.177, allocations: 146.4 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/1.177, allocations: 84.95 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/1.177, allocations: 0 / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.276e-05/1.177, allocations: 2.578 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/1.177, allocations: 9.562 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/1.177, allocations: 3.844 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.716e-05/1.177, allocations: 97.36 kB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.177, allocations: 0 / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002389/1.178, allocations: 56.36 kB / 1.366 GB, free: 31.71 MB / 0.8386 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 () * 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.0001262/1.178, allocations: 123 kB / 1.366 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003159/1.178, allocations: 358.2 kB / 1.366 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/1.178, allocations: 0 / 1.366 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/1.178, allocations: 45.42 kB / 1.366 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/1.178, allocations: 24.28 kB / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00021/1.179, allocations: 122.7 kB / 1.367 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/1.179, allocations: 0.6957 MB / 1.367 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.979e-05/1.179, allocations: 11.05 kB / 1.367 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.738e-05/1.179, allocations: 15.25 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.179, allocations: 0 / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.004017/1.183, allocations: 2.381 MB / 1.37 GB, free: 30.4 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches