Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.00182/0.001821, allocations: 108 kB / 15.6 MB, free: 132 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.00184/0.00184, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.582/1.582, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.991/2.991, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002022, allocations: 71.89 kB / 0.8693 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8645/0.8666, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.002089/0.8687, allocations: 0.5461 MB / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 4.356e-05/0.8688, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.133e-05/0.8688, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.29e-05/0.8689, allocations: 11.88 kB / 1.018 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.471e-05/0.8689, allocations: 0 / 1.018 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.614e-05/0.869, allocations: 4 kB / 1.018 GB, free: 1.949 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.972e-05/0.869, allocations: 3.938 kB / 1.018 GB, free: 1.945 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.369e-05/0.8691, allocations: 7.984 kB / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.308e-05/0.8691, allocations: 4 kB / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.135e-05/0.8692, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.8692, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 4.679e-06/0.8692, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.8692, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.435e-05/0.8692, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.021e-05/0.8693, allocations: 11.92 kB / 1.018 GB, free: 1.922 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.8693, allocations: 4 kB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8693, allocations: 0 / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.8693, allocations: 0 / 1.018 GB, free: 1.918 MB / 0.7637 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.0004105/0.8698, allocations: 315.5 kB / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.8698, allocations: 12.06 kB / 1.018 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.8698, allocations: 0.9375 kB / 1.018 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.87, allocations: 160.4 kB / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.87, allocations: 384 / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.87, allocations: 4.359 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.665e-05/0.8701, allocations: 38.2 kB / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.8702, allocations: 192 / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.8702, allocations: 7.938 kB / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.8702, allocations: 0 / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.345e-05/0.8702, allocations: 0 / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.8706, allocations: 379.5 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.8708, allocations: 177 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.188e-05/0.8708, allocations: 84.14 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.8709, allocations: 79.27 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/0.8709, allocations: 105.8 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.871, allocations: 0 / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of matching and sorting (n=0): time 7.887e-05/0.871, allocations: 25.7 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.8711, allocations: 130.7 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.8712, allocations: 97.86 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.8713, allocations: 25.7 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.8713, allocations: 88.08 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.165e-06/0.8713, allocations: 0 / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.8714, allocations: 9.719 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.8715, allocations: 314.8 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.813e-06/0.8716, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.306e-06/0.8716, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.188e-05/0.8716, allocations: 79.34 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.314e-05/0.8717, allocations: 87.28 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0) (initialization): time 7.517e-05/0.8718, allocations: 33.64 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.8718, allocations: 79.28 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-05/0.8719, allocations: 83.22 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.038e-05/0.872, allocations: 154.5 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.425e-05/0.872, allocations: 79.31 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.719e-05/0.8721, allocations: 162.5 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.8722, allocations: 79.28 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.8722, allocations: 79.22 kB / 1.021 GB, free: 14.77 MB / 0.7794 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.0001543/0.8724, allocations: 264.3 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.717e-05/0.8724, allocations: 105 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.79e-05/0.8725, allocations: 104.1 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.857e-05/0.8726, allocations: 188.2 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-05/0.8727, allocations: 176.3 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.464e-05/0.8728, allocations: 188.2 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.8731, allocations: 401.2 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.208e-05/0.8732, allocations: 104.9 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.77e-05/0.8732, allocations: 105 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.483e-05/0.8733, allocations: 180.3 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.8735, allocations: 184.2 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.438e-05/0.8736, allocations: 180.2 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-05/0.8737, allocations: 180.2 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.8739, allocations: 311.8 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.874, allocations: 190.4 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.8741, allocations: 176.3 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.659e-05/0.8742, allocations: 104.9 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.8744, allocations: 180.3 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.8744, allocations: 109 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.8745, allocations: 79.28 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8745, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002685/0.8748, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 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.000179/0.8749, allocations: 182.5 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.126e-05/0.875, allocations: 0 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.875, allocations: 0 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.875, allocations: 4.094 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.8755, allocations: 459.6 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00027/0.8758, allocations: 164.2 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.8762, allocations: 0.6729 MB / 1.026 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.007e-05/0.8762, allocations: 0 / 1.026 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.8762, allocations: 15.38 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8762, allocations: 3.938 kB / 1.026 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of Templates: time 0.002404/0.8787, allocations: 158.7 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches