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.005964/0.005964, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001192/0.001192, allocations: 193.8 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.1 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.494/2.494, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 60.09 kB / 1.018 GB, free: 9.832 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8225/0.8239, allocations: 151.6 MB / 1.166 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001932/0.8259, allocations: 0.7789 MB / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.8273, allocations: 1.158 MB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.677e-05/0.8274, allocations: 0 / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.184e-05/0.8274, allocations: 7.938 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.796e-05/0.8275, allocations: 15.86 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.828, allocations: 143 kB / 1.168 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.8282, allocations: 135.7 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.8283, allocations: 15.98 kB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.263e-05/0.8284, allocations: 47.91 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.8285, allocations: 59.8 kB / 1.169 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.8286, allocations: 8 kB / 1.169 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.531e-05/0.8286, allocations: 23.98 kB / 1.169 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.398e-05/0.8287, allocations: 19.92 kB / 1.169 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.8287, allocations: 43.84 kB / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.8289, allocations: 122.3 kB / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.829, allocations: 0 / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.883e-06/0.829, allocations: 0 / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.829, allocations: 0 / 1.169 GB, free: 1.273 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.0006189/0.8296, allocations: 429.8 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.8296, allocations: 12.62 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.4e-05/0.8297, allocations: 38.73 kB / 1.169 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.456e-05/0.8297, allocations: 8.891 kB / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.8299, allocations: 176.3 kB / 1.169 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.8299, allocations: 8.375 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.8299, allocations: 4.375 kB / 1.169 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.8302, allocations: 78.2 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.8302, allocations: 3.938 kB / 1.169 GB, free: 432 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.8302, allocations: 7.922 kB / 1.169 GB, free: 424 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.8302, allocations: 4 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.8305, allocations: 71.92 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.831, allocations: 324.7 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.8312, allocations: 58.53 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.8314, allocations: 44.86 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.8314, allocations: 3.938 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.8317, allocations: 95.34 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.8317, allocations: 4 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0006184/0.8323, allocations: 165.5 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.8324, allocations: 59.34 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/0.8325, allocations: 119.8 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.8325, allocations: 29.7 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.8326, allocations: 100.1 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.8326, allocations: 15.84 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.8327, allocations: 33.7 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.795e-05/0.8328, allocations: 322.8 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.833, allocations: 59.95 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.8332, allocations: 86.45 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.8336, allocations: 144.1 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.8336, allocations: 0 / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005323/0.8342, allocations: 219.3 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.8342, allocations: 37.69 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.8342, allocations: 4 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.8342, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.8344, allocations: 15.98 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.8344, allocations: 4.062 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.8346, allocations: 43.94 kB / 1.171 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.8347, allocations: 4 kB / 1.171 GB, free: 14.22 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 9.281e-05/0.8348, allocations: 117.8 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.8348, allocations: 7.953 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.8348, allocations: 16.36 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.8348, allocations: 0 / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.8348, allocations: 7.938 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.8349, allocations: 0 / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.835, allocations: 181.6 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.835, allocations: 0 / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.8351, allocations: 19.97 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.8351, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.8351, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.8351, allocations: 4.312 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.8352, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.8355, allocations: 160.9 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.8356, allocations: 85 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.8356, allocations: 4 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-05/0.8357, allocations: 11.98 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.8358, allocations: 11.98 kB / 1.172 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.8358, allocations: 0 / 1.172 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.553e-05/0.8358, allocations: 104.1 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8358, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000223/0.8361, allocations: 20 kB / 1.172 GB, free: 13.39 MB / 0.9044 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.0007247/0.8368, allocations: 0.6904 MB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000494/0.8373, allocations: 191.2 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8373, allocations: 0 / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.8375, allocations: 48.09 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.8377, allocations: 21.98 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.8399, allocations: 1.632 MB / 1.175 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.8401, allocations: 0.6907 MB / 1.175 GB, free: 9.953 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.376e-05/0.8402, allocations: 7.969 kB / 1.175 GB, free: 9.945 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.8402, allocations: 19.44 kB / 1.175 GB, free: 9.926 MB / 0.9044 GB Notification: Performance of SimCode: time 3.01e-07/0.8402, allocations: 0 / 1.175 GB, free: 9.926 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.86, allocations: 2.688 MB / 1.178 GB, free: 7.34 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/8.64, allocations: 10.25 kB / 1.178 GB, free: 7.332 MB / 0.9044 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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