Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.And,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_And",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.0103/0.0103, allocations: 102 kB / 15.73 MB, free: 6.051 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.001974/0.001973, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.247/2.247, allocations: 390.3 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.89 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8649/0.8663, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.001681/0.868, allocations: 0.6665 MB / 1.088 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.8694, allocations: 1.188 MB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.444e-05/0.8694, allocations: 0.9375 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.812e-05/0.8694, allocations: 3.938 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.744e-05/0.8695, allocations: 15.44 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.8701, allocations: 212.3 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.8704, allocations: 185.8 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.871e-05/0.8705, allocations: 11.34 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.8706, allocations: 63.67 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.8707, allocations: 69.17 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.8708, allocations: 15 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.137e-05/0.8709, allocations: 29.12 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.233e-05/0.8709, allocations: 12.97 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.21e-05/0.871, allocations: 57.17 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.8712, allocations: 157.8 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.8712, allocations: 0 / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.225e-06/0.8712, allocations: 0.6562 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.8712, allocations: 1 kB / 1.09 GB, free: 3.637 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000451/0.8717, allocations: 435.2 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.8717, allocations: 9.344 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.777e-05/0.8718, allocations: 32.75 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.8718, allocations: 12.62 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.072e-05/0.8719, allocations: 168.7 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.8719, allocations: 8.781 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.872, allocations: 10.66 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.927e-05/0.8721, allocations: 45.36 kB / 1.091 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.8721, allocations: 4.875 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8721, allocations: 4.516 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.8721, allocations: 5.125 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.032e-05/0.8722, allocations: 17.91 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.8726, allocations: 354.1 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.666e-05/0.8727, allocations: 34.92 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.627e-05/0.8727, allocations: 12.84 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.8727, allocations: 0 / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.8729, allocations: 89.17 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.8729, allocations: 1.281 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002701/0.8732, allocations: 107.2 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.8732, allocations: 53.38 kB / 1.091 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.535e-05/0.8733, allocations: 123.9 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.8734, allocations: 30.42 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.8734, allocations: 93.66 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.8734, allocations: 15.98 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.8736, allocations: 48.83 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.8736, allocations: 319.4 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.8738, allocations: 59.5 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.874, allocations: 95.88 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.8742, allocations: 158.2 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.8742, allocations: 0.625 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005085/0.8747, allocations: 257.4 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.931e-05/0.8748, allocations: 69.02 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.8748, allocations: 0.7812 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.8748, allocations: 7.203 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.538e-05/0.8748, allocations: 10.84 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.8748, allocations: 1.594 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.8752, allocations: 56.39 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.8753, allocations: 11.83 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001052/0.8754, allocations: 127.3 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.8754, allocations: 3.672 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.18e-05/0.8754, allocations: 13.88 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.8755, allocations: 1.578 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.8755, allocations: 0.9375 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.8755, allocations: 0.7969 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.8756, allocations: 183 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.8756, allocations: 0.5156 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.8756, allocations: 6.641 kB / 1.093 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.8756, allocations: 3.938 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.8757, allocations: 2.953 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8757, allocations: 7.938 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.8757, allocations: 0.7969 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.8758, allocations: 111.2 kB / 1.093 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.8759, allocations: 83.64 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.8759, allocations: 2.094 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.074e-05/0.8759, allocations: 1.391 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.876, allocations: 5.312 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.876, allocations: 11.52 kB / 1.093 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.346e-05/0.876, allocations: 89.78 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.876, allocations: 0 / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002705/0.8763, allocations: 27.56 kB / 1.093 GB, free: 0.6914 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004924/0.8768, allocations: 0.6611 MB / 1.094 GB, free: 16.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.8773, allocations: 257.4 kB / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8773, allocations: 0 / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.55e-05/0.8773, allocations: 30.44 kB / 1.094 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.8776, allocations: 12.59 kB / 1.094 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.8796, allocations: 1.714 MB / 1.096 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.8799, allocations: 0.6847 MB / 1.097 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.079e-05/0.88, allocations: 5.828 kB / 1.097 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.88, allocations: 24.75 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/0.88, allocations: 4.75 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.9016, allocations: 2.875 MB / 1.1 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.951, allocations: 11.7 kB / 1.1 GB, free: 13.22 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And_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_And.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches