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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001507/0.001507, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001846/0.001846, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.389/1.389, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.688/2.688, allocations: 461.9 MB / 0.7348 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 70.66 kB / 0.8991 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3531, allocations: 157.4 MB / 1.053 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.002137/0.3553, allocations: 0.6242 MB / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 4.255e-05/0.3554, allocations: 0 / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.471e-05/0.3554, allocations: 3.938 kB / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.563e-05/0.3555, allocations: 4 kB / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.837e-05/0.3555, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.099e-05/0.3555, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.3556, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.445e-05/0.3556, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.888e-05/0.3557, allocations: 4 kB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.3557, allocations: 0 / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.3557, allocations: 0 / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.087e-06/0.3557, allocations: 4 kB / 1.053 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.3557, allocations: 0 / 1.053 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.456e-05/0.3558, allocations: 4 kB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 4.417e-05/0.3558, allocations: 0 / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3558, allocations: 0 / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3558, allocations: 3.938 kB / 1.053 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.3558, allocations: 4 kB / 1.053 GB, free: 7.668 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.0003367/0.3562, allocations: 311.5 kB / 1.054 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3562, allocations: 12.09 kB / 1.054 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.3563, allocations: 4.938 kB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.3564, allocations: 164.3 kB / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.3564, allocations: 384 / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3564, allocations: 384 / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3565, allocations: 38.25 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.3565, allocations: 192 / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.3566, allocations: 3.938 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3566, allocations: 0 / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.577e-05/0.3566, allocations: 0 / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.3569, allocations: 387.5 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.25e-05/0.357, allocations: 169.1 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.383e-05/0.3571, allocations: 84.17 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.244e-05/0.3571, allocations: 75.28 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.3572, allocations: 113.9 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.3572, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 7.873e-05/0.3573, allocations: 33.58 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.3574, allocations: 130.7 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.092e-05/0.3574, allocations: 97.84 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.3575, allocations: 25.7 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/0.3575, allocations: 80.14 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.53e-06/0.3575, allocations: 8.109 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/0.3576, allocations: 13.72 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.3577, allocations: 314.8 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.14e-06/0.3577, allocations: 0 / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-06/0.3577, allocations: 0 / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.232e-05/0.3578, allocations: 75.28 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.653e-05/0.3578, allocations: 75.28 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.269e-05/0.3578, allocations: 37.58 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.3579, allocations: 83.28 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.806e-05/0.3579, allocations: 79.27 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.999e-05/0.358, allocations: 154.6 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.808e-05/0.3581, allocations: 83.22 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.406e-05/0.3581, allocations: 154.5 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.078e-05/0.3582, allocations: 79.22 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.3582, allocations: 83.28 kB / 1.056 GB, free: 4.523 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.0001341/0.3584, allocations: 264.3 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.3584, allocations: 105 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/0.3585, allocations: 112 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.795e-05/0.3586, allocations: 176.3 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.16e-05/0.3586, allocations: 184.2 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.739e-05/0.3587, allocations: 180.3 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002468/0.359, allocations: 405.2 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.871e-05/0.359, allocations: 108.9 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.532e-05/0.3591, allocations: 101 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.642e-05/0.3592, allocations: 192.5 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-05/0.3592, allocations: 180.3 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.401e-05/0.3593, allocations: 176.3 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-05/0.3594, allocations: 184.2 kB / 1.059 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.3595, allocations: 311.7 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.3596, allocations: 182.1 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.438e-05/0.3597, allocations: 180.3 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-05/0.3598, allocations: 104.9 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.809e-05/0.3599, allocations: 180.2 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.998e-05/0.3599, allocations: 116.9 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.985e-05/0.36, allocations: 75.28 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.36, allocations: 4.094 kB / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002702/0.3603, allocations: 0 / 1.06 GB, free: 0.8555 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.0001622/0.3604, allocations: 178.5 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 3.926e-05/0.3605, allocations: 0 / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3605, allocations: 0 / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.503e-06/0.3605, allocations: 0 / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.3609, allocations: 0.5301 MB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002607/0.3612, allocations: 187.6 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3615, allocations: 0.6692 MB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.3615, allocations: 7.438 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3615, allocations: 0 / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of Templates: time 0.001694/0.3632, allocations: 318.8 kB / 1.061 GB, free: 14.9 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/jenkins1/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