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.002061/0.002061, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002634/0.002634, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.499/1.499, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.179/3.179, allocations: 472.6 MB / 0.7448 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 77.42 kB / 0.9116 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5005/0.5018, allocations: 159.9 MB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.002751/0.5047, allocations: 0.7227 MB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001921/0.5066, allocations: 1.186 MB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.15e-05/0.5067, allocations: 4 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.841e-05/0.5068, allocations: 7.938 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.5069, allocations: 7.922 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008041/0.5077, allocations: 199.2 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.508, allocations: 183.7 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.5082, allocations: 11.97 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.5083, allocations: 71.89 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.5084, allocations: 47.86 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.5085, allocations: 16 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.5086, allocations: 27.98 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.5087, allocations: 15.88 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.333e-05/0.5088, allocations: 55.88 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.509, allocations: 151.6 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.509, allocations: 0 / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.855e-06/0.5091, allocations: 0 / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.5091, allocations: 0 / 1.07 GB, free: 8.02 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.000665/0.5097, allocations: 435 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.5098, allocations: 15.97 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.581e-05/0.5099, allocations: 12.84 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.5101, allocations: 160.4 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.5101, allocations: 4.375 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.5102, allocations: 20.36 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.5103, allocations: 42.25 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.5103, allocations: 192 / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.5104, allocations: 3.938 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.5104, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.507e-05/0.5104, allocations: 23.92 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.5111, allocations: 360.6 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.543e-05/0.5112, allocations: 30.52 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.694e-05/0.5112, allocations: 20.94 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.5112, allocations: 0 / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.5115, allocations: 83.31 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.5115, allocations: 0 / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003603/0.5119, allocations: 101.6 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.5119, allocations: 51.41 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.5121, allocations: 121.8 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.5122, allocations: 33.7 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.015e-05/0.5122, allocations: 100 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.5123, allocations: 7.906 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.5124, allocations: 49.69 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5125, allocations: 322.8 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.5127, allocations: 63.97 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.5129, allocations: 92.25 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.5131, allocations: 160 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.5131, allocations: 4 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004679/0.5136, allocations: 264.7 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.594e-05/0.5137, allocations: 73.11 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.5137, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.5137, allocations: 4.125 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.059e-05/0.5137, allocations: 11.92 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.5138, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003981/0.5142, allocations: 55.84 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.5142, allocations: 15.98 kB / 1.073 GB, free: 5.027 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.0001524/0.5144, allocations: 129.7 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.5144, allocations: 4 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.5144, allocations: 8.375 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.5144, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.5145, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5145, allocations: 3.984 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.5147, allocations: 181.5 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5147, allocations: 0 / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.625e-05/0.5147, allocations: 7.938 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5147, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.5147, allocations: 7.984 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.5147, allocations: 4 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5147, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.5149, allocations: 105.4 kB / 1.073 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.515, allocations: 92.98 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.515, allocations: 4 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.004e-05/0.5151, allocations: 0 / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.5151, allocations: 7.984 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.5152, allocations: 3.938 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.284e-05/0.5152, allocations: 91.28 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5152, allocations: 0 / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002731/0.5155, allocations: 35.98 kB / 1.074 GB, free: 4.258 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.000275/0.5158, allocations: 103.2 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005955/0.5164, allocations: 250.6 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5164, allocations: 0 / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.307e-05/0.5165, allocations: 28.23 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.5168, allocations: 21.75 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000513/0.5174, allocations: 176.2 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.5177, allocations: 0.6885 MB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.5178, allocations: 11.77 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.5178, allocations: 11.44 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.5178, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of Templates: time 0.005675/0.5235, allocations: 1.824 MB / 1.077 GB, free: 1.098 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