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.0008516/0.0008518, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008222/0.008223, allocations: 169.5 kB / 16.27 MB, free: 6.652 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.46/1.46, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.935/2.935, allocations: 462.7 MB / 0.7364 GB, free: 332 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003769, allocations: 15.8 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.39, allocations: 159.6 MB / 1.059 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001149/0.3912, allocations: 0.5078 MB / 1.059 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.3927, allocations: 1.159 MB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.564e-05/0.3928, allocations: 4 kB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.3928, allocations: 3.938 kB / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.393, allocations: 7.922 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.3936, allocations: 123.7 kB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.3937, allocations: 115.7 kB / 1.061 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.3939, allocations: 20 kB / 1.061 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.394, allocations: 47.83 kB / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.3941, allocations: 39.88 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.3942, allocations: 8 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.264e-05/0.3942, allocations: 16 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.688e-05/0.3943, allocations: 11.92 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.945e-05/0.3944, allocations: 65.53 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.3946, allocations: 115.6 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3946, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3946, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.3946, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 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.0007658/0.3954, allocations: 426.2 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.3954, allocations: 8.031 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.556e-05/0.3955, allocations: 8.844 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.3956, allocations: 175.6 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.3957, allocations: 8.375 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.161e-05/0.3957, allocations: 12.38 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.396, allocations: 90.17 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.396, allocations: 4.172 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.3961, allocations: 7.938 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.3961, allocations: 4 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/0.3964, allocations: 87.92 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004945/0.3969, allocations: 332.6 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.3972, allocations: 70.53 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.3973, allocations: 44.92 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3974, allocations: 3.984 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.3977, allocations: 111.3 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.734e-06/0.3977, allocations: 0 / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006561/0.3983, allocations: 197.6 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.3984, allocations: 51.41 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3985, allocations: 125.9 kB / 1.063 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3985, allocations: 37.64 kB / 1.063 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/0.3986, allocations: 92.12 kB / 1.063 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.3986, allocations: 15.75 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.3987, allocations: 13.72 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3988, allocations: 330.8 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.399, allocations: 67.94 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.3993, allocations: 98.47 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.3997, allocations: 172.3 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3997, allocations: 0 / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005593/0.4002, allocations: 235.1 kB / 1.064 GB, free: 220 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.4003, allocations: 39.8 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4003, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4003, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.4005, allocations: 27.91 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.4005, allocations: 4 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002687/0.4008, allocations: 55.95 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.4008, allocations: 4 kB / 1.064 GB, free: 84 kB / 0.8106 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.0001298/0.401, allocations: 127.3 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.401, allocations: 7.906 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.401, allocations: 12.38 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.401, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4011, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4011, allocations: 320 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.4012, allocations: 189.6 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.4012, allocations: 4 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.4013, allocations: 19.98 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.4013, allocations: 0 / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.4014, allocations: 3.938 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4014, allocations: 4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4014, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.4018, allocations: 172.9 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.4018, allocations: 85.02 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.4019, allocations: 7.984 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.961e-05/0.402, allocations: 15.98 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.402, allocations: 11.98 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.402, allocations: 0 / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.372e-05/0.4021, allocations: 107.2 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4021, allocations: 96 / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002169/0.4023, allocations: 23.94 kB / 1.064 GB, free: 15.21 MB / 0.8262 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.000197/0.4025, allocations: 99.25 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005315/0.4031, allocations: 211.2 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4031, allocations: 0 / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.4033, allocations: 68.02 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.4035, allocations: 18.73 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004033/0.404, allocations: 182.6 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.4042, allocations: 0.6887 MB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.746e-05/0.4043, allocations: 4 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.4043, allocations: 7.438 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.4043, allocations: 4 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of Templates: time 0.00431/0.4086, allocations: 1.4 MB / 1.067 GB, free: 12.49 MB / 0.8262 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/jenkins/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