Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.596/1.596, allocations: 249.3 MB / 261.8 MB, free: 5.812 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001249/0.001249, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.000942/0.0009419, allocations: 91.09 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.569e-05/4.573e-05, allocations: 4 kB / 0.788 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2085, allocations: 106.3 MB / 0.8918 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6849/0.8934, allocations: 131.7 MB / 1.02 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.8937, allocations: 72.58 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003437/0.8972, allocations: 1.115 MB / 1.022 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8972, allocations: 0 / 1.022 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.8972, allocations: 0 / 1.022 GB, free: 1.984 MB / 0.6355 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.0005213/0.8978, allocations: 373.1 kB / 1.022 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.8978, allocations: 8.031 kB / 1.022 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.8979, allocations: 15.77 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.898, allocations: 177.1 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.8981, allocations: 7.938 kB / 1.022 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.8981, allocations: 4 kB / 1.022 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.8982, allocations: 60.73 kB / 1.022 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.8982, allocations: 3.984 kB / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.8983, allocations: 0 / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.8983, allocations: 0 / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.773e-05/0.8984, allocations: 30.36 kB / 1.022 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.8988, allocations: 294.6 kB / 1.022 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.704e-05/0.8989, allocations: 40.88 kB / 1.022 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.48e-05/0.899, allocations: 23.3 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.899, allocations: 2.734 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.8992, allocations: 61.12 kB / 1.023 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.8992, allocations: 0 / 1.023 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001902/0.8994, allocations: 79.59 kB / 1.023 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.8994, allocations: 59.36 kB / 1.023 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.095e-05/0.8995, allocations: 111.7 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.8995, allocations: 25.7 kB / 1.023 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.643e-05/0.8996, allocations: 90.58 kB / 1.023 GB, free: 460 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.8996, allocations: 21.77 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.8996, allocations: 0 / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.8998, allocations: 317.4 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.783e-05/0.8998, allocations: 15.88 kB / 1.023 GB, free: 108 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.761e-05/0.8999, allocations: 36.58 kB / 1.023 GB, free: 72 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.55e-05/0.8999, allocations: 14.94 kB / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8999, allocations: 0 / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001485/0.9001, allocations: 74.92 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.9001, allocations: 4 kB / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.9001, allocations: 0 / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.9001, allocations: 0 / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.9003, allocations: 27.97 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.9003, allocations: 0 / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.9004, allocations: 35.17 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.9005, allocations: 3.938 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.113e-05/0.9005, allocations: 110.5 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.9006, allocations: 11.91 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.69e-05/0.9006, allocations: 15.42 kB / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.9006, allocations: 0 / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.9006, allocations: 0 / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.9006, allocations: 4 kB / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.9008, allocations: 180.4 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.9008, allocations: 0 / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.9009, allocations: 23.97 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.9009, allocations: 4 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.9009, allocations: 0 / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.901, allocations: 0 / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.901, allocations: 0 / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.9011, allocations: 102.1 kB / 1.024 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.9012, allocations: 88.45 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.9012, allocations: 0 / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.9013, allocations: 32.09 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.9014, allocations: 11.42 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.9014, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.166e-05/0.9015, allocations: 95.36 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9015, allocations: 0 / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002259/0.9017, allocations: 15.81 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001402/0.9019, allocations: 99.25 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001322/0.902, allocations: 49.94 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.902, allocations: 0 / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.769e-05/0.9021, allocations: 23.31 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001711/0.9023, allocations: 14.05 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000282/0.9026, allocations: 103.8 kB / 1.024 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.9028, allocations: 0.6927 MB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.247e-05/0.9029, allocations: 4.188 kB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.9029, allocations: 7.438 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of SimCode: time 3e-07/0.9029, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of Templates: time 0.002777/0.9057, allocations: 0.8318 MB / 1.026 GB, free: 13.37 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches