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.009281/0.009281, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002084/0.002084, allocations: 200.6 kB / 16.68 MB, free: 5.969 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.898/2.898, allocations: 437 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.91 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3879, allocations: 151.6 MB / 1.167 GB, free: 6.77 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002348/0.3903, allocations: 0.7889 MB / 1.167 GB, free: 5.977 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.392, allocations: 1.148 MB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.112e-05/0.3921, allocations: 4 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.3921, allocations: 7.938 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.187e-05/0.3923, allocations: 15.84 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006678/0.393, allocations: 135.2 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.3932, allocations: 139.7 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.3933, allocations: 12 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.3935, allocations: 47.89 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3936, allocations: 55.81 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.3936, allocations: 8 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.163e-05/0.3937, allocations: 27.98 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.3938, allocations: 19.91 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.577e-05/0.3939, allocations: 51.78 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.3941, allocations: 115.6 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3941, allocations: 0 / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3941, allocations: 0 / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.3942, allocations: 4 kB / 1.169 GB, free: 4.184 MB / 0.92 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.0007667/0.3949, allocations: 424.8 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.395, allocations: 12.03 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.38e-05/0.3951, allocations: 12.89 kB / 1.17 GB, free: 3.688 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.3952, allocations: 176.3 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.3952, allocations: 12.38 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.3953, allocations: 4.375 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.3956, allocations: 82.14 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3956, allocations: 192 / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.3956, allocations: 3.938 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3956, allocations: 0 / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.3959, allocations: 79.91 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/0.3965, allocations: 320.8 kB / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.3967, allocations: 54.47 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3969, allocations: 48.92 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.3969, allocations: 0 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.3972, allocations: 91.34 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.3972, allocations: 0 / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0006399/0.3978, allocations: 169.4 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.3979, allocations: 63.39 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.398, allocations: 122 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3981, allocations: 25.7 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.3981, allocations: 96.08 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.3982, allocations: 23.97 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/0.3983, allocations: 29.7 kB / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3984, allocations: 326.8 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.3986, allocations: 55.95 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.3989, allocations: 86.52 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/0.3993, allocations: 152.1 kB / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3993, allocations: 0 / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005348/0.3998, allocations: 211.2 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.3999, allocations: 37.69 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.3999, allocations: 0 / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.3999, allocations: 4 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.4, allocations: 11.98 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.4001, allocations: 4 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.4003, allocations: 44 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.4003, allocations: 8 kB / 1.172 GB, free: 1.18 MB / 0.92 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.0001126/0.4004, allocations: 127.6 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.4005, allocations: 7.953 kB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.4005, allocations: 12.36 kB / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.4005, allocations: 4 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4005, allocations: 0 / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4005, allocations: 4 kB / 1.172 GB, free: 1.02 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.4007, allocations: 181.6 kB / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4007, allocations: 320 / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.4008, allocations: 23.97 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4008, allocations: 0 / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.4008, allocations: 0 / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4008, allocations: 0 / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4008, allocations: 3.984 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.4012, allocations: 152.9 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.4013, allocations: 85.06 kB / 1.172 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.4013, allocations: 4 kB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.193e-05/0.4014, allocations: 11.98 kB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.4015, allocations: 11.92 kB / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.4015, allocations: 96 / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.06e-05/0.4015, allocations: 108.1 kB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.4016, allocations: 0 / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002417/0.4018, allocations: 20 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002219/0.402, allocations: 107.2 kB / 1.173 GB, free: 236 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0005074/0.4025, allocations: 187.2 kB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4026, allocations: 4 kB / 1.173 GB, free: 32 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.4028, allocations: 51.89 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.403, allocations: 19.06 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.4034, allocations: 165.8 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.4036, allocations: 0.6925 MB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.362e-05/0.4037, allocations: 4 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.4037, allocations: 11.44 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.4037, allocations: 0 / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of Templates: time 0.004568/0.4083, allocations: 1.58 MB / 1.175 GB, free: 13.48 MB / 0.9356 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/jenkins/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