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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01024/0.01024, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001707/0.001707, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.464/1.464, 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.0.1-master/package.mo): time 2.837/2.837, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 67.91 kB / 1.054 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3118, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002147/0.314, allocations: 0.6543 MB / 1.208 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001843/0.3159, allocations: 1.186 MB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.316, allocations: 3.938 kB / 1.209 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.316, allocations: 3.938 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.785e-05/0.3161, allocations: 11.86 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000767/0.3169, allocations: 219.1 kB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.3172, allocations: 191.6 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.828e-05/0.3173, allocations: 8 kB / 1.21 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.3174, allocations: 67.88 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3176, allocations: 59.84 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.3176, allocations: 20 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.3177, allocations: 31.98 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.508e-05/0.3177, allocations: 7.984 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.626e-05/0.3178, allocations: 51.84 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.3181, allocations: 163.8 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3181, allocations: 0 / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.955e-06/0.3181, allocations: 0 / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.3181, allocations: 0 / 1.21 GB, free: 7.496 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.0006519/0.3188, allocations: 438.6 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.3188, allocations: 12.61 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.535e-05/0.3189, allocations: 34.75 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.997e-05/0.319, allocations: 8.938 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.3192, allocations: 168.3 kB / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.3192, allocations: 8.375 kB / 1.211 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.375e-05/0.3192, allocations: 12.36 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.3194, allocations: 46.23 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3194, allocations: 3.938 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3194, allocations: 8 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3194, allocations: 0 / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.879e-05/0.3195, allocations: 19.92 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/0.3201, allocations: 356.7 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.3202, allocations: 34.58 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.433e-05/0.3202, allocations: 12.94 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.3203, allocations: 0 / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002566/0.3205, allocations: 91.22 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.824e-06/0.3205, allocations: 0 / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003215/0.3209, allocations: 101.6 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.321, allocations: 55.41 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.3211, allocations: 125.7 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.3212, allocations: 29.7 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.512e-05/0.3213, allocations: 92.12 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.3213, allocations: 15.81 kB / 1.211 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.3214, allocations: 45.69 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3216, allocations: 326.8 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.3217, allocations: 55.97 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.3219, allocations: 96.25 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.3221, allocations: 159.6 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.3221, allocations: 3.938 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004412/0.3226, allocations: 256.9 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.27e-05/0.3227, allocations: 67.39 kB / 1.212 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3227, allocations: 0 / 1.212 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3227, allocations: 4.469 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.709e-05/0.3228, allocations: 7.938 kB / 1.212 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3228, allocations: 12.11 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.3231, allocations: 51.84 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.3232, allocations: 8 kB / 1.213 GB, free: 4.469 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.0001348/0.3233, allocations: 133.6 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.3233, allocations: 7.906 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.3234, allocations: 12.38 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3234, allocations: 4 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3234, allocations: 0 / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3234, allocations: 0 / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.3236, allocations: 181.6 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3236, allocations: 0 / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.3236, allocations: 3.938 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.3236, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.3236, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3236, allocations: 4 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3236, allocations: 0 / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.3238, allocations: 113.5 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.3238, allocations: 85.02 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.3238, allocations: 3.984 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.854e-05/0.3239, allocations: 0 / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.934e-05/0.3239, allocations: 4 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3239, allocations: 8 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.907e-05/0.324, allocations: 91.27 kB / 1.213 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.324, allocations: 4 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000236/0.3242, allocations: 28 kB / 1.213 GB, free: 3.699 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.0004796/0.3247, allocations: 0.6478 MB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003345/0.3251, allocations: 254.7 kB / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3251, allocations: 4.25 kB / 1.214 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.781e-05/0.3251, allocations: 27.94 kB / 1.214 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.3254, allocations: 16.2 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.3274, allocations: 1.719 MB / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.3277, allocations: 0.6846 MB / 1.216 GB, free: 160 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.303e-05/0.3278, allocations: 7.984 kB / 1.216 GB, free: 152 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3278, allocations: 19.44 kB / 1.216 GB, free: 132 kB / 0.9669 GB Notification: Performance of SimCode: time 3.3e-07/0.3278, allocations: 0 / 1.216 GB, free: 132 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.3483, allocations: 2.96 MB / 1.219 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.899, allocations: 0.5938 kB / 1.219 GB, free: 13.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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