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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.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.008317/0.008317, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001776/0.001777, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.533/1.533, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.744/2.744, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 67.89 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3601, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.002117/0.3622, allocations: 0.6568 MB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3639, allocations: 1.184 MB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.256e-05/0.364, allocations: 8 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.588e-05/0.3641, allocations: 3.938 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.3642, allocations: 11.86 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007513/0.365, allocations: 215.8 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.3653, allocations: 183.7 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3654, allocations: 11.98 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.3656, allocations: 67.89 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.3657, allocations: 63.83 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.3658, allocations: 19.94 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.714e-05/0.3659, allocations: 27.98 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.3659, allocations: 8 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.675e-05/0.366, allocations: 59.81 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.3662, allocations: 147.5 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3663, allocations: 4 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3663, allocations: 0 / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.3663, allocations: 4 kB / 1.222 GB, free: 11.97 MB / 0.9825 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.0006104/0.3669, allocations: 434.7 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.367, allocations: 12.03 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.193e-05/0.367, allocations: 30.75 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.268e-05/0.3671, allocations: 12.89 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3672, allocations: 172.3 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.3673, allocations: 12.31 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.3673, allocations: 16.31 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.3674, allocations: 42.25 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3675, allocations: 11.94 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3675, allocations: 0 / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3675, allocations: 0 / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.479e-05/0.3675, allocations: 15.98 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005153/0.368, allocations: 356.7 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.572e-05/0.3681, allocations: 34.52 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.964e-05/0.3682, allocations: 16.94 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-06/0.3682, allocations: 4 kB / 1.223 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.3684, allocations: 75.38 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 3.046e-06/0.3684, allocations: 3.984 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0002557/0.3687, allocations: 109.5 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.3687, allocations: 55.41 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.425e-05/0.3688, allocations: 117.8 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.3688, allocations: 29.7 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.3689, allocations: 100.1 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.369, allocations: 15.89 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.3691, allocations: 49.69 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.3692, allocations: 314.8 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3693, allocations: 59.97 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.3695, allocations: 96.75 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.3697, allocations: 164 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3697, allocations: 3.938 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004129/0.3701, allocations: 256.8 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.455e-05/0.3702, allocations: 71.53 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3702, allocations: 3.984 kB / 1.225 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.3702, allocations: 0 / 1.225 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.936e-05/0.3702, allocations: 4 kB / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3702, allocations: 0 / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.3706, allocations: 59.83 kB / 1.225 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.3706, allocations: 15.98 kB / 1.225 GB, free: 8.934 MB / 0.9825 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.0001138/0.3707, allocations: 134.2 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.3708, allocations: 7.953 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.3708, allocations: 8.375 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3708, allocations: 0 / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3708, allocations: 0 / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3708, allocations: 0 / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.371, allocations: 181.6 kB / 1.225 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.371, allocations: 0 / 1.225 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.928e-06/0.371, allocations: 4 kB / 1.225 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.371, allocations: 4 kB / 1.225 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.371, allocations: 4 kB / 1.225 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.371, allocations: 0 / 1.225 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.371, allocations: 4.047 kB / 1.225 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.3712, allocations: 113 kB / 1.225 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.975e-05/0.3712, allocations: 89.09 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.3713, allocations: 0 / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.979e-05/0.3713, allocations: 0 / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.3713, allocations: 8 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.3713, allocations: 3.984 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.308e-05/0.3714, allocations: 87.28 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3714, allocations: 0 / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002445/0.3717, allocations: 36.27 kB / 1.226 GB, free: 8.164 MB / 0.9825 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.0005325/0.3722, allocations: 0.6591 MB / 1.226 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003626/0.3726, allocations: 242.7 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3726, allocations: 7.938 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.869e-05/0.3726, allocations: 23.98 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.3729, allocations: 25.58 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.3748, allocations: 1.72 MB / 1.228 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3751, allocations: 0.6885 MB / 1.229 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.032e-05/0.3752, allocations: 8 kB / 1.229 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.3752, allocations: 19.44 kB / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3752, allocations: 0 / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.3974, allocations: 2.894 MB / 1.232 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/8.07, allocations: 6.188 kB / 1.232 GB, free: 1.797 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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