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 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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001316, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00273/0.00273, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.588/1.588, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.941/2.941, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.22 kB / 0.9114 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4396/0.4409, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.002294/0.4432, allocations: 0.7138 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.4451, allocations: 1.213 MB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.4452, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.737e-05/0.4453, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.4454, allocations: 11.92 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007208/0.4461, allocations: 198.7 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.4463, allocations: 151.7 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.4465, allocations: 12 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.928e-05/0.4466, allocations: 63.88 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.4467, allocations: 43.88 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.4467, allocations: 8 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.4468, allocations: 27.86 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.617e-05/0.4469, allocations: 11.98 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.447, allocations: 51.83 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.4472, allocations: 147.6 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4472, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.173e-06/0.4472, allocations: 4 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.4473, allocations: 0 / 1.07 GB, free: 8.223 MB / 0.8262 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.0006591/0.4479, allocations: 431 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.448, allocations: 12.03 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.251e-05/0.4481, allocations: 8.844 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.4482, allocations: 172.3 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.4483, allocations: 4.375 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.4483, allocations: 12.38 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.4484, allocations: 50.23 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4485, allocations: 4.188 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.4485, allocations: 3.938 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.4485, allocations: 3.984 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.533e-05/0.4485, allocations: 12 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.4491, allocations: 360.6 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.008e-05/0.4492, allocations: 34.5 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.845e-05/0.4492, allocations: 24.86 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.4492, allocations: 0 / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.4494, allocations: 83.39 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.4494, allocations: 0 / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003045/0.4497, allocations: 109.5 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.4498, allocations: 51.41 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.4499, allocations: 113.8 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.45, allocations: 37.7 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.955e-05/0.4501, allocations: 96.41 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.268e-05/0.4501, allocations: 7.906 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.4502, allocations: 49.69 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4503, allocations: 318.8 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.4505, allocations: 67.89 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.4506, allocations: 96.2 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.4509, allocations: 159.6 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4509, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004238/0.4513, allocations: 264.9 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.423e-05/0.4514, allocations: 71.39 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.4514, allocations: 4 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.4514, allocations: 0 / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.567e-05/0.4514, allocations: 4 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4515, allocations: 0 / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.4518, allocations: 59.83 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.4519, allocations: 12 kB / 1.073 GB, free: 5.234 MB / 0.8262 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.0001368/0.452, allocations: 137.7 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.4521, allocations: 0 / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.4521, allocations: 12.38 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4521, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4521, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4521, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.4523, allocations: 181.5 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4524, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-06/0.4524, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4524, allocations: 8.094 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.4524, allocations: 7.938 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4524, allocations: 0 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4524, allocations: 0 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.4526, allocations: 112.9 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.575e-05/0.4526, allocations: 81.02 kB / 1.073 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.4527, allocations: 8 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.319e-05/0.4527, allocations: 3.984 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.4528, allocations: 8 kB / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.4528, allocations: 0 / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.176e-05/0.4528, allocations: 91.27 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4528, allocations: 0 / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002468/0.4531, allocations: 32 kB / 1.073 GB, free: 4.469 MB / 0.8262 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.0002257/0.4533, allocations: 107.2 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003994/0.4537, allocations: 246.8 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4537, allocations: 4.062 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.404e-05/0.4538, allocations: 27.94 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.4541, allocations: 17.95 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004474/0.4545, allocations: 164.5 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.4549, allocations: 0.6887 MB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.032e-05/0.4549, allocations: 7.781 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.274e-05/0.4549, allocations: 11.44 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of SimCode: time 2.164e-06/0.4549, allocations: 0 / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of Templates: time 0.004878/0.4598, allocations: 1.767 MB / 1.076 GB, free: 1.375 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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