Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.And,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And,fileNamePrefix="Buildings_latest_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.006069/0.00607, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.001634/0.001634, allocations: 197 kB / 16.68 MB, free: 5.93 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 76.47 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3191, allocations: 162.2 MB / 1.241 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002294/0.3215, allocations: 0.6528 MB / 1.242 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002023/0.3235, allocations: 1.191 MB / 1.243 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.84e-05/0.3236, allocations: 0 / 1.243 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.3237, allocations: 3.938 kB / 1.243 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.3238, allocations: 11.92 kB / 1.243 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009445/0.3248, allocations: 217.7 kB / 1.243 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000389/0.3252, allocations: 183.7 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3253, allocations: 13.41 kB / 1.244 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.3255, allocations: 71.88 kB / 1.244 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.3257, allocations: 63.83 kB / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.388e-05/0.3258, allocations: 12 kB / 1.244 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.3259, allocations: 31.94 kB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.3259, allocations: 11.98 kB / 1.244 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.326, allocations: 55.81 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.3263, allocations: 151.9 kB / 1.244 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3264, allocations: 0 / 1.244 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3264, allocations: 4 kB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.919e-06/0.3264, allocations: 0 / 1.244 GB, free: 6.602 MB / 0.9669 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.0006987/0.3271, allocations: 442.6 kB / 1.244 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.3271, allocations: 8.031 kB / 1.244 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.3272, allocations: 30.75 kB / 1.245 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.3273, allocations: 12.89 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.3274, allocations: 168.3 kB / 1.245 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.3275, allocations: 8.359 kB / 1.245 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.3275, allocations: 16.31 kB / 1.245 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.3276, allocations: 50.25 kB / 1.245 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3277, allocations: 3.938 kB / 1.245 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.3277, allocations: 0 / 1.245 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3277, allocations: 3.938 kB / 1.245 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.704e-05/0.3278, allocations: 19.92 kB / 1.245 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.3284, allocations: 356.7 kB / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.695e-05/0.3285, allocations: 30.58 kB / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.598e-05/0.3285, allocations: 20.94 kB / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.3285, allocations: 0 / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002387/0.3288, allocations: 87.3 kB / 1.245 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.923e-06/0.3288, allocations: 0 / 1.245 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0002759/0.3291, allocations: 97.62 kB / 1.245 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.3292, allocations: 55.41 kB / 1.245 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.3293, allocations: 121.8 kB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/0.3293, allocations: 33.7 kB / 1.246 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.3294, allocations: 100 kB / 1.246 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.3295, allocations: 15.84 kB / 1.246 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3296, allocations: 49.69 kB / 1.246 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3298, allocations: 326.8 kB / 1.246 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.3299, allocations: 59.97 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.3301, allocations: 95.75 kB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3303, allocations: 152.1 kB / 1.246 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3303, allocations: 3.984 kB / 1.246 GB, free: 4 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000477/0.3308, allocations: 264.8 kB / 1.247 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/0.3309, allocations: 67.39 kB / 1.247 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3309, allocations: 64 / 1.247 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3309, allocations: 8 kB / 1.247 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.009e-05/0.331, allocations: 11.92 kB / 1.247 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.331, allocations: 0 / 1.247 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.3314, allocations: 55.89 kB / 1.247 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.3314, allocations: 12.12 kB / 1.247 GB, free: 3.559 MB / 0.9669 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.000128/0.3315, allocations: 128.3 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.3316, allocations: 7.953 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.3316, allocations: 8.375 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3316, allocations: 4 kB / 1.247 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3316, allocations: 0 / 1.247 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3316, allocations: 0 / 1.247 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.3318, allocations: 181.6 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3318, allocations: 3.938 kB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.388e-06/0.3318, allocations: 4 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3319, allocations: 0 / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.3319, allocations: 4 kB / 1.247 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3319, allocations: 3.938 kB / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3319, allocations: 0 / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001714/0.3321, allocations: 113 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.3321, allocations: 81.05 kB / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.3322, allocations: 7.984 kB / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.18e-05/0.3322, allocations: 8 kB / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.3322, allocations: 0 / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3322, allocations: 7.984 kB / 1.247 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.677e-05/0.3323, allocations: 87.28 kB / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3323, allocations: 0 / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002463/0.3326, allocations: 32.28 kB / 1.247 GB, free: 2.789 MB / 0.9669 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.0005538/0.3331, allocations: 0.6552 MB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003764/0.3335, allocations: 250.7 kB / 1.248 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3335, allocations: 0 / 1.248 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.862e-05/0.3336, allocations: 23.98 kB / 1.248 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.3339, allocations: 15.98 kB / 1.248 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.336, allocations: 1.717 MB / 1.25 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.3363, allocations: 0.6903 MB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.825e-05/0.3364, allocations: 7.984 kB / 1.251 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.13e-05/0.3364, allocations: 11.44 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.3364, allocations: 4 kB / 1.251 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.3609, allocations: 2.895 MB / 1.253 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.164, allocations: 6.516 kB / 1.253 GB, free: 12.43 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches