Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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.Or,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Or,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or",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.008181/0.008181, allocations: 104.4 kB / 15.73 MB, free: 6.035 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.001679/0.00168, allocations: 196.8 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 67.84 kB / 1.054 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.343, allocations: 157.4 MB / 1.207 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.002102/0.3451, allocations: 0.6423 MB / 1.208 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001934/0.3471, allocations: 1.19 MB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.359e-05/0.3472, allocations: 0 / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.3472, allocations: 3.938 kB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.081e-05/0.3474, allocations: 11.92 kB / 1.209 GB, free: 8.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007899/0.3482, allocations: 218.4 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.3485, allocations: 183.7 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.3486, allocations: 15.98 kB / 1.209 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3487, allocations: 71.81 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.3489, allocations: 63.8 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.349, allocations: 12 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.3491, allocations: 35.97 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.3491, allocations: 8 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.3492, allocations: 51.83 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.3495, allocations: 155.9 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3495, allocations: 0 / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.404e-06/0.3495, allocations: 4 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.3495, allocations: 0 / 1.21 GB, free: 7.43 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.0007254/0.3503, allocations: 442.6 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.3503, allocations: 8.625 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.47e-05/0.3504, allocations: 30.75 kB / 1.21 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.285e-05/0.3505, allocations: 12.92 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.3506, allocations: 172.2 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.3507, allocations: 8.375 kB / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.3507, allocations: 8.375 kB / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.3509, allocations: 50.23 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3509, allocations: 11.92 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3509, allocations: 0 / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.3509, allocations: 0 / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.74e-05/0.3509, allocations: 12 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.3515, allocations: 356.6 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.302e-05/0.3516, allocations: 34.56 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.389e-05/0.3517, allocations: 16.86 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.3517, allocations: 0 / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.3519, allocations: 91.34 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3519, allocations: 3.938 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000276/0.3522, allocations: 93.67 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3522, allocations: 59.41 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.714e-05/0.3523, allocations: 121.7 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.3524, allocations: 33.7 kB / 1.211 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.463e-05/0.3524, allocations: 92.12 kB / 1.211 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.3525, allocations: 15.8 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-05/0.3526, allocations: 45.69 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3527, allocations: 326.8 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.3528, allocations: 55.97 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.353, allocations: 96.2 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.3532, allocations: 159.6 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3532, allocations: 0 / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004097/0.3536, allocations: 264.9 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.305e-05/0.3537, allocations: 68.95 kB / 1.212 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3537, allocations: 0 / 1.212 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3537, allocations: 4 kB / 1.212 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.426e-05/0.3538, allocations: 0 / 1.212 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3538, allocations: 4.312 kB / 1.212 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.3541, allocations: 59.91 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.3542, allocations: 11.98 kB / 1.213 GB, free: 4.402 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,or1.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.0001133/0.3543, allocations: 133.7 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.983e-05/0.3543, allocations: 7.906 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.3543, allocations: 12.36 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3544, allocations: 4 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3544, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3544, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.3545, allocations: 174.1 kB / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3546, allocations: 0 / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.208e-05/0.3546, allocations: 7.984 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3546, allocations: 0 / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3546, allocations: 8 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3546, allocations: 3.938 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3546, allocations: 3.984 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.3548, allocations: 113.5 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.3548, allocations: 81.02 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.3549, allocations: 4 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.102e-05/0.3549, allocations: 4 kB / 1.213 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.3549, allocations: 7.984 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.3549, allocations: 4 kB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.114e-05/0.355, allocations: 91.27 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of sort global known variables: time 5.41e-07/0.355, allocations: 0 / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000254/0.3553, allocations: 32 kB / 1.213 GB, free: 3.625 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,or1.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.0005815/0.3559, allocations: 0.6474 MB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003894/0.3563, allocations: 250.7 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3563, allocations: 0 / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.617e-05/0.3563, allocations: 23.98 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3566, allocations: 21.98 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.3589, allocations: 1.717 MB / 1.216 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.3592, allocations: 0.6924 MB / 1.216 GB, free: 88 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.692e-05/0.3592, allocations: 4 kB / 1.216 GB, free: 84 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.3593, allocations: 19.42 kB / 1.216 GB, free: 64 kB / 0.9669 GB Notification: Performance of SimCode: time 4.9e-07/0.3593, allocations: 0 / 1.216 GB, free: 64 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.3777, allocations: 2.946 MB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/7.774, allocations: 8.281 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches