Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001724/0.001724, allocations: 109.2 kB / 16.41 MB, free: 6.512 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.001708/0.001708, allocations: 192.3 kB / 17.35 MB, free: 5.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.433/1.433, 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 9.1.3-maint.9.1.x/package.mo): time 2.362/2.362, allocations: 390.3 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 63.89 kB / 0.9516 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9777/0.9793, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002049/0.9814, allocations: 0.7061 MB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002033/0.9834, allocations: 1.272 MB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.094e-05/0.9835, allocations: 1.125 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.051e-05/0.9835, allocations: 8.953 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.9837, allocations: 22.88 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.9848, allocations: 314.9 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005209/0.9854, allocations: 276.3 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.9855, allocations: 18.06 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.9858, allocations: 99.86 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.986, allocations: 92.11 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.587e-05/0.9861, allocations: 22.84 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.9862, allocations: 35.45 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.114e-05/0.9863, allocations: 15.67 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.9865, allocations: 91.48 kB / 1.092 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.9869, allocations: 217.1 kB / 1.092 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.987, allocations: 0 / 1.092 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.106e-06/0.987, allocations: 0.8125 kB / 1.092 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.987, allocations: 4 kB / 1.092 GB, free: 3.664 MB / 0.8575 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.000753/0.9877, allocations: 488.4 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.9878, allocations: 9.344 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.664e-05/0.9879, allocations: 23.55 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.988, allocations: 176.4 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.9881, allocations: 8.438 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/0.9882, allocations: 13.39 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.9883, allocations: 60.2 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.9884, allocations: 3.938 kB / 1.092 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.9884, allocations: 6.672 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.9884, allocations: 0.6875 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.36e-05/0.9885, allocations: 21.86 kB / 1.093 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007627/0.9892, allocations: 416.7 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.004e-05/0.9893, allocations: 30.28 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.295e-05/0.9894, allocations: 18.86 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.9894, allocations: 3.938 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.9897, allocations: 109.2 kB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.9897, allocations: 0 / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004051/0.9901, allocations: 138 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.9902, allocations: 54.8 kB / 1.093 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.9903, allocations: 132 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.639e-05/0.9903, allocations: 35.34 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.284e-05/0.9904, allocations: 101.2 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.9905, allocations: 20.58 kB / 1.094 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.9906, allocations: 68.27 kB / 1.094 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.9907, allocations: 323.5 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.991, allocations: 87.83 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.9913, allocations: 132.9 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.9916, allocations: 244.7 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.9916, allocations: 1.156 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007444/0.9923, allocations: 376 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.348e-05/0.9924, allocations: 97.94 kB / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.9924, allocations: 1.75 kB / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.9925, allocations: 2.594 kB / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.141e-05/0.9925, allocations: 7.734 kB / 1.095 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.9925, allocations: 3.203 kB / 1.095 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.9931, allocations: 87.58 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.163e-05/0.9932, allocations: 17.92 kB / 1.095 GB, free: 1.094 MB / 0.8575 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.0001243/0.9933, allocations: 134.9 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.9933, allocations: 9.438 kB / 1.095 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.269e-05/0.9933, allocations: 10.58 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.9934, allocations: 4.609 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.9934, allocations: 1.516 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.9934, allocations: 84.09 kB / 1.095 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.9934, allocations: 1.906 kB / 1.095 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.624e-05/0.9935, allocations: 5.609 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.9935, allocations: 10.67 kB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002438/0.9938, allocations: 187.1 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002639/0.994, allocations: 290.8 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.646e-05/0.9941, allocations: 35.39 kB / 1.096 GB, free: 468 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.754e-05/0.9942, allocations: 97.95 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of Backend: time 8.72e-07/0.9942, allocations: 4.125 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008699/0.9951, allocations: 421.6 kB / 1.096 GB, free: 56 kB / 0.8575 GB Notification: Performance of SimCode: time 0.0006799/0.9958, allocations: 0.6376 MB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of Templates: time 0.008027/1.004, allocations: 2.675 MB / 1.099 GB, free: 15.18 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches