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.001033/0.001033, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001131/0.001131, allocations: 191.8 kB / 16.14 MB, free: 6.734 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.421/1.421, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.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.659/2.659, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.89 kB / 0.8685 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7444/0.7457, allocations: 151.6 MB / 1.017 GB, free: 2.824 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002067/0.7478, allocations: 0.7716 MB / 1.017 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001637/0.7494, allocations: 1.3 MB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.7495, allocations: 4 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.307e-05/0.7496, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.969e-05/0.7497, allocations: 15.86 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008488/0.7505, allocations: 288.1 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.7508, allocations: 219.7 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.7509, allocations: 24.16 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.7511, allocations: 95.73 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.7512, allocations: 71.77 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 5.28e-05/0.7513, allocations: 12 kB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.617e-05/0.7514, allocations: 27.98 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.7514, allocations: 12.06 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.7515, allocations: 75.66 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.7518, allocations: 209.4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.7518, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7518, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.7518, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 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.00057/0.7524, allocations: 492.2 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.7525, allocations: 11.97 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.7526, allocations: 16.84 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.7527, allocations: 176.3 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.7527, allocations: 12.38 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.7528, allocations: 12.38 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.7529, allocations: 62.17 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.7529, allocations: 3.938 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.7529, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.7529, allocations: 4 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.736e-05/0.753, allocations: 19.98 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.7535, allocations: 412.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.761e-05/0.7536, allocations: 34.52 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.655e-05/0.7536, allocations: 24.94 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.7537, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.7538, allocations: 99.25 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 2.725e-06/0.7538, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003038/0.7541, allocations: 141.5 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.7542, allocations: 59.41 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.7543, allocations: 137.8 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.7543, allocations: 33.7 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.7544, allocations: 104 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.7544, allocations: 11.81 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.7546, allocations: 69.67 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.7547, allocations: 322.8 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.7549, allocations: 87.95 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.7551, allocations: 134 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.7554, allocations: 239 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7554, allocations: 3.938 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006166/0.756, allocations: 380.1 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.964e-05/0.7561, allocations: 97.09 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.7561, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.7561, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.512e-05/0.7562, allocations: 11.92 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.7562, allocations: 12.12 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.7567, allocations: 79.75 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.7568, allocations: 19.98 kB / 1.023 GB, free: 12.11 MB / 0.7794 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.0001204/0.7569, allocations: 140.1 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.7569, allocations: 7.906 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.7569, allocations: 16.36 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.7569, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.757, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.757, allocations: 4 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.7571, allocations: 189.6 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7571, allocations: 0 / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.42e-05/0.7571, allocations: 7.938 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.7571, allocations: 0 / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.7572, allocations: 3.984 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7572, allocations: 4 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.7572, allocations: 4 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.7574, allocations: 136.9 kB / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.7574, allocations: 85.02 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.7574, allocations: 3.984 kB / 1.023 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.337e-05/0.7574, allocations: 0 / 1.023 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.7575, allocations: 11.98 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-06/0.7575, allocations: 4 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.144e-05/0.7576, allocations: 101.5 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7576, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000277/0.7578, allocations: 44 kB / 1.024 GB, free: 11.27 MB / 0.7794 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.000157/0.758, allocations: 107.2 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004663/0.7585, allocations: 374 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7585, allocations: 384 / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.626e-05/0.7586, allocations: 47.91 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.7588, allocations: 21.64 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.7592, allocations: 208.6 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.7595, allocations: 0.6926 MB / 1.025 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.866e-05/0.7595, allocations: 8.438 kB / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.7596, allocations: 15.42 kB / 1.025 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7596, allocations: 0 / 1.025 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of Templates: time 0.005723/0.7653, allocations: 2.496 MB / 1.027 GB, free: 7.242 MB / 0.7794 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/jenkins/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