Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_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.01205/0.01205, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001991/0.001991, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.955/2.955, allocations: 469.4 MB / 0.7421 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 63.91 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3762, allocations: 159.1 MB / 1.22 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002456/0.3787, allocations: 0.6996 MB / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3807, allocations: 1.262 MB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.613e-05/0.3808, allocations: 0 / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.365e-05/0.3809, allocations: 7.922 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.381, allocations: 19.86 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.3821, allocations: 311.7 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000444/0.3825, allocations: 279.5 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.3827, allocations: 16.17 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.383, allocations: 103.9 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.3832, allocations: 91.73 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.3834, allocations: 23.98 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.3835, allocations: 35.98 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.227e-05/0.3836, allocations: 15.94 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.3837, allocations: 79.8 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.3841, allocations: 219.3 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3842, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.657e-06/0.3842, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.365e-06/0.3842, allocations: 3.938 kB / 1.223 GB, free: 11.49 MB / 0.9825 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.0007346/0.3849, allocations: 0.5002 MB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.385, allocations: 8.031 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.385, allocations: 30.75 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.202e-05/0.3851, allocations: 16.89 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.3852, allocations: 176.3 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.3853, allocations: 12.38 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.3853, allocations: 12.38 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.3855, allocations: 65.91 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3855, allocations: 3.938 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3855, allocations: 4 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.3855, allocations: 4 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.453e-05/0.3856, allocations: 15.98 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006119/0.3862, allocations: 416.5 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.685e-05/0.3863, allocations: 34.52 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.517e-05/0.3863, allocations: 24.92 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.3864, allocations: 0 / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.3865, allocations: 99.34 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.3865, allocations: 0 / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003637/0.3869, allocations: 141.5 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.387, allocations: 51.41 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.3871, allocations: 140.2 kB / 1.225 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3871, allocations: 33.7 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.736e-05/0.3872, allocations: 96.2 kB / 1.225 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.3873, allocations: 31.78 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.3874, allocations: 69.67 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3876, allocations: 322.8 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3878, allocations: 87.95 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.388, allocations: 134 kB / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.3883, allocations: 237.4 kB / 1.225 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3883, allocations: 0 / 1.225 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005907/0.3889, allocations: 378.4 kB / 1.226 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.84e-05/0.389, allocations: 101.1 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.389, allocations: 4 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.389, allocations: 3.938 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.512e-05/0.3891, allocations: 7.984 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3891, allocations: 4.375 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.3896, allocations: 91.92 kB / 1.226 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.3896, allocations: 19.98 kB / 1.226 GB, free: 7.828 MB / 0.9825 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.0001175/0.3897, allocations: 128.3 kB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.3898, allocations: 11.89 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.185e-05/0.3898, allocations: 12.36 kB / 1.226 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3898, allocations: 8 kB / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3898, allocations: 0 / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3898, allocations: 0 / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.39, allocations: 193.6 kB / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.39, allocations: 0 / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.401e-05/0.39, allocations: 7.984 kB / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.39, allocations: 0 / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3901, allocations: 0 / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3901, allocations: 3.938 kB / 1.226 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3901, allocations: 0 / 1.226 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001977/0.3903, allocations: 152.9 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.3903, allocations: 85.06 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.3904, allocations: 0 / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.367e-05/0.3904, allocations: 0 / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.3904, allocations: 11.98 kB / 1.227 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.3905, allocations: 4 kB / 1.227 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.892e-05/0.3905, allocations: 95.27 kB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3905, allocations: 0 / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002842/0.3908, allocations: 51.92 kB / 1.227 GB, free: 6.98 MB / 0.9825 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.0006157/0.3914, allocations: 0.6787 MB / 1.227 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005042/0.392, allocations: 362.2 kB / 1.228 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.392, allocations: 4.312 kB / 1.228 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.3921, allocations: 43.98 kB / 1.228 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.3924, allocations: 23.41 kB / 1.228 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.3948, allocations: 2.068 MB / 1.23 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.3951, allocations: 0.7001 MB / 1.231 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.815e-05/0.3951, allocations: 8.422 kB / 1.231 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.3952, allocations: 23.44 kB / 1.231 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3952, allocations: 0 / 1.231 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.4162, allocations: 3.834 MB / 1.234 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.201, allocations: 11.98 kB / 1.234 GB, free: 15.13 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches