Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 104 kB / 16.35 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 193.5 kB / 17.29 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.577/2.577, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 69.89 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3444, allocations: 151.6 MB / 1.019 GB, free: 9.84 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002178/0.3466, allocations: 0.7094 MB / 1.019 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.3483, allocations: 1.266 MB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.3484, allocations: 0 / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.628e-05/0.3485, allocations: 3.938 kB / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.018e-05/0.3486, allocations: 23.72 kB / 1.021 GB, free: 7.82 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008759/0.3495, allocations: 310 kB / 1.021 GB, free: 7.523 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.3499, allocations: 271.6 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.35, allocations: 20.17 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.3501, allocations: 99.86 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.3503, allocations: 91.73 kB / 1.022 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.3504, allocations: 24 kB / 1.022 GB, free: 7.023 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.726e-05/0.3505, allocations: 39.92 kB / 1.022 GB, free: 6.984 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.3505, allocations: 15.92 kB / 1.022 GB, free: 6.969 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.3507, allocations: 83.8 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.3509, allocations: 223.3 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3509, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of FrontEnd: time 7.61e-07/0.3509, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.351, allocations: 3.938 kB / 1.022 GB, free: 6.664 MB / 0.795 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.0005001/0.3515, allocations: 496.3 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.677e-05/0.3515, allocations: 8.031 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.289e-05/0.3516, allocations: 16.84 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.3517, allocations: 176.3 kB / 1.023 GB, free: 5.879 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.3517, allocations: 8.375 kB / 1.023 GB, free: 5.871 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.3518, allocations: 12.38 kB / 1.023 GB, free: 5.859 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.3519, allocations: 58.17 kB / 1.023 GB, free: 5.797 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3519, allocations: 3.938 kB / 1.023 GB, free: 5.793 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.352, allocations: 4 kB / 1.023 GB, free: 5.789 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.352, allocations: 4 kB / 1.023 GB, free: 5.785 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.122e-05/0.352, allocations: 23.98 kB / 1.023 GB, free: 5.762 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005552/0.3526, allocations: 416.4 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 6.705e-05/0.3527, allocations: 30.52 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.484e-05/0.3527, allocations: 24.92 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.3527, allocations: 0 / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.3529, allocations: 111.3 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 2.785e-06/0.3529, allocations: 0 / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0002974/0.3532, allocations: 137.5 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.3533, allocations: 59.34 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3534, allocations: 129.8 kB / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.3534, allocations: 37.7 kB / 1.024 GB, free: 4.727 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.973e-05/0.3535, allocations: 100 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.3535, allocations: 19.81 kB / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.3537, allocations: 65.67 kB / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3538, allocations: 322.8 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.354, allocations: 91.95 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.3542, allocations: 134 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.3545, allocations: 242.2 kB / 1.024 GB, free: 3.695 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3545, allocations: 3.938 kB / 1.024 GB, free: 3.691 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00056/0.3551, allocations: 382.5 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/0.3552, allocations: 97.09 kB / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.3552, allocations: 3.938 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3552, allocations: 4 kB / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.637e-05/0.3552, allocations: 3.984 kB / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3552, allocations: 7.938 kB / 1.025 GB, free: 3.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.3557, allocations: 87.94 kB / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.972e-05/0.3557, allocations: 15.98 kB / 1.025 GB, free: 3.059 MB / 0.795 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,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.3558, allocations: 129.8 kB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.3559, allocations: 11.89 kB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.3559, allocations: 12.38 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3559, allocations: 0 / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3559, allocations: 4 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3559, allocations: 0 / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.3561, allocations: 189.6 kB / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3561, allocations: 0 / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.341e-05/0.3561, allocations: 7.938 kB / 1.025 GB, free: 2.648 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3561, allocations: 0 / 1.025 GB, free: 2.648 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3561, allocations: 4 kB / 1.025 GB, free: 2.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.3561, allocations: 4 kB / 1.025 GB, free: 2.641 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3561, allocations: 0 / 1.025 GB, free: 2.641 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.3563, allocations: 140.9 kB / 1.026 GB, free: 2.484 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/0.3563, allocations: 88.95 kB / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.3564, allocations: 0 / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.767e-05/0.3564, allocations: 8 kB / 1.026 GB, free: 2.371 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.3564, allocations: 7.984 kB / 1.026 GB, free: 2.363 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3564, allocations: 0 / 1.026 GB, free: 2.363 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.228e-05/0.3565, allocations: 100.7 kB / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3565, allocations: 0 / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000257/0.3568, allocations: 47.98 kB / 1.026 GB, free: 2.219 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000145/0.3569, allocations: 109.1 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004394/0.3574, allocations: 369.9 kB / 1.026 GB, free: 1.707 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3574, allocations: 0 / 1.026 GB, free: 1.707 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.762e-05/0.3574, allocations: 47.95 kB / 1.026 GB, free: 1.66 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.3577, allocations: 36.28 kB / 1.026 GB, free: 1.625 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.3581, allocations: 183 kB / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3583, allocations: 0.6924 MB / 1.027 GB, free: 0.6953 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.549e-05/0.3584, allocations: 12.42 kB / 1.027 GB, free: 0.6836 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.3584, allocations: 15.44 kB / 1.027 GB, free: 0.668 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3584, allocations: 0 / 1.027 GB, free: 0.668 MB / 0.795 GB Notification: Performance of Templates: time 0.005422/0.3639, allocations: 2.618 MB / 1.03 GB, free: 14.08 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches