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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001662/0.001662, allocations: 196 kB / 16.14 MB, free: 6.711 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.514/1.514, allocations: 222.9 MB / 239.8 MB, free: 4.664 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.591/2.591, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8328/0.8341, allocations: 140.3 MB / 0.9489 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002906/0.8371, allocations: 0.7713 MB / 0.9497 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.8391, allocations: 1.293 MB / 0.9509 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.591e-05/0.8392, allocations: 1.5 kB / 0.9509 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.307e-05/0.8392, allocations: 3.938 kB / 0.9509 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.132e-05/0.8393, allocations: 10.17 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009093/0.8402, allocations: 294.7 kB / 0.9512 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.8405, allocations: 223.5 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.8406, allocations: 18.64 kB / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.8408, allocations: 86.98 kB / 0.9516 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.8409, allocations: 75.58 kB / 0.9516 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.841, allocations: 12.97 kB / 0.9516 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.8411, allocations: 27.52 kB / 0.9517 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.511e-05/0.8411, allocations: 13.11 kB / 0.9517 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.8413, allocations: 75.42 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.8415, allocations: 210.5 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.8416, allocations: 0 / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8416, allocations: 1.094 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.8416, allocations: 0 / 0.9519 GB, free: 6.934 MB / 0.7169 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.0005703/0.8422, allocations: 0.4931 MB / 0.9524 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.8422, allocations: 10 kB / 0.9524 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.825e-05/0.8423, allocations: 11.5 kB / 0.9524 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.249e-05/0.8424, allocations: 184.5 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.8424, allocations: 6.469 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.8425, allocations: 20.94 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.8426, allocations: 55.77 kB / 0.9527 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.8426, allocations: 4.875 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.8426, allocations: 0 / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.8426, allocations: 1.25 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.015e-05/0.8427, allocations: 19.73 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.8432, allocations: 418.2 kB / 0.9531 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.101e-05/0.8433, allocations: 31.2 kB / 0.9532 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.378e-05/0.8433, allocations: 20.5 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.8433, allocations: 1.062 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.8435, allocations: 101 kB / 0.9533 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.8435, allocations: 1.062 kB / 0.9533 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003317/0.8439, allocations: 136.9 kB / 0.9534 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.8439, allocations: 66.66 kB / 0.9535 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.844, allocations: 133.5 kB / 0.9536 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.8441, allocations: 35.52 kB / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.8441, allocations: 104.1 kB / 0.9537 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.8442, allocations: 14.56 kB / 0.9537 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.8443, allocations: 66.55 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.8444, allocations: 325.5 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.8446, allocations: 86.02 kB / 0.9542 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.8448, allocations: 142.2 kB / 0.9543 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.8451, allocations: 238.9 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.8451, allocations: 0 / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006487/0.8458, allocations: 378 kB / 0.9549 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.8459, allocations: 96.72 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.8459, allocations: 1.438 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.8459, allocations: 2.406 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.962e-05/0.8459, allocations: 14.89 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.8459, allocations: 2.906 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000547/0.8465, allocations: 82.84 kB / 0.9551 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.8466, allocations: 25.89 kB / 0.9551 GB, free: 4.059 MB / 0.7169 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.0001222/0.8467, allocations: 138.2 kB / 0.9553 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.8467, allocations: 7.5 kB / 0.9553 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.8468, allocations: 9.844 kB / 0.9553 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.8468, allocations: 4.953 kB / 0.9553 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.8468, allocations: 1.438 kB / 0.9553 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.8468, allocations: 0 / 0.9553 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.8469, allocations: 193.3 kB / 0.9555 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.8469, allocations: 0 / 0.9555 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.238e-05/0.8469, allocations: 2.844 kB / 0.9555 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.847, allocations: 4 kB / 0.9555 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.847, allocations: 5.422 kB / 0.9555 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.847, allocations: 1.469 kB / 0.9555 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.847, allocations: 0 / 0.9555 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.8472, allocations: 140.8 kB / 0.9556 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.8473, allocations: 82.48 kB / 0.9557 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.8473, allocations: 9.391 kB / 0.9557 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.408e-05/0.8473, allocations: 1.219 kB / 0.9557 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.8474, allocations: 11.64 kB / 0.9557 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.8474, allocations: 8.156 kB / 0.9557 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.606e-05/0.8475, allocations: 96.16 kB / 0.9558 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8475, allocations: 0 / 0.9558 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003152/0.8478, allocations: 44.31 kB / 0.9559 GB, free: 3.371 MB / 0.7169 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.0001853/0.848, allocations: 112.6 kB / 0.956 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005083/0.8485, allocations: 365 kB / 0.9563 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.8485, allocations: 4.125 kB / 0.9563 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.887e-05/0.8486, allocations: 45 kB / 0.9564 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.8489, allocations: 19.14 kB / 0.9564 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.8493, allocations: 213.3 kB / 0.9566 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.8495, allocations: 0.6926 MB / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.404e-05/0.8496, allocations: 7.031 kB / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.8496, allocations: 15.89 kB / 0.9573 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.8496, allocations: 0 / 0.9573 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of Templates: time 0.007398/0.857, allocations: 2.502 MB / 0.9597 GB, free: 0.7695 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches