Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 112.7 kB / 16.42 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.001636/0.001636, allocations: 190.7 kB / 17.35 MB, free: 5.73 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.382/1.382, allocations: 222.9 MB / 241.1 MB, free: 15.2 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.26/2.26, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 75.88 kB / 0.9516 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194/1.196, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002432/1.198, allocations: 0.7838 MB / 1.089 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001673/1.2, allocations: 1.134 MB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.202e-05/1.2, allocations: 1.219 kB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.39e-05/1.2, allocations: 8.812 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.346e-05/1.2, allocations: 19.03 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/1.201, allocations: 130.1 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002256/1.201, allocations: 135.5 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/1.201, allocations: 13.3 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/1.201, allocations: 54.19 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/1.202, allocations: 53.03 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.35e-05/1.202, allocations: 11.25 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.951e-05/1.202, allocations: 21.77 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.245e-05/1.202, allocations: 13.62 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.805e-05/1.202, allocations: 54.73 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002677/1.202, allocations: 120.4 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/1.202, allocations: 0.8438 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/1.202, allocations: 0 / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.075e-05/1.202, allocations: 0 / 1.091 GB, free: 3.898 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.0007301/1.203, allocations: 428.3 kB / 1.092 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/1.203, allocations: 8.812 kB / 1.092 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.335e-05/1.203, allocations: 11.72 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.998e-05/1.203, allocations: 180.5 kB / 1.092 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/1.203, allocations: 4.031 kB / 1.092 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/1.203, allocations: 11.61 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/1.203, allocations: 78.83 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/1.203, allocations: 4.125 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/1.203, allocations: 4.641 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/1.203, allocations: 0.9688 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/1.204, allocations: 70.73 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004516/1.204, allocations: 327.5 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/1.204, allocations: 58.88 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/1.205, allocations: 43.36 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/1.205, allocations: 1.562 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003484/1.205, allocations: 94.38 kB / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/1.205, allocations: 0 / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006751/1.206, allocations: 163.6 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/1.206, allocations: 57.53 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.93e-05/1.206, allocations: 124.1 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/1.206, allocations: 32.36 kB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/1.206, allocations: 94.14 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/1.206, allocations: 19.44 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/1.206, allocations: 30.95 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.374e-05/1.206, allocations: 319.4 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/1.206, allocations: 58.17 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/1.207, allocations: 80.84 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/1.207, allocations: 146.7 kB / 1.094 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.207, allocations: 0.8438 kB / 1.094 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005842/1.208, allocations: 222.6 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.387e-05/1.208, allocations: 38.84 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/1.208, allocations: 5.078 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/1.208, allocations: 1.828 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/1.208, allocations: 16.36 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/1.208, allocations: 4.625 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/1.208, allocations: 40.05 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/1.208, allocations: 10.38 kB / 1.094 GB, free: 1.789 MB / 0.8575 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 8.205e-05/1.208, allocations: 123.9 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/1.208, allocations: 7.531 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/1.208, allocations: 11.81 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/1.208, allocations: 4.734 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/1.208, allocations: 0.9688 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/1.208, allocations: 79.23 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/1.208, allocations: 5.844 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/1.209, allocations: 15.95 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/1.209, allocations: 9.062 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004693/1.209, allocations: 208 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004313/1.209, allocations: 302.6 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001792/1.21, allocations: 43.16 kB / 1.095 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.786e-05/1.21, allocations: 97.75 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of Backend: time 6.51e-07/1.21, allocations: 4 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007331/1.21, allocations: 229 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0005021/1.211, allocations: 0.6096 MB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of Templates: time 0.005675/1.217, allocations: 1.76 MB / 1.097 GB, free: 172 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches