Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001587/0.001587, allocations: 112.4 kB / 16.42 MB, free: 6.504 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.001698/0.001698, allocations: 187.9 kB / 17.34 MB, free: 5.738 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.476/1.476, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 71.88 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.117/1.119, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.003624/1.123, allocations: 0.6895 MB / 1.209 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002187/1.125, allocations: 1.272 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.149e-05/1.125, allocations: 3.938 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.292e-05/1.125, allocations: 3.938 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001209/1.125, allocations: 19.78 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009897/1.126, allocations: 313.5 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003716/1.127, allocations: 279.5 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/1.127, allocations: 16.19 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/1.127, allocations: 99.86 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/1.127, allocations: 95.72 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/1.127, allocations: 24 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/1.127, allocations: 35.94 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/1.127, allocations: 15.92 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001405/1.127, allocations: 83.8 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003202/1.128, allocations: 215.3 kB / 1.212 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/1.128, allocations: 0 / 1.212 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.345e-06/1.128, allocations: 4 kB / 1.212 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.163e-06/1.128, allocations: 0 / 1.212 GB, free: 10.51 MB / 0.9356 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.0008041/1.129, allocations: 494.1 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/1.129, allocations: 8.031 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.677e-05/1.129, allocations: 20.83 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/1.129, allocations: 180.2 kB / 1.212 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/1.129, allocations: 4.375 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/1.129, allocations: 20.36 kB / 1.212 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/1.129, allocations: 58.17 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/1.129, allocations: 3.938 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/1.129, allocations: 3.984 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/1.129, allocations: 8 kB / 1.212 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.131e-05/1.129, allocations: 16 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006873/1.13, allocations: 416.6 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.595e-05/1.13, allocations: 34.5 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.276e-05/1.13, allocations: 16.86 kB / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/1.13, allocations: 0 / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/1.13, allocations: 115.3 kB / 1.213 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/1.13, allocations: 0 / 1.213 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003547/1.131, allocations: 137.5 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/1.131, allocations: 55.34 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/1.131, allocations: 139.1 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/1.131, allocations: 33.7 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.962e-05/1.131, allocations: 96.12 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/1.131, allocations: 23.72 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/1.131, allocations: 65.67 kB / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001781/1.131, allocations: 326.8 kB / 1.214 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/1.132, allocations: 87.91 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/1.132, allocations: 134 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/1.132, allocations: 242.9 kB / 1.214 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/1.132, allocations: 4 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006314/1.133, allocations: 374.1 kB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.019e-05/1.133, allocations: 105.1 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/1.133, allocations: 4 kB / 1.215 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/1.133, allocations: 0 / 1.215 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.15e-05/1.133, allocations: 4 kB / 1.215 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/1.133, allocations: 7.938 kB / 1.215 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/1.134, allocations: 80.03 kB / 1.215 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/1.134, allocations: 23.92 kB / 1.215 GB, free: 6.902 MB / 0.9356 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.0001537/1.134, allocations: 136 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/1.134, allocations: 7.906 kB / 1.215 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/1.134, allocations: 8.375 kB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/1.134, allocations: 0 / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.134, allocations: 4 kB / 1.215 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/1.134, allocations: 85.02 kB / 1.215 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/1.134, allocations: 3.984 kB / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.548e-05/1.134, allocations: 7.938 kB / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/1.134, allocations: 11.98 kB / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002034/1.134, allocations: 181.2 kB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002186/1.135, allocations: 286.6 kB / 1.215 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.488e-05/1.135, allocations: 35.98 kB / 1.215 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.676e-05/1.135, allocations: 101.6 kB / 1.216 GB, free: 6 MB / 0.9356 GB Notification: Performance of Backend: time 3.4e-07/1.135, allocations: 3.938 kB / 1.216 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007427/1.135, allocations: 413.9 kB / 1.216 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006307/1.136, allocations: 0.6402 MB / 1.217 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of Templates: time 0.005994/1.142, allocations: 2.755 MB / 1.219 GB, free: 2.141 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches