Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 98.56 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 185.9 kB / 16.92 MB, free: 6.75 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.9 MB / 0.667 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003996/0.0003997, allocations: 12 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7269/0.7274, allocations: 142.4 MB / 0.9557 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.0009023/0.7283, allocations: 0.5095 MB / 0.9562 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.7296, allocations: 1.138 MB / 0.9573 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.7296, allocations: 1.25 kB / 0.9573 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.017e-05/0.7296, allocations: 3.938 kB / 0.9573 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.84e-05/0.7297, allocations: 9.047 kB / 0.9574 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.7301, allocations: 117.5 kB / 0.9575 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.7303, allocations: 118.2 kB / 0.9576 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.7304, allocations: 14.89 kB / 0.9576 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.862e-05/0.7305, allocations: 48.8 kB / 0.9576 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.926e-05/0.7306, allocations: 39.36 kB / 0.9577 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.7306, allocations: 6.562 kB / 0.9577 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.39e-05/0.7307, allocations: 23.2 kB / 0.9577 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.7307, allocations: 11.23 kB / 0.9577 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.7308, allocations: 69.3 kB / 0.9578 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.7309, allocations: 79.23 kB / 0.9579 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7309, allocations: 0 / 0.9579 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7309, allocations: 0 / 0.9579 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.556e-06/0.7309, allocations: 0 / 0.9579 GB, free: 5.984 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.0005296/0.7315, allocations: 423 kB / 0.9583 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.7315, allocations: 9.188 kB / 0.9583 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.147e-05/0.7316, allocations: 10.19 kB / 0.9583 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.874e-05/0.7317, allocations: 180 kB / 0.9584 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.7317, allocations: 3.406 kB / 0.9585 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.7317, allocations: 10.7 kB / 0.9585 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.732, allocations: 94.08 kB / 0.9586 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.732, allocations: 192 / 0.9586 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.732, allocations: 3.938 kB / 0.9586 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.732, allocations: 0 / 0.9586 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.7323, allocations: 90.45 kB / 0.9586 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.7327, allocations: 334.4 kB / 0.959 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.7329, allocations: 69.31 kB / 0.959 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.7331, allocations: 55.06 kB / 0.9591 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.7331, allocations: 1.688 kB / 0.9591 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.7334, allocations: 109.8 kB / 0.9592 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.7334, allocations: 0 / 0.9592 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006199/0.734, allocations: 195.7 kB / 0.9594 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.7341, allocations: 52.81 kB / 0.9594 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.7342, allocations: 121.4 kB / 0.9595 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.7342, allocations: 36.23 kB / 0.9596 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.7342, allocations: 99.91 kB / 0.9597 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.7343, allocations: 10.22 kB / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.7343, allocations: 22.16 kB / 0.9597 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.163e-05/0.7344, allocations: 325.7 kB / 0.96 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.7346, allocations: 72.97 kB / 0.9601 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.7348, allocations: 90.91 kB / 0.9602 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.7352, allocations: 165 kB / 0.9603 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7352, allocations: 1.375 kB / 0.9603 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005119/0.7357, allocations: 242.5 kB / 0.9606 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.7358, allocations: 36.58 kB / 0.9606 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.7358, allocations: 1.375 kB / 0.9606 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.7358, allocations: 1.375 kB / 0.9606 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.7359, allocations: 28.41 kB / 0.9606 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.7359, allocations: 5.375 kB / 0.9606 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.7362, allocations: 47.7 kB / 0.9607 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.7362, allocations: 9.5 kB / 0.9607 GB, free: 3.57 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 7.551e-05/0.7363, allocations: 131.2 kB / 0.9608 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.7363, allocations: 8.031 kB / 0.9608 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.621e-05/0.7364, allocations: 5.75 kB / 0.9608 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.7364, allocations: 0 / 0.9608 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.7364, allocations: 1.375 kB / 0.9608 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.7364, allocations: 0 / 0.9608 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.707e-05/0.7365, allocations: 182 kB / 0.961 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.7365, allocations: 5.359 kB / 0.961 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.7366, allocations: 23.11 kB / 0.961 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.7366, allocations: 0 / 0.961 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.7366, allocations: 5.375 kB / 0.961 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.7366, allocations: 0 / 0.961 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7367, allocations: 5.312 kB / 0.961 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.7371, allocations: 171.5 kB / 0.9612 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.944e-05/0.7371, allocations: 79.86 kB / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.7371, allocations: 9.344 kB / 0.9613 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.413e-05/0.7372, allocations: 23.94 kB / 0.9613 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.7373, allocations: 2.375 kB / 0.9613 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.7373, allocations: 1.219 kB / 0.9613 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.019e-05/0.7373, allocations: 99.52 kB / 0.9614 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7374, allocations: 0 / 0.9614 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002269/0.7376, allocations: 32.08 kB / 0.9614 GB, free: 2.871 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked 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 (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.0001544/0.7377, allocations: 104.1 kB / 0.9615 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004953/0.7382, allocations: 213.1 kB / 0.9617 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.7383, allocations: 96 / 0.9617 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.7385, allocations: 65.8 kB / 0.9618 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.7387, allocations: 21.7 kB / 0.9618 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.739, allocations: 207.1 kB / 0.962 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.7392, allocations: 0.6927 MB / 0.9627 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.7392, allocations: 10.59 kB / 0.9627 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7392, allocations: 0 / 0.9627 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of Templates: time 0.002851/0.7421, allocations: 1.279 MB / 0.9639 GB, free: 1.062 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches