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.008447/0.008447, allocations: 102.3 kB / 15.73 MB, free: 6.066 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.001507/0.001508, allocations: 198.8 kB / 16.68 MB, free: 5.977 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.721/2.721, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 67.89 kB / 1.054 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168/1.169, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001921/1.171, allocations: 0.6993 MB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001537/1.173, allocations: 1.268 MB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.119e-05/1.173, allocations: 3.938 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/1.173, allocations: 3.938 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.602e-05/1.173, allocations: 19.84 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007924/1.174, allocations: 307.3 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003122/1.174, allocations: 279.6 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/1.174, allocations: 24.11 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/1.174, allocations: 99.8 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/1.174, allocations: 87.8 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/1.174, allocations: 24 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.801e-05/1.174, allocations: 39.97 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/1.174, allocations: 15.94 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/1.175, allocations: 83.73 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002484/1.175, allocations: 223.2 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/1.175, allocations: 0 / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.394e-06/1.175, allocations: 4 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.103e-06/1.175, allocations: 0 / 1.211 GB, free: 10.45 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.000592/1.175, allocations: 494.2 kB / 1.211 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/1.175, allocations: 12.03 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.798e-05/1.176, allocations: 12.84 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/1.176, allocations: 172.2 kB / 1.211 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/1.176, allocations: 8.375 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/1.176, allocations: 12.38 kB / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/1.176, allocations: 70.2 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.176, allocations: 3.938 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/1.176, allocations: 3.938 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/1.176, allocations: 0 / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.348e-05/1.176, allocations: 23.98 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005346/1.177, allocations: 404.6 kB / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.07e-05/1.177, allocations: 34.56 kB / 1.212 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.176e-05/1.177, allocations: 20.8 kB / 1.212 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/1.177, allocations: 4 kB / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/1.177, allocations: 99.34 kB / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/1.177, allocations: 0 / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0002961/1.177, allocations: 141.4 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/1.177, allocations: 55.41 kB / 1.212 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/1.177, allocations: 137.7 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/1.177, allocations: 37.7 kB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.325e-05/1.177, allocations: 100.2 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/1.177, allocations: 19.72 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/1.178, allocations: 65.67 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001209/1.178, allocations: 330.7 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/1.178, allocations: 91.89 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/1.178, allocations: 141.3 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/1.178, allocations: 231 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.178, allocations: 4 kB / 1.213 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005526/1.179, allocations: 378.4 kB / 1.214 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/1.179, allocations: 102.6 kB / 1.214 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/1.179, allocations: 0 / 1.214 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/1.179, allocations: 4 kB / 1.214 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.251e-05/1.179, allocations: 4 kB / 1.214 GB, free: 6.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.179, allocations: 0 / 1.214 GB, free: 6.965 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/1.18, allocations: 84.03 kB / 1.214 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/1.18, allocations: 15.98 kB / 1.214 GB, free: 6.867 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.0001042/1.18, allocations: 144.1 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/1.18, allocations: 3.906 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/1.18, allocations: 16.38 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/1.18, allocations: 4 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.18, allocations: 0 / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/1.18, allocations: 3.984 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/1.18, allocations: 201.5 kB / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.18, allocations: 0 / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.046e-06/1.18, allocations: 0 / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/1.18, allocations: 0 / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/1.18, allocations: 8 kB / 1.214 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/1.18, allocations: 0 / 1.214 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.18, allocations: 7.922 kB / 1.214 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/1.18, allocations: 141.3 kB / 1.214 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/1.18, allocations: 81.02 kB / 1.215 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/1.18, allocations: 11.92 kB / 1.215 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.21e-05/1.18, allocations: 4 kB / 1.215 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.229e-05/1.18, allocations: 4 kB / 1.215 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/1.18, allocations: 7.984 kB / 1.215 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.486e-05/1.18, allocations: 101.8 kB / 1.215 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/1.18, allocations: 4 kB / 1.215 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002625/1.181, allocations: 40 kB / 1.215 GB, free: 6.004 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.0001562/1.181, allocations: 109.1 kB / 1.215 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004501/1.181, allocations: 362 kB / 1.215 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/1.181, allocations: 3.938 kB / 1.215 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.775e-05/1.181, allocations: 39.98 kB / 1.215 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/1.182, allocations: 32.48 kB / 1.215 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/1.182, allocations: 190.8 kB / 1.215 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/1.182, allocations: 0.6924 MB / 1.216 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.096e-05/1.182, allocations: 8.438 kB / 1.216 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.425e-05/1.182, allocations: 19.44 kB / 1.216 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/1.182, allocations: 0 / 1.216 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of Templates: time 0.0058/1.188, allocations: 2.704 MB / 1.219 GB, free: 1.789 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