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.472/1.472, allocations: 249.5 MB / 257 MB, free: 6.914 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.001128/0.001128, allocations: 176.8 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0009339/0.0009336, allocations: 92.86 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.982e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1866, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6679/0.8545, allocations: 131.9 MB / 1.014 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.8548, allocations: 70.45 kB / 1.014 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003138/0.858, allocations: 1.11 MB / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.112e-06/0.858, allocations: 0 / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.858, allocations: 0 / 1.015 GB, free: 4.781 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.0004965/0.8585, allocations: 374.4 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.8585, allocations: 12.02 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.799e-05/0.8586, allocations: 7.906 kB / 1.016 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.8587, allocations: 174.9 kB / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.8588, allocations: 0 / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.8588, allocations: 4 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.362e-05/0.8589, allocations: 31.25 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.568e-05/0.859, allocations: 53.31 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.859, allocations: 0 / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.859, allocations: 3.5 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.859, allocations: 3.984 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003883/0.8594, allocations: 269.1 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.959e-05/0.8595, allocations: 34.33 kB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.059e-05/0.8596, allocations: 28.47 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.8596, allocations: 2.734 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.8597, allocations: 62.7 kB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.8597, allocations: 0 / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001897/0.8599, allocations: 69.09 kB / 1.016 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.86, allocations: 51.41 kB / 1.016 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.26e-05/0.8601, allocations: 112.6 kB / 1.016 GB, free: 3.422 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.8601, allocations: 25.7 kB / 1.016 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.8601, allocations: 87.89 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.8602, allocations: 19.59 kB / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.8602, allocations: 0 / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8603, allocations: 322.6 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.11e-05/0.8603, allocations: 15.69 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-05/0.8604, allocations: 29.97 kB / 1.017 GB, free: 2.93 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.975e-05/0.8604, allocations: 15.92 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8604, allocations: 0 / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001022/0.8605, allocations: 61.27 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.8606, allocations: 8 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.8606, allocations: 0 / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.8606, allocations: 0.5625 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.8607, allocations: 27.91 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.8608, allocations: 8.031 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.8609, allocations: 27.91 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.8609, allocations: 3.938 kB / 1.017 GB, free: 2.789 MB / 0.6355 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.502e-05/0.861, allocations: 112.9 kB / 1.017 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.861, allocations: 7.906 kB / 1.017 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.8611, allocations: 12.56 kB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8611, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.8611, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.8611, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.8612, allocations: 157.8 kB / 1.017 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.8612, allocations: 7.047 kB / 1.017 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.8613, allocations: 23.86 kB / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.8614, allocations: 0 / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/0.8614, allocations: 0 / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.8614, allocations: 8 kB / 1.017 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/0.8614, allocations: 3.938 kB / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.8615, allocations: 92.3 kB / 1.017 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.744e-05/0.8616, allocations: 85.02 kB / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.8616, allocations: 3.984 kB / 1.018 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.8617, allocations: 23.98 kB / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.8618, allocations: 11.86 kB / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.8618, allocations: 0 / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.311e-05/0.8618, allocations: 91.73 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8619, allocations: 0 / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001796/0.862, allocations: 12 kB / 1.018 GB, free: 2.102 MB / 0.6355 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.0001295/0.8622, allocations: 97.64 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.8623, allocations: 47.44 kB / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.8623, allocations: 0 / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.28e-05/0.8624, allocations: 19.81 kB / 1.018 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.8626, allocations: 18.58 kB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.8628, allocations: 103.2 kB / 1.018 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.8631, allocations: 0.6924 MB / 1.019 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.915e-05/0.8631, allocations: 192 / 1.019 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.8632, allocations: 11.44 kB / 1.019 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.8632, allocations: 3.938 kB / 1.019 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of Templates: time 0.00268/0.8658, allocations: 0.7603 MB / 1.019 GB, free: 356 kB / 0.6355 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