Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_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_10_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.001499/0.001499, allocations: 116.3 kB / 16.42 MB, free: 6.508 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.001674/0.001674, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.49/1.49, 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 10.1.1-maint.10.0.x/package.mo): time 2.545/2.545, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 63.91 kB / 1.019 GB, free: 9.363 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113/1.115, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002616/1.117, allocations: 0.7831 MB / 1.168 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001855/1.119, allocations: 1.154 MB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.339e-05/1.119, allocations: 4 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.778e-05/1.119, allocations: 3.938 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/1.119, allocations: 11.88 kB / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/1.12, allocations: 135.8 kB / 1.169 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002269/1.12, allocations: 139.7 kB / 1.17 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/1.12, allocations: 15.98 kB / 1.17 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/1.121, allocations: 47.84 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/1.121, allocations: 63.73 kB / 1.17 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.479e-05/1.121, allocations: 16 kB / 1.17 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.634e-05/1.121, allocations: 23.98 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.217e-05/1.121, allocations: 15.92 kB / 1.17 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.951e-05/1.121, allocations: 47.83 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000221/1.121, allocations: 112.2 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.121, allocations: 0 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.794e-06/1.121, allocations: 4 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.422e-06/1.121, allocations: 0 / 1.17 GB, free: 1.281 MB / 0.8887 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.0007766/1.122, allocations: 428.8 kB / 1.17 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.122, allocations: 12.92 kB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.945e-05/1.122, allocations: 12.89 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/1.122, allocations: 180.2 kB / 1.17 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/1.122, allocations: 4.375 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/1.122, allocations: 8.375 kB / 1.17 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/1.123, allocations: 78.19 kB / 1.171 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/1.123, allocations: 4.188 kB / 1.171 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/1.123, allocations: 7.938 kB / 1.171 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/1.123, allocations: 0 / 1.171 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/1.123, allocations: 71.92 kB / 1.171 GB, free: 400 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/1.123, allocations: 332.7 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/1.124, allocations: 50.59 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/1.124, allocations: 48.91 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/1.124, allocations: 0 / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003242/1.124, allocations: 95.34 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/1.124, allocations: 0 / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0006257/1.125, allocations: 161.5 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/1.125, allocations: 55.41 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/1.125, allocations: 127.8 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/1.125, allocations: 29.7 kB / 1.172 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/1.125, allocations: 92.09 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/1.125, allocations: 23.83 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/1.125, allocations: 29.7 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.125, allocations: 322.8 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/1.126, allocations: 59.94 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/1.126, allocations: 82.52 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/1.126, allocations: 148.1 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/1.126, allocations: 4 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005828/1.127, allocations: 211.3 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/1.127, allocations: 41.64 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/1.127, allocations: 0 / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/1.127, allocations: 4 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/1.127, allocations: 16.03 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/1.127, allocations: 11.94 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/1.127, allocations: 31.95 kB / 1.173 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/1.127, allocations: 12 kB / 1.173 GB, free: 14.27 MB / 0.9044 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.0001002/1.128, allocations: 121.8 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/1.128, allocations: 7.953 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.027e-05/1.128, allocations: 8.375 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/1.128, allocations: 4 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.128, allocations: 0 / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/1.128, allocations: 85.06 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/1.128, allocations: 4.297 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/1.128, allocations: 11.98 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/1.128, allocations: 11.94 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004824/1.128, allocations: 220.7 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004556/1.129, allocations: 290.7 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001741/1.129, allocations: 51.95 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.378e-05/1.129, allocations: 96.39 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of Backend: time 3.21e-07/1.129, allocations: 0 / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007294/1.13, allocations: 229.7 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006113/1.13, allocations: 0.6122 MB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of Templates: time 0.004837/1.135, allocations: 1.756 MB / 1.176 GB, free: 10.69 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches