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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001662/0.001662, allocations: 108.4 kB / 16.41 MB, free: 6.438 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.001949/0.00195, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.444/2.444, allocations: 437.1 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 63.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.069/1.071, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002656/1.073, allocations: 0.707 MB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002362/1.076, allocations: 1.271 MB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.388e-05/1.076, allocations: 0 / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.67e-05/1.076, allocations: 3.938 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.869e-05/1.076, allocations: 11.88 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001123/1.077, allocations: 312.8 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004404/1.078, allocations: 275.5 kB / 1.17 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/1.078, allocations: 20.17 kB / 1.17 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/1.078, allocations: 99.86 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/1.078, allocations: 91.73 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/1.078, allocations: 20 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/1.078, allocations: 39.98 kB / 1.17 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/1.078, allocations: 15.92 kB / 1.17 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001399/1.079, allocations: 83.8 kB / 1.17 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003783/1.079, allocations: 227.2 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/1.079, allocations: 4 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.543e-06/1.079, allocations: 0 / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.621e-06/1.079, allocations: 0 / 1.17 GB, free: 0.6719 MB / 0.8887 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.0007756/1.08, allocations: 498.2 kB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/1.08, allocations: 11.97 kB / 1.171 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/1.08, allocations: 20.78 kB / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/1.08, allocations: 176.2 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/1.08, allocations: 4.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.922e-05/1.08, allocations: 20.38 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/1.08, allocations: 58.23 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/1.08, allocations: 7.875 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/1.08, allocations: 0 / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/1.08, allocations: 0 / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.332e-05/1.081, allocations: 19.98 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007649/1.081, allocations: 416.6 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 9.184e-05/1.081, allocations: 26.58 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.294e-05/1.081, allocations: 32.88 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-06/1.082, allocations: 0 / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/1.082, allocations: 103.3 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.884e-06/1.082, allocations: 0 / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004326/1.082, allocations: 137.5 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/1.082, allocations: 55.41 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/1.082, allocations: 139.8 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/1.083, allocations: 33.7 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/1.083, allocations: 96.14 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.307e-05/1.083, allocations: 23.7 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/1.083, allocations: 69.61 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001771/1.083, allocations: 326.8 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003063/1.083, allocations: 83.95 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003514/1.084, allocations: 141.9 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/1.084, allocations: 232.4 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/1.084, allocations: 4 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009295/1.085, allocations: 372.8 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.000104/1.085, allocations: 97.09 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/1.085, allocations: 4 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/1.085, allocations: 0 / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.281e-05/1.085, allocations: 15.92 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/1.085, allocations: 4 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006967/1.086, allocations: 76.03 kB / 1.174 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/1.086, allocations: 31.91 kB / 1.174 GB, free: 13.07 MB / 0.9044 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.000163/1.086, allocations: 125.8 kB / 1.174 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/1.086, allocations: 15.84 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/1.086, allocations: 12.36 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/1.086, allocations: 4 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/1.086, allocations: 0 / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/1.086, allocations: 0 / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/1.087, allocations: 197.5 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.087, allocations: 0 / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/1.087, allocations: 3.984 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/1.087, allocations: 4 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/1.087, allocations: 0 / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/1.087, allocations: 3.938 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.087, allocations: 4 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/1.087, allocations: 136.9 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/1.087, allocations: 88.95 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/1.087, allocations: 4 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.112e-05/1.087, allocations: 4 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/1.087, allocations: 11.98 kB / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/1.087, allocations: 4 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.737e-05/1.087, allocations: 99.27 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/1.087, allocations: 0 / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004741/1.088, allocations: 51.98 kB / 1.174 GB, free: 12.21 MB / 0.9044 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.0002271/1.088, allocations: 103.2 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006976/1.089, allocations: 365.9 kB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/1.089, allocations: 0 / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/1.089, allocations: 44.39 kB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/1.089, allocations: 19.98 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005532/1.09, allocations: 223.7 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/1.09, allocations: 0.6924 MB / 1.176 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.47e-05/1.09, allocations: 19.42 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of SimCode: time 3.2e-07/1.09, allocations: 4 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of Templates: time 0.004878/1.095, allocations: 1.883 MB / 1.178 GB, free: 8.797 MB / 0.9044 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 -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