Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.And3,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_And3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And3,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_And3",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.007965/0.007966, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001824/0.001824, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.441/2.441, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002289, allocations: 69.14 kB / 0.9504 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3533, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And3): time 0.00196/0.3553, allocations: 0.704 MB / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3568, allocations: 1.263 MB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.955e-05/0.3569, allocations: 7.938 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.672e-05/0.3569, allocations: 7.875 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.286e-05/0.3571, allocations: 27.89 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.3578, allocations: 301.9 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.3581, allocations: 271.6 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.601e-05/0.3582, allocations: 12.19 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.3584, allocations: 103.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.3585, allocations: 95.73 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.3586, allocations: 28 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.95e-05/0.3587, allocations: 31.98 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.646e-05/0.3587, allocations: 19.86 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.3588, allocations: 83.75 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.3591, allocations: 227.6 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3591, allocations: 0 / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3591, allocations: 0 / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.3591, allocations: 0 / 1.091 GB, free: 14.85 MB / 0.8575 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.0007113/0.3599, allocations: 496.2 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.3599, allocations: 12.03 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.191e-05/0.36, allocations: 34.75 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.3601, allocations: 20.89 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.3602, allocations: 176.3 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.3602, allocations: 4.375 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.3603, allocations: 16.38 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.3604, allocations: 57.98 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3605, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3605, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3605, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.837e-05/0.3605, allocations: 27.92 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.3612, allocations: 428.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.096e-05/0.3613, allocations: 26.58 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.99e-05/0.3613, allocations: 20.94 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.3613, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.3616, allocations: 107.3 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3616, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003044/0.3619, allocations: 133.5 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.362, allocations: 55.41 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3621, allocations: 136.9 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.3622, allocations: 33.7 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.3623, allocations: 100.5 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.3623, allocations: 23.95 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3624, allocations: 69.67 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3625, allocations: 326.8 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.3627, allocations: 87.89 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.363, allocations: 151.2 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.3633, allocations: 235 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3633, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000609/0.3639, allocations: 382.5 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.467e-05/0.364, allocations: 101.1 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.364, allocations: 4 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.364, allocations: 0 / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-05/0.364, allocations: 7.984 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3641, allocations: 4 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.3645, allocations: 79.88 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.3646, allocations: 19.98 kB / 1.094 GB, free: 11.2 MB / 0.8575 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,booPul3.y,$PRE.booPul3.y,and1.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.0001103/0.3647, allocations: 130.7 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.3647, allocations: 11.91 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.3648, allocations: 12.36 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3648, allocations: 4 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3648, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3648, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.3649, allocations: 197.6 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3649, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-05/0.365, allocations: 7.984 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.365, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.365, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.365, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.365, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.3652, allocations: 140.9 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.3652, allocations: 89.06 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.3652, allocations: 4 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.314e-05/0.3653, allocations: 0 / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.3653, allocations: 15.97 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.3653, allocations: 4 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.623e-05/0.3654, allocations: 103.1 kB / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3654, allocations: 0 / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002533/0.3656, allocations: 47.98 kB / 1.095 GB, free: 10.35 MB / 0.8575 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,and1.y,booPul3.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.0004717/0.3661, allocations: 0.6826 MB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004872/0.3666, allocations: 358.1 kB / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3666, allocations: 3.938 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.588e-05/0.3667, allocations: 43.92 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.367, allocations: 30.08 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.3695, allocations: 2.045 MB / 1.098 GB, free: 6.992 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3698, allocations: 0.6924 MB / 1.098 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.011e-05/0.3698, allocations: 16.42 kB / 1.098 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.3699, allocations: 23.44 kB / 1.098 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3699, allocations: 288 / 1.098 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.3918, allocations: 3.824 MB / 1.102 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.145, allocations: 15.36 kB / 1.102 GB, free: 2.516 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_And3.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_And3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches