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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001292/0.001292, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.229/1.229, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.405/2.405, allocations: 437 MB / 0.71 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4983/0.4995, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00179/0.5014, allocations: 0.8493 MB / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.5027, allocations: 1.163 MB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.5027, allocations: 4 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.919e-05/0.5028, allocations: 3.938 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.705e-05/0.5028, allocations: 7.922 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.5032, allocations: 123.5 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.5033, allocations: 111.8 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.131e-05/0.5034, allocations: 19.97 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.565e-05/0.5035, allocations: 51.83 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.783e-05/0.5035, allocations: 35.89 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.5036, allocations: 8 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.358e-05/0.5036, allocations: 27.97 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.302e-05/0.5037, allocations: 11.92 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.327e-05/0.5037, allocations: 43.84 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.5039, allocations: 109.9 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.5039, allocations: 0 / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.62e-07/0.5039, allocations: 0 / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.5039, allocations: 0 / 1.019 GB, free: 188 kB / 0.7637 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.0005685/0.5045, allocations: 424.9 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.5045, allocations: 16.03 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.111e-05/0.5046, allocations: 34.73 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.5046, allocations: 8.844 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.5047, allocations: 176.3 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.5047, allocations: 8.312 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.5048, allocations: 4.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002344/0.505, allocations: 78.2 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.505, allocations: 3.938 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.505, allocations: 8 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.505, allocations: 0 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.5053, allocations: 71.91 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003835/0.5057, allocations: 332.6 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.5059, allocations: 58.53 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.506, allocations: 44.86 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.5061, allocations: 0 / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.5063, allocations: 95.34 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.5063, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005558/0.5069, allocations: 173.6 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.5069, allocations: 55.39 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.976e-05/0.507, allocations: 130 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.5071, allocations: 29.7 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.5071, allocations: 104 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.5072, allocations: 15.81 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.5072, allocations: 33.7 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.5073, allocations: 322.8 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.5075, allocations: 63.95 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.5078, allocations: 78.52 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.5081, allocations: 148.1 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5081, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004957/0.5086, allocations: 203.2 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.5087, allocations: 37.69 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5087, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.614e-06/0.5087, allocations: 4 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.5088, allocations: 24.03 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.5088, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.5091, allocations: 51.78 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.5091, allocations: 4 kB / 1.022 GB, free: 13.12 MB / 0.7794 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.656e-05/0.5092, allocations: 122.2 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.5092, allocations: 7.906 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.816e-05/0.5092, allocations: 20.36 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.5092, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.5093, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.5093, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.5094, allocations: 185.6 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5094, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5095, allocations: 19.97 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5095, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.5095, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.5095, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.5095, allocations: 11.94 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.5099, allocations: 152.9 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.5099, allocations: 81.02 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.51, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.5101, allocations: 16.17 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.373e-05/0.5101, allocations: 7.984 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.5101, allocations: 8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.291e-05/0.5102, allocations: 96.39 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5102, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002115/0.5104, allocations: 20.09 kB / 1.023 GB, free: 12.29 MB / 0.7794 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.0006336/0.511, allocations: 0.6981 MB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000445/0.5115, allocations: 191.3 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.5115, allocations: 0 / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.5117, allocations: 51.89 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.5119, allocations: 14.34 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.5139, allocations: 1.632 MB / 1.025 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.5141, allocations: 0.6926 MB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.561e-05/0.5141, allocations: 4 kB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.5142, allocations: 19.42 kB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.5142, allocations: 0 / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01102/0.5252, allocations: 2.369 MB / 1.028 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.5254, allocations: 201.5 kB / 1.028 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.211, allocations: 4 kB / 1.028 GB, free: 6.309 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > 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