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.001579/0.001579, 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.00178/0.001781, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.484/1.484, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.705/2.705, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 63.91 kB / 0.8692 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7041/0.7056, 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.002201/0.7079, allocations: 0.5512 MB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 5.625e-05/0.708, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.513e-05/0.708, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.486e-05/0.7081, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.257e-05/0.7081, allocations: 4 kB / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.627e-05/0.7081, allocations: 0 / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.532e-05/0.7082, allocations: 7.938 kB / 1.018 GB, free: 1.949 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.661e-05/0.7083, allocations: 0 / 1.018 GB, free: 1.949 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.468e-05/0.7083, allocations: 8 kB / 1.018 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.31e-05/0.7084, allocations: 0 / 1.018 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.7084, allocations: 3.984 kB / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 3.497e-06/0.7084, allocations: 0 / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.7084, allocations: 0 / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.411e-05/0.7084, allocations: 0 / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.67e-05/0.7085, allocations: 3.938 kB / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.7085, allocations: 7.875 kB / 1.018 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.927e-06/0.7085, allocations: 7.984 kB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.7086, allocations: 4 kB / 1.018 GB, free: 1.914 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.0004176/0.709, allocations: 311.5 kB / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 6.282e-05/0.709, allocations: 12.06 kB / 1.018 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.7091, allocations: 0.9375 kB / 1.018 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.7093, allocations: 160.4 kB / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.7093, allocations: 384 / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.7093, allocations: 4.359 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.7094, allocations: 30.27 kB / 1.018 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.7094, allocations: 4.188 kB / 1.018 GB, free: 1.309 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.7094, allocations: 3.938 kB / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.7095, allocations: 0 / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.98e-05/0.7095, allocations: 0 / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003782/0.7099, allocations: 383.5 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.71, allocations: 173.1 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.351e-05/0.71, allocations: 84.14 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.7101, allocations: 75.28 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/0.7101, allocations: 113.8 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.7102, allocations: 0 / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of matching and sorting (n=0): time 8.27e-05/0.7102, allocations: 29.64 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.7103, allocations: 126.7 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.331e-05/0.7104, allocations: 101.8 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.7105, allocations: 25.7 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 5.294e-05/0.7105, allocations: 84.14 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-06/0.7105, allocations: 4 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.7105, allocations: 9.719 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002112/0.7108, allocations: 310.8 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-06/0.7108, allocations: 0 / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-06/0.7108, allocations: 128 / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.404e-05/0.7108, allocations: 79.28 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.29e-05/0.7109, allocations: 75.28 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.005e-05/0.7109, allocations: 37.58 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.711, allocations: 81.62 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-05/0.711, allocations: 83.27 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.333e-05/0.7111, allocations: 158.4 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.863e-05/0.7112, allocations: 79.31 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-05/0.7112, allocations: 158.6 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.36e-05/0.7113, allocations: 83.22 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.7114, allocations: 75.28 kB / 1.021 GB, free: 14.79 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.0001297/0.7115, allocations: 260.3 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.7116, allocations: 108.9 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.44e-05/0.7116, allocations: 120 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.528e-05/0.7117, allocations: 176.3 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-05/0.7118, allocations: 184.2 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.052e-05/0.7119, allocations: 176.3 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.7122, allocations: 413.1 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.964e-05/0.7122, allocations: 105 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.443e-05/0.7123, allocations: 101 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.262e-05/0.7124, allocations: 188.2 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.974e-05/0.7125, allocations: 176.3 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.899e-05/0.7125, allocations: 180.2 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.489e-05/0.7126, allocations: 176.3 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.7127, allocations: 319.7 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.7128, allocations: 182.5 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.914e-05/0.7129, allocations: 180.2 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.161e-05/0.713, allocations: 105 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.034e-05/0.7131, allocations: 188.2 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-05/0.7132, allocations: 109 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.739e-05/0.7132, allocations: 75.28 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7132, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003008/0.7135, 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.0002076/0.7137, allocations: 174.5 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 4.762e-05/0.7138, allocations: 4.094 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.7138, allocations: 0 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.529e-06/0.7138, allocations: 3.938 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.7143, allocations: 463.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.0002513/0.7145, 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.0003205/0.7149, allocations: 0.6729 MB / 1.026 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.379e-05/0.7149, allocations: 0 / 1.026 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.7149, allocations: 11.38 kB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of SimCode: time 5.91e-07/0.7149, allocations: 0 / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.002139/0.7171, allocations: 172.9 kB / 1.026 GB, free: 9.402 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=480 -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