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.001737/0.001737, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 186.6 kB / 16.66 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.075/2.075, allocations: 222.9 MB / 240.4 MB, free: 4.297 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 4.457/4.457, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00276/0.00276, allocations: 59.91 kB / 1.018 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.4261, allocations: 151.6 MB / 1.166 GB, free: 7.219 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.003687/0.4298, allocations: 0.7928 MB / 1.167 GB, free: 6.422 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002986/0.4329, allocations: 1.152 MB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.231e-05/0.433, allocations: 0 / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.69e-05/0.4331, allocations: 3.938 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.4332, allocations: 15.86 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008266/0.4341, allocations: 135.5 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.4344, allocations: 143.7 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.4346, allocations: 19.98 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.4347, allocations: 51.89 kB / 1.168 GB, free: 4.895 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.4349, allocations: 47.81 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.435, allocations: 12 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.4351, allocations: 23.98 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.5e-05/0.4352, allocations: 11.98 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.4353, allocations: 47.78 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003534/0.4357, allocations: 115.9 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 1.581e-05/0.4357, allocations: 4 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.314e-06/0.4357, allocations: 3.938 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.4358, allocations: 0 / 1.169 GB, free: 4.633 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.001202/0.437, allocations: 428.8 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.212e-05/0.4371, allocations: 11.97 kB / 1.169 GB, free: 4.145 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.259e-05/0.4371, allocations: 38.75 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.919e-05/0.4372, allocations: 8.891 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.4375, allocations: 184.2 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.4375, allocations: 4.375 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/0.4376, allocations: 4.375 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004583/0.4381, allocations: 86.2 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.4381, allocations: 3.938 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.4381, allocations: 0 / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.4382, allocations: 0 / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005712/0.4387, allocations: 71.86 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.4395, allocations: 328.7 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003695/0.4399, allocations: 50.55 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.4403, allocations: 44.91 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.4403, allocations: 0 / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/0.4408, allocations: 103.3 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 2.535e-06/0.4408, allocations: 0 / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.001105/0.4419, allocations: 161.5 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.442, allocations: 59.34 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.4422, allocations: 128.9 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.666e-05/0.4423, allocations: 25.7 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.4424, allocations: 96.09 kB / 1.17 GB, free: 2.613 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.4425, allocations: 23.95 kB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.4427, allocations: 29.7 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002344/0.4429, allocations: 322.8 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/0.4434, allocations: 67.88 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.4438, allocations: 82.52 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/0.4445, allocations: 136.2 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4445, allocations: 0 / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.001037/0.4455, allocations: 215.2 kB / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.4456, allocations: 41.64 kB / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4456, allocations: 4.062 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.612e-05/0.4457, allocations: 11.92 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.4459, allocations: 11.98 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.446, allocations: 4 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.4464, allocations: 31.95 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.4464, allocations: 11.98 kB / 1.171 GB, free: 1.582 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.0001877/0.4466, allocations: 129.8 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.4467, allocations: 7.953 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.4467, allocations: 8.375 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.4468, allocations: 4 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4468, allocations: 0 / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.4468, allocations: 0 / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.4471, allocations: 189.9 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4471, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.4473, allocations: 23.92 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.4473, allocations: 4 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.4474, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.4474, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4474, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007568/0.4482, allocations: 152.9 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.831e-05/0.4483, allocations: 93.05 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.4483, allocations: 0 / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.4485, allocations: 11.98 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.353e-05/0.4486, allocations: 11.98 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.4486, allocations: 0 / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001146/0.4487, allocations: 95.36 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of sort global known variables: time 4.41e-07/0.4487, allocations: 3.938 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00044/0.4492, allocations: 24 kB / 1.172 GB, free: 0.7422 MB / 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.001333/0.4505, allocations: 0.6904 MB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009843/0.4515, allocations: 195.2 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.4516, allocations: 0 / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.4519, allocations: 47.95 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.4523, allocations: 11.98 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.4567, allocations: 1.633 MB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.4573, allocations: 0.6923 MB / 1.175 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.246e-05/0.4574, allocations: 4 kB / 1.175 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.563e-05/0.4575, allocations: 23.42 kB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of SimCode: time 1.403e-06/0.4575, allocations: 0 / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04176/0.4993, allocations: 2.695 MB / 1.178 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.33, allocations: 8.016 kB / 1.178 GB, free: 10.68 MB / 0.9356 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