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.001589/0.001588, allocations: 119.5 kB / 16.42 MB, free: 6.488 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.001596/0.001596, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.626/1.626, allocations: 222.9 MB / 241.1 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.767/2.767, allocations: 469.4 MB / 0.7428 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 67.89 kB / 1.066 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218/1.22, allocations: 159.1 MB / 1.221 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.004396/1.224, allocations: 0.7785 MB / 1.222 GB, free: 1.613 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002464/1.227, allocations: 1.158 MB / 1.223 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.931e-05/1.227, allocations: 0 / 1.223 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.893e-05/1.227, allocations: 3.938 kB / 1.223 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001425/1.227, allocations: 15.86 kB / 1.223 GB, free: 432 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006734/1.228, allocations: 130.7 kB / 1.223 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002693/1.228, allocations: 139.7 kB / 1.223 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/1.228, allocations: 15.94 kB / 1.223 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/1.228, allocations: 51.91 kB / 1.223 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/1.229, allocations: 55.8 kB / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/1.229, allocations: 12 kB / 1.223 GB, free: 28 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/1.229, allocations: 23.98 kB / 1.223 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.419e-05/1.229, allocations: 16 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/1.229, allocations: 47.75 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/1.229, allocations: 123.6 kB / 1.223 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/1.229, allocations: 0 / 1.223 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.209e-06/1.229, allocations: 0 / 1.223 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.963e-06/1.229, allocations: 3.938 kB / 1.223 GB, free: 15.82 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.001131/1.23, allocations: 422.7 kB / 1.224 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.76e-05/1.231, allocations: 8.031 kB / 1.224 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/1.231, allocations: 8.844 kB / 1.224 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/1.231, allocations: 184.2 kB / 1.224 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/1.231, allocations: 4.375 kB / 1.224 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/1.231, allocations: 8.375 kB / 1.224 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/1.231, allocations: 74.2 kB / 1.224 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/1.231, allocations: 4.125 kB / 1.224 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/1.231, allocations: 11.94 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/1.231, allocations: 0 / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/1.232, allocations: 67.92 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007303/1.233, allocations: 332.6 kB / 1.225 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/1.233, allocations: 58.48 kB / 1.225 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/1.233, allocations: 44.91 kB / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/1.233, allocations: 0 / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004533/1.233, allocations: 95.34 kB / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 3.987e-06/1.233, allocations: 0 / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0007379/1.234, allocations: 165.5 kB / 1.225 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/1.234, allocations: 55.34 kB / 1.225 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/1.234, allocations: 135.5 kB / 1.225 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/1.234, allocations: 29.7 kB / 1.225 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.641e-05/1.235, allocations: 92.14 kB / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/1.235, allocations: 11.8 kB / 1.225 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.375e-05/1.235, allocations: 37.7 kB / 1.225 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001662/1.235, allocations: 314.8 kB / 1.226 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/1.235, allocations: 59.95 kB / 1.226 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/1.235, allocations: 82.52 kB / 1.226 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/1.236, allocations: 148.1 kB / 1.226 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.236, allocations: 0 / 1.226 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000591/1.236, allocations: 215.4 kB / 1.226 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/1.236, allocations: 37.69 kB / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.236, allocations: 4.062 kB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/1.236, allocations: 4 kB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/1.237, allocations: 20.05 kB / 1.226 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/1.237, allocations: 0 / 1.226 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/1.237, allocations: 39.95 kB / 1.226 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/1.237, allocations: 7.984 kB / 1.226 GB, free: 12.82 MB / 0.9512 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.0001337/1.237, allocations: 122.3 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.844e-05/1.237, allocations: 11.84 kB / 1.226 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.698e-05/1.237, allocations: 16.38 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/1.237, allocations: 3.938 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.237, allocations: 0 / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.226e-05/1.237, allocations: 85 kB / 1.226 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/1.237, allocations: 0 / 1.226 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/1.237, allocations: 11.98 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/1.237, allocations: 15.92 kB / 1.226 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005034/1.238, allocations: 208.9 kB / 1.227 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005421/1.239, allocations: 294.6 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001793/1.239, allocations: 51.95 kB / 1.227 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.102e-05/1.239, allocations: 94.52 kB / 1.227 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of Backend: time 8.22e-07/1.239, allocations: 0 / 1.227 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008634/1.24, allocations: 235.9 kB / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0008138/1.241, allocations: 0.6084 MB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of Templates: time 0.005585/1.246, allocations: 1.766 MB / 1.23 GB, free: 9.23 MB / 0.9512 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