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.001091/0.001091, allocations: 108 kB / 15.61 MB, free: 148 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.001221/0.001221, allocations: 193.7 kB / 16.53 MB, free: 6.664 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.363 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.476/2.476, allocations: 437 MB / 0.7104 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 67.91 kB / 0.8694 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.637/0.6385, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002167/0.6407, allocations: 0.7962 MB / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.6422, allocations: 1.151 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.6423, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.945e-05/0.6424, allocations: 7.922 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.6425, allocations: 11.88 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.6431, allocations: 135.6 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.6433, allocations: 135.8 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.6434, allocations: 19.97 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.6435, allocations: 51.83 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.93e-05/0.6436, allocations: 43.88 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.458e-05/0.6437, allocations: 12 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.883e-05/0.6437, allocations: 20 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.475e-05/0.6438, allocations: 19.92 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.092e-05/0.6439, allocations: 47.92 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.6441, allocations: 121.9 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6441, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.302e-06/0.6441, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.6441, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.7794 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.0007562/0.6449, allocations: 428.9 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.6449, allocations: 8.031 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.551e-05/0.645, allocations: 38.59 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.9e-05/0.645, allocations: 4.938 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.6452, allocations: 177.5 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.6452, allocations: 8.359 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.6452, allocations: 8.375 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.6455, allocations: 74.2 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.6455, allocations: 3.938 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.6455, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.6456, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.6459, allocations: 79.86 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004835/0.6464, allocations: 332.6 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.6466, allocations: 54.53 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.6467, allocations: 48.91 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.6468, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.647, allocations: 95.28 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.803e-06/0.647, allocations: 4 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006129/0.6477, allocations: 161.5 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.6477, allocations: 55.41 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.6478, allocations: 135.1 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.6479, allocations: 25.7 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.6479, allocations: 92.14 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.648, allocations: 15.81 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.6481, allocations: 33.69 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6482, allocations: 322.8 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.6484, allocations: 63.88 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.6486, allocations: 78.78 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003619/0.649, allocations: 144.2 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.649, allocations: 4 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005291/0.6495, allocations: 215.2 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.6496, allocations: 39.27 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.6496, allocations: 0 / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.6496, allocations: 7.938 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.6498, allocations: 15.97 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.6498, allocations: 8.062 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.65, allocations: 39.86 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.6501, allocations: 8 kB / 1.023 GB, free: 12.82 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 9.432e-05/0.6502, allocations: 125.7 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.553e-05/0.6502, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.801e-05/0.6502, allocations: 8.375 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.6502, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6502, allocations: 8 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.6502, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.6504, allocations: 185.5 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6504, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.6505, allocations: 19.98 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.6505, allocations: 3.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.6505, allocations: 96 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.6505, allocations: 3.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6505, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/0.6509, allocations: 149 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.6509, allocations: 85.02 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.651, allocations: 3.984 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.652e-05/0.6511, allocations: 15.98 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.6511, allocations: 11.98 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.6511, allocations: 3.938 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.863e-05/0.6512, allocations: 100.3 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6512, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002276/0.6514, allocations: 20 kB / 1.023 GB, free: 11.99 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.0007187/0.6522, allocations: 0.6944 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004988/0.6527, allocations: 191.2 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.6527, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.6529, allocations: 52.08 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.6531, allocations: 19.98 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.6553, allocations: 1.613 MB / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.6556, allocations: 0.6885 MB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.257e-05/0.6557, allocations: 4 kB / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.6557, allocations: 23.42 kB / 1.027 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of SimCode: time 5.01e-07/0.6557, allocations: 0 / 1.027 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.675, allocations: 2.643 MB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.003/7.678, allocations: 16.33 kB / 1.029 GB, free: 5.973 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 & 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