Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001776, allocations: 197.2 kB / 16.14 MB, free: 6.734 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.644/1.644, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.788/2.788, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001365, allocations: 66.94 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.418, allocations: 157.4 MB / 1.052 GB, free: 8.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001995/0.4201, allocations: 0.626 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 4.121e-05/0.4201, allocations: 0 / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.4202, allocations: 0 / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.415e-05/0.4202, allocations: 0 / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.132e-05/0.4202, allocations: 0 / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.203e-05/0.4203, allocations: 4 kB / 1.053 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.505e-05/0.4203, allocations: 0 / 1.053 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.147e-05/0.4204, allocations: 11.98 kB / 1.053 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.743e-05/0.4204, allocations: 3.938 kB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.29e-05/0.4205, allocations: 0 / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.4205, allocations: 0 / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.769e-06/0.4205, allocations: 0 / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.4205, allocations: 0 / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.37e-05/0.4205, allocations: 3.938 kB / 1.053 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 5.615e-05/0.4206, allocations: 4 kB / 1.053 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4206, allocations: 0 / 1.053 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4206, allocations: 0 / 1.053 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.4206, allocations: 0 / 1.053 GB, free: 8.211 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003188/0.4209, allocations: 324.5 kB / 1.053 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.421, allocations: 8.031 kB / 1.053 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.421, allocations: 0.9375 kB / 1.053 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.4212, allocations: 164.4 kB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.4212, allocations: 4.375 kB / 1.053 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-06/0.4212, allocations: 384 / 1.053 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.992e-05/0.4213, allocations: 30.25 kB / 1.053 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4213, allocations: 192 / 1.053 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.4213, allocations: 7.938 kB / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4213, allocations: 0 / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.865e-05/0.4213, allocations: 7.938 kB / 1.053 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003123/0.4216, allocations: 379.5 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.287e-05/0.4217, allocations: 177 kB / 1.054 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.782e-05/0.4218, allocations: 84.14 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.4218, allocations: 75.28 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.4219, allocations: 109.8 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 8.32e-07/0.4219, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.669e-05/0.4219, allocations: 29.73 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.422, allocations: 130.7 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.289e-05/0.4221, allocations: 109.8 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.4221, allocations: 25.7 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.92e-05/0.4221, allocations: 80.14 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.453e-06/0.4221, allocations: 0 / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.4222, allocations: 9.719 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4223, allocations: 310.8 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-06/0.4223, allocations: 0 / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.119e-06/0.4223, allocations: 4 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.361e-05/0.4223, allocations: 75.41 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-05/0.4224, allocations: 87.22 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.24e-05/0.4224, allocations: 29.64 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.4225, allocations: 84.53 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-05/0.4225, allocations: 79.28 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.466e-05/0.4226, allocations: 158.5 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.716e-05/0.4226, allocations: 75.28 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.181e-05/0.4227, allocations: 162.5 kB / 1.055 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.461e-05/0.4227, allocations: 75.28 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.4228, allocations: 75.28 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001155/0.4229, allocations: 265.9 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.423, allocations: 108.9 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.979e-05/0.423, allocations: 108.1 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.07e-05/0.4231, allocations: 184.2 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.813e-05/0.4231, allocations: 180.3 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.455e-05/0.4232, allocations: 176.5 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.4234, allocations: 409.1 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/0.4235, allocations: 101 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.4235, allocations: 120.9 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-05/0.4236, allocations: 176.3 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.63e-05/0.4236, allocations: 180.2 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.695e-05/0.4237, allocations: 184.2 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.829e-05/0.4238, allocations: 180.3 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.4239, allocations: 307.7 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.957e-05/0.424, allocations: 186.1 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.4241, allocations: 180.2 kB / 1.058 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.561e-05/0.4242, allocations: 101 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.4242, allocations: 188.1 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.4243, allocations: 112.9 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.668e-05/0.4243, allocations: 79.28 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4243, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002624/0.4246, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001647/0.4248, allocations: 174.5 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 4.552e-05/0.4248, allocations: 0 / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4248, allocations: 4.031 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.4248, allocations: 4 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.4252, allocations: 0.5224 MB / 1.06 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000218/0.4255, allocations: 157.9 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.4257, allocations: 0.6692 MB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.719e-06/0.4258, allocations: 8 kB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.029e-05/0.4258, allocations: 7.438 kB / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.4258, allocations: 0 / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of Templates: time 0.001963/0.4278, allocations: 152.8 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches