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.001318/0.001318, allocations: 108 kB / 15.61 MB, free: 152 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.002203/0.002203, allocations: 195.5 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.458/1.458, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.444/2.444, allocations: 390.2 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 75.83 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6347/0.6361, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And3): time 0.001679/0.6379, allocations: 0.7022 MB / 0.9504 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.639, allocations: 1.267 MB / 0.9517 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.377e-05/0.639, allocations: 4 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.637e-05/0.6391, allocations: 3.938 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.035e-05/0.6392, allocations: 18.53 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006486/0.6398, allocations: 301.5 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.64, allocations: 283 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.141e-05/0.6401, allocations: 15.45 kB / 0.9522 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.744e-05/0.6402, allocations: 99.77 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.634e-05/0.6403, allocations: 75.19 kB / 0.9524 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.832e-05/0.6404, allocations: 22.59 kB / 0.9524 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.285e-05/0.6405, allocations: 37.47 kB / 0.9525 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.6405, allocations: 20.92 kB / 0.9525 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.46e-05/0.6406, allocations: 78.17 kB / 0.9526 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.6408, allocations: 224 kB / 0.9528 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6408, allocations: 0 / 0.9528 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6409, allocations: 3.938 kB / 0.9528 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.308e-06/0.6409, allocations: 1.281 kB / 0.9528 GB, free: 6.828 MB / 0.7169 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.0004014/0.6413, allocations: 497.1 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.6413, allocations: 9.375 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.508e-05/0.6414, allocations: 36.38 kB / 0.9533 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.6414, allocations: 15.48 kB / 0.9533 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.205e-05/0.6415, allocations: 172.2 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.6415, allocations: 7.406 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.6416, allocations: 12.94 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.823e-05/0.6417, allocations: 63.5 kB / 0.9536 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.6417, allocations: 0 / 0.9536 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.6417, allocations: 5.156 kB / 0.9536 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.6417, allocations: 9.188 kB / 0.9536 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.638e-05/0.6417, allocations: 18.61 kB / 0.9536 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004016/0.6422, allocations: 417.5 kB / 0.954 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.915e-05/0.6422, allocations: 32.03 kB / 0.954 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.029e-05/0.6423, allocations: 21.27 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.6423, allocations: 4.844 kB / 0.954 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/0.6424, allocations: 97.72 kB / 0.9541 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.6424, allocations: 0 / 0.9541 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000258/0.6427, allocations: 136.6 kB / 0.9543 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.6427, allocations: 54.06 kB / 0.9543 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.6428, allocations: 139.2 kB / 0.9545 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.6429, allocations: 35.33 kB / 0.9545 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.6429, allocations: 102.8 kB / 0.9546 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.6429, allocations: 19.45 kB / 0.9546 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.643, allocations: 66.39 kB / 0.9547 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.915e-05/0.6431, allocations: 325.3 kB / 0.955 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.6433, allocations: 90.05 kB / 0.9551 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.6435, allocations: 137.1 kB / 0.9552 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.6438, allocations: 232.8 kB / 0.9554 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.6438, allocations: 4 kB / 0.9554 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005076/0.6443, allocations: 375.8 kB / 0.9558 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.6443, allocations: 104.5 kB / 0.9559 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.6443, allocations: 2.344 kB / 0.9559 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.6444, allocations: 2.25 kB / 0.9559 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.213e-05/0.6444, allocations: 6.281 kB / 0.9559 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.6444, allocations: 3.312 kB / 0.9559 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005878/0.645, allocations: 87.36 kB / 0.956 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.645, allocations: 21.08 kB / 0.956 GB, free: 3.922 MB / 0.7169 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 8.448e-05/0.6451, allocations: 134.6 kB / 0.9561 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.6452, allocations: 7.844 kB / 0.9561 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.6452, allocations: 18.89 kB / 0.9562 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.6452, allocations: 1.125 kB / 0.9562 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6452, allocations: 0 / 0.9562 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.6452, allocations: 0 / 0.9562 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.6453, allocations: 190.3 kB / 0.9563 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.6453, allocations: 0 / 0.9563 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.165e-05/0.6453, allocations: 6.297 kB / 0.9563 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.6454, allocations: 0.9688 kB / 0.9563 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-06/0.6454, allocations: 5.25 kB / 0.9563 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.6454, allocations: 1.094 kB / 0.9563 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6454, allocations: 3.938 kB / 0.9564 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.6455, allocations: 142.7 kB / 0.9565 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.079e-05/0.6456, allocations: 87.53 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.6456, allocations: 1.25 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.356e-05/0.6456, allocations: 5.281 kB / 0.9566 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.6456, allocations: 12.77 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.585e-06/0.6457, allocations: 3.406 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.737e-05/0.6457, allocations: 100.3 kB / 0.9567 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6457, allocations: 4.094 kB / 0.9567 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002623/0.646, allocations: 47.92 kB / 0.9567 GB, free: 3.223 MB / 0.7169 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.0003148/0.6463, allocations: 0.6755 MB / 0.9574 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003809/0.6467, allocations: 367.8 kB / 0.9577 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6467, allocations: 6 kB / 0.9578 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.417e-05/0.6468, allocations: 33.7 kB / 0.9578 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.647, allocations: 22.11 kB / 0.9578 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.6489, allocations: 2.058 MB / 0.9598 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.649, allocations: 0.7031 MB / 0.9605 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.6491, allocations: 6.75 kB / 0.9605 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.794e-05/0.6491, allocations: 28.02 kB / 0.9605 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of SimCode: time 3.91e-07/0.6491, allocations: 4.75 kB / 0.9605 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.6692, allocations: 3.777 MB / 0.9642 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.561, allocations: 13.11 kB / 0.9642 GB, free: 13.81 MB / 0.7325 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