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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001535/0.001535, allocations: 108.6 kB / 16.41 MB, free: 6.387 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.001693/0.001693, allocations: 187.3 kB / 17.34 MB, free: 5.84 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.66/2.66, allocations: 472.7 MB / 0.746 GB, free: 452 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 75.81 kB / 1.07 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.032, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002759/1.035, allocations: 0.6862 MB / 1.227 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002573/1.038, allocations: 1.268 MB / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/1.038, allocations: 0 / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.467e-05/1.038, allocations: 11.88 kB / 1.228 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001604/1.038, allocations: 15.84 kB / 1.228 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001252/1.04, allocations: 313.5 kB / 1.229 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000577/1.04, allocations: 275.6 kB / 1.229 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/1.04, allocations: 20.17 kB / 1.229 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/1.041, allocations: 99.86 kB / 1.229 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/1.041, allocations: 91.73 kB / 1.229 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.872e-05/1.041, allocations: 27.98 kB / 1.229 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/1.041, allocations: 35.98 kB / 1.229 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/1.041, allocations: 11.94 kB / 1.229 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/1.041, allocations: 87.73 kB / 1.229 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00041/1.042, allocations: 215.9 kB / 1.229 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/1.042, allocations: 4 kB / 1.229 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.126e-06/1.042, allocations: 8 kB / 1.229 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.184e-05/1.042, allocations: 0 / 1.229 GB, free: 10.34 MB / 0.9512 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.0009155/1.043, allocations: 496.2 kB / 1.23 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/1.043, allocations: 12.02 kB / 1.23 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/1.043, allocations: 16.89 kB / 1.23 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/1.043, allocations: 174.7 kB / 1.23 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/1.043, allocations: 4.375 kB / 1.23 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/1.043, allocations: 20.38 kB / 1.23 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/1.043, allocations: 70.14 kB / 1.23 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/1.043, allocations: 7.938 kB / 1.23 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/1.043, allocations: 0 / 1.23 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/1.043, allocations: 4 kB / 1.23 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.071e-05/1.043, allocations: 15.98 kB / 1.23 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006685/1.044, allocations: 412.5 kB / 1.231 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.713e-05/1.044, allocations: 34.5 kB / 1.231 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.014e-05/1.044, allocations: 20.86 kB / 1.231 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/1.044, allocations: 4 kB / 1.231 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/1.044, allocations: 95.44 kB / 1.231 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 2.224e-06/1.044, allocations: 3.938 kB / 1.231 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0003569/1.045, allocations: 137.5 kB / 1.231 GB, free: 8.652 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/1.045, allocations: 55.41 kB / 1.231 GB, free: 8.586 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/1.045, allocations: 137.8 kB / 1.231 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/1.045, allocations: 33.7 kB / 1.231 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.394e-05/1.045, allocations: 104.2 kB / 1.231 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/1.045, allocations: 23.73 kB / 1.231 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/1.045, allocations: 65.67 kB / 1.231 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001857/1.046, allocations: 326.8 kB / 1.232 GB, free: 7.875 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/1.046, allocations: 87.95 kB / 1.232 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/1.046, allocations: 138 kB / 1.232 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/1.046, allocations: 227 kB / 1.232 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.567e-06/1.046, allocations: 8 kB / 1.232 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006966/1.047, allocations: 378.4 kB / 1.232 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.404e-05/1.047, allocations: 101.1 kB / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/1.047, allocations: 4 kB / 1.232 GB, free: 6.848 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/1.047, allocations: 0 / 1.232 GB, free: 6.848 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.943e-05/1.047, allocations: 8 kB / 1.233 GB, free: 6.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/1.047, allocations: 4 kB / 1.233 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004843/1.048, allocations: 83.98 kB / 1.233 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/1.048, allocations: 19.98 kB / 1.233 GB, free: 6.734 MB / 0.9512 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.000166/1.048, allocations: 134.2 kB / 1.233 GB, free: 6.594 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/1.048, allocations: 7.953 kB / 1.233 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/1.048, allocations: 12.38 kB / 1.233 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/1.048, allocations: 0 / 1.233 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/1.048, allocations: 3.984 kB / 1.233 GB, free: 6.566 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/1.048, allocations: 85.06 kB / 1.233 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/1.048, allocations: 3.984 kB / 1.233 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.084e-05/1.048, allocations: 11.94 kB / 1.233 GB, free: 6.449 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/1.048, allocations: 7.984 kB / 1.233 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000214/1.049, allocations: 185.2 kB / 1.233 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002476/1.049, allocations: 290.7 kB / 1.233 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.17e-05/1.049, allocations: 35.97 kB / 1.233 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.766e-05/1.049, allocations: 101.9 kB / 1.233 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of Backend: time 5.01e-07/1.049, allocations: 0 / 1.233 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008321/1.05, allocations: 420.4 kB / 1.234 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0008149/1.051, allocations: 0.644 MB / 1.234 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of Templates: time 0.006871/1.058, allocations: 2.663 MB / 1.237 GB, free: 2.039 MB / 0.9512 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