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: "" <> 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.001167/0.001167, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001398/0.001398, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.294/1.294, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.48/2.48, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.88 kB / 0.8689 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6018/0.6031, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002129/0.6053, allocations: 0.8469 MB / 1.018 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.6066, allocations: 1.152 MB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.6067, allocations: 0 / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.6067, allocations: 7.922 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.6068, allocations: 7.938 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.6073, allocations: 119.4 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.6074, allocations: 131.8 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.385e-05/0.6075, allocations: 23.95 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.927e-05/0.6076, allocations: 47.91 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.77e-05/0.6077, allocations: 47.83 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.347e-05/0.6078, allocations: 12 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.707e-05/0.6078, allocations: 27.97 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.6079, allocations: 15.92 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.627e-05/0.6079, allocations: 43.84 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.6081, allocations: 117.9 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6081, allocations: 0 / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6081, allocations: 0 / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.6081, allocations: 0 / 1.019 GB, free: 120 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.0005875/0.6087, allocations: 424.9 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.6087, allocations: 20.02 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.6088, allocations: 30.75 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.6088, allocations: 8.875 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.81e-05/0.6089, allocations: 176.2 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.609, allocations: 8.375 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.609, allocations: 4.375 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002428/0.6092, allocations: 86.19 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.6092, allocations: 3.938 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.6093, allocations: 7.984 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.6093, allocations: 3.938 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.6095, allocations: 71.92 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003884/0.6099, allocations: 332.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.6101, allocations: 54.53 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.6103, allocations: 40.92 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.6103, allocations: 3.984 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.6106, allocations: 95.3 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.6106, allocations: 0 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005437/0.6111, allocations: 169.5 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.6112, allocations: 59.41 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.538e-05/0.6113, allocations: 123.3 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.6113, allocations: 29.7 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.6114, allocations: 92.2 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.6114, allocations: 19.73 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.6114, allocations: 29.7 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.879e-05/0.6115, allocations: 326.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.6117, allocations: 59.95 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.612, allocations: 86.45 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.6123, allocations: 148.2 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6123, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004933/0.6128, allocations: 207.1 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.6129, allocations: 37.69 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.6129, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.6129, allocations: 8.062 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.613, allocations: 19.92 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.613, allocations: 3.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.6133, allocations: 43.86 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.6133, allocations: 4 kB / 1.022 GB, free: 13.06 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.479e-05/0.6134, allocations: 122.2 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.6134, allocations: 11.98 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.6135, allocations: 12.38 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.6135, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.6135, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.6135, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.6136, allocations: 189.5 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6136, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.6137, allocations: 20.06 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.6137, allocations: 3.938 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.6137, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.6137, allocations: 11.94 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.6138, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.6141, allocations: 145.4 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.6142, allocations: 81.02 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.6142, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.6143, allocations: 23.97 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.6143, allocations: 4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.6143, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.762e-05/0.6144, allocations: 103.3 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.292e-06/0.6144, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002139/0.6146, allocations: 23.94 kB / 1.023 GB, free: 12.22 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.0006297/0.6152, allocations: 0.6942 MB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.6157, allocations: 195.2 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.6157, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.6159, allocations: 47.95 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.6161, allocations: 15.94 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.6181, allocations: 1.633 MB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002007/0.6183, allocations: 0.6885 MB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.745e-05/0.6183, allocations: 4 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.6184, allocations: 23.42 kB / 1.026 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6184, allocations: 4 kB / 1.026 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.6308, allocations: 2.459 MB / 1.029 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.6311, allocations: 203.8 kB / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.392, allocations: 3.938 kB / 1.029 GB, free: 6.16 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