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.009627/0.009627, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001711/0.001711, allocations: 196.7 kB / 16.68 MB, free: 5.953 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 / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.794/2.794, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001539, allocations: 71.88 kB / 1.054 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.262/1.263, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002181/1.265, allocations: 0.6931 MB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001855/1.267, allocations: 1.268 MB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/1.267, allocations: 0 / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.089e-05/1.268, allocations: 7.875 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001016/1.268, allocations: 19.84 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009116/1.269, allocations: 311.3 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003778/1.269, allocations: 279.5 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/1.269, allocations: 16.17 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/1.269, allocations: 103.8 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/1.27, allocations: 91.73 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/1.27, allocations: 24 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/1.27, allocations: 39.98 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.943e-05/1.27, allocations: 11.98 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001254/1.27, allocations: 87.73 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003121/1.27, allocations: 215.3 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.27, allocations: 4 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/1.27, allocations: 0 / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.464e-06/1.27, allocations: 0 / 1.211 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.0006767/1.271, allocations: 490.2 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.271, allocations: 8.031 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.846e-05/1.271, allocations: 20.84 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/1.271, allocations: 188.1 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/1.271, allocations: 8.375 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/1.271, allocations: 16.38 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/1.271, allocations: 54.23 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/1.271, allocations: 3.938 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/1.271, allocations: 4 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.86e-06/1.272, allocations: 0 / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.044e-05/1.272, allocations: 19.98 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/1.272, allocations: 416.5 kB / 1.212 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.421e-05/1.272, allocations: 26.58 kB / 1.212 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.478e-05/1.272, allocations: 20.94 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/1.272, allocations: 0 / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/1.273, allocations: 115.2 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/1.273, allocations: 0 / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003383/1.273, allocations: 145.4 kB / 1.212 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/1.273, allocations: 59.41 kB / 1.212 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/1.273, allocations: 132.2 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/1.273, allocations: 37.7 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.144e-05/1.273, allocations: 92.14 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/1.273, allocations: 19.7 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/1.273, allocations: 69.67 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.274, allocations: 322.8 kB / 1.213 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/1.274, allocations: 95.91 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/1.274, allocations: 135.5 kB / 1.213 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/1.274, allocations: 242.3 kB / 1.213 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/1.274, allocations: 0 / 1.213 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006052/1.275, allocations: 378.5 kB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.884e-05/1.275, allocations: 97.09 kB / 1.214 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/1.275, allocations: 4.188 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/1.275, allocations: 4 kB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.679e-05/1.275, allocations: 11.92 kB / 1.214 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/1.275, allocations: 4 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/1.275, allocations: 79.84 kB / 1.214 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/1.276, allocations: 23.98 kB / 1.214 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.000125/1.276, allocations: 128.2 kB / 1.214 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/1.276, allocations: 7.906 kB / 1.214 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/1.276, allocations: 20.3 kB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/1.276, allocations: 0 / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.276, allocations: 0 / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/1.276, allocations: 0 / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/1.276, allocations: 189.5 kB / 1.214 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.276, allocations: 0 / 1.214 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.448e-05/1.276, allocations: 15.98 kB / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/1.276, allocations: 0 / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/1.276, allocations: 0 / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.276, allocations: 0 / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.276, allocations: 4 kB / 1.214 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/1.276, allocations: 141.2 kB / 1.214 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/1.276, allocations: 88.95 kB / 1.215 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/1.276, allocations: 4 kB / 1.215 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.379e-05/1.276, allocations: 8 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.515e-05/1.276, allocations: 7.984 kB / 1.215 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/1.276, allocations: 4 kB / 1.215 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.319e-05/1.276, allocations: 95.27 kB / 1.215 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/1.276, allocations: 0 / 1.215 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002693/1.277, allocations: 47.98 kB / 1.215 GB, free: 6.059 MB / 0.9356 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.000169/1.277, allocations: 107.2 kB / 1.215 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004771/1.277, allocations: 370 kB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.277, allocations: 4 kB / 1.215 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.51e-05/1.277, allocations: 35.92 kB / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/1.278, allocations: 24.2 kB / 1.215 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/1.278, allocations: 192.9 kB / 1.215 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/1.278, allocations: 0.6963 MB / 1.216 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.846e-05/1.279, allocations: 16.41 kB / 1.216 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/1.279, allocations: 11.44 kB / 1.216 GB, free: 4.516 MB / 0.9356 GB Notification: Performance of SimCode: time 4.71e-07/1.279, allocations: 0 / 1.216 GB, free: 4.516 MB / 0.9356 GB Notification: Performance of Templates: time 0.006398/1.285, allocations: 2.622 MB / 1.219 GB, free: 1.922 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/jenkins/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