Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 116.2 kB / 16.42 MB, free: 6.02 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.001139/0.00114, allocations: 185.6 kB / 17.35 MB, free: 5.633 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.425/1.425, allocations: 222.9 MB / 241 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.707/2.707, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 68.02 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1/1.002, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002079/1.004, allocations: 0.7856 MB / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001422/1.005, allocations: 1.151 MB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.035e-05/1.006, allocations: 4 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/1.006, allocations: 3.938 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.054e-05/1.006, allocations: 7.875 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005438/1.006, allocations: 142.8 kB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002211/1.006, allocations: 135.7 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/1.007, allocations: 19.95 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/1.007, allocations: 55.88 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/1.007, allocations: 51.81 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/1.007, allocations: 8 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/1.007, allocations: 27.98 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/1.007, allocations: 7.938 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.968e-05/1.007, allocations: 47.83 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/1.007, allocations: 123.7 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.007, allocations: 0 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.462e-06/1.007, allocations: 4 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.411e-06/1.007, allocations: 0 / 1.211 GB, free: 11.07 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.0007026/1.008, allocations: 418.7 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/1.008, allocations: 11.97 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.722e-05/1.008, allocations: 12.84 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/1.008, allocations: 176.2 kB / 1.212 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/1.008, allocations: 8.375 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/1.008, allocations: 8.375 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/1.009, allocations: 78.19 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/1.009, allocations: 192 / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/1.009, allocations: 3.938 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.009, allocations: 4 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/1.009, allocations: 71.91 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004689/1.009, allocations: 332.7 kB / 1.212 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/1.01, allocations: 50.53 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/1.01, allocations: 44.91 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/1.01, allocations: 8 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/1.01, allocations: 99.28 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/1.01, allocations: 3.938 kB / 1.212 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0006221/1.011, allocations: 165.5 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/1.011, allocations: 51.41 kB / 1.212 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/1.011, allocations: 126 kB / 1.213 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/1.011, allocations: 29.7 kB / 1.213 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/1.011, allocations: 96.05 kB / 1.213 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/1.011, allocations: 11.81 kB / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/1.011, allocations: 37.62 kB / 1.213 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001176/1.011, allocations: 318.8 kB / 1.213 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/1.011, allocations: 67.94 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/1.012, allocations: 74.47 kB / 1.213 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/1.012, allocations: 156.2 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.012, allocations: 0 / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005165/1.013, allocations: 215.2 kB / 1.214 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/1.013, allocations: 33.7 kB / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/1.013, allocations: 0 / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.013, allocations: 0 / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/1.013, allocations: 23.91 kB / 1.214 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/1.013, allocations: 0 / 1.214 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/1.013, allocations: 39.95 kB / 1.214 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/1.013, allocations: 8 kB / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001028/1.013, allocations: 129.7 kB / 1.214 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/1.013, allocations: 7.906 kB / 1.214 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.242e-05/1.013, allocations: 8.375 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/1.013, allocations: 0 / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.013, allocations: 0 / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/1.013, allocations: 85.02 kB / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/1.013, allocations: 0 / 1.214 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.29e-05/1.013, allocations: 19.95 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/1.013, allocations: 11.94 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004673/1.014, allocations: 208.8 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004204/1.014, allocations: 299.2 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001774/1.015, allocations: 43.95 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.484e-05/1.015, allocations: 99.02 kB / 1.215 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of Backend: time 5.21e-07/1.015, allocations: 0 / 1.215 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007212/1.015, allocations: 237.7 kB / 1.215 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005748/1.016, allocations: 0.6139 MB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of Templates: time 0.00436/1.02, allocations: 1.74 MB / 1.217 GB, free: 4.492 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches