Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.001318/0.001318, 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.001421/0.001421, allocations: 191.9 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.352 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.512/2.512, allocations: 437.1 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 0.8694 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5892/0.5905, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002038/0.5926, allocations: 0.7066 MB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.594, allocations: 1.265 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.666e-05/0.5941, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.5941, allocations: 7.875 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.635e-05/0.5942, allocations: 19.78 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008207/0.595, allocations: 307.7 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002923/0.5953, allocations: 267.7 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.5955, allocations: 24.16 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.5956, allocations: 99.8 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.5957, allocations: 83.75 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.5958, allocations: 20 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.5959, allocations: 35.98 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.736e-05/0.5959, allocations: 15.94 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.596, allocations: 83.8 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.5963, allocations: 213.7 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5963, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5963, allocations: 4 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.5963, allocations: 0 / 1.02 GB, free: 15.33 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.0005515/0.5968, allocations: 0.4962 MB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.5969, allocations: 8.031 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.5969, allocations: 34.75 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.373e-05/0.597, allocations: 16.84 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.5971, allocations: 176.2 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.5971, allocations: 12.36 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.5972, allocations: 16.38 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.5973, allocations: 57.98 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.5973, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.5973, allocations: 12 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.5974, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.865e-05/0.5974, allocations: 15.98 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.5979, allocations: 420.4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.07e-05/0.598, allocations: 26.58 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.952e-05/0.5981, allocations: 24.94 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.5981, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.5983, allocations: 111.2 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.5983, allocations: 3.938 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0002991/0.5986, allocations: 133.5 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.5986, allocations: 59.39 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.5987, allocations: 135.2 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.5988, allocations: 37.7 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.5989, allocations: 96.05 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.5989, allocations: 15.8 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.599, allocations: 69.67 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5992, allocations: 322.8 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.5994, allocations: 87.95 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.5996, allocations: 139.3 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.5999, allocations: 240 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.5999, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005567/0.6004, allocations: 377.7 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.894e-05/0.6005, allocations: 93.09 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.6005, allocations: 4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.6006, allocations: 4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.451e-05/0.6006, allocations: 3.938 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.6006, allocations: 16.11 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005186/0.6011, allocations: 83.75 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.6012, allocations: 19.98 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001179/0.6013, allocations: 134.9 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.6013, allocations: 7.906 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.726e-05/0.6014, allocations: 12.38 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6014, allocations: 0 / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.6014, allocations: 0 / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.6014, allocations: 3.938 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.6015, allocations: 189.9 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.6016, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.289e-05/0.6016, allocations: 8 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.6016, allocations: 0 / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.6016, allocations: 3.938 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.6016, allocations: 8 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6016, allocations: 0 / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.6018, allocations: 136.9 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.6019, allocations: 89.02 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.6019, allocations: 4 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.437e-05/0.6019, allocations: 7.984 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.602, allocations: 7.984 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.602, allocations: 7.984 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.034e-05/0.602, allocations: 100.4 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.602, allocations: 0 / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002523/0.6023, allocations: 44 kB / 1.024 GB, free: 10.84 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004847/0.6028, allocations: 0.6767 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004425/0.6032, allocations: 378 kB / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6032, allocations: 0 / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.151e-05/0.6033, allocations: 43.92 kB / 1.026 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.6036, allocations: 24.3 kB / 1.026 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.6058, allocations: 2.053 MB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.606, allocations: 0.6962 MB / 1.028 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.822e-05/0.6061, allocations: 12.44 kB / 1.028 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.314e-05/0.6061, allocations: 27.42 kB / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6062, allocations: 0 / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.6274, allocations: 3.78 MB / 1.032 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/7.588, allocations: 2.922 kB / 1.032 GB, free: 3.027 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.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_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches