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.001545/0.001545, allocations: 103.3 kB / 16.27 MB, free: 5.98 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.001667/0.001667, allocations: 187.7 kB / 17.19 MB, free: 5.605 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.395/1.395, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.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.514/2.514, allocations: 437.1 MB / 0.7111 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 60.81 kB / 0.8699 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3159, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001934/0.3178, allocations: 0.5465 MB / 1.019 GB, free: 10.05 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 3.49e-05/0.3179, allocations: 7.938 kB / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.922e-05/0.3179, allocations: 0 / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.926e-05/0.318, allocations: 0 / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.479e-05/0.318, allocations: 0 / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 3.157e-05/0.3181, allocations: 8 kB / 1.019 GB, free: 10.03 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.604e-05/0.3181, allocations: 3.938 kB / 1.019 GB, free: 10.03 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.97e-05/0.3182, allocations: 3.984 kB / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.359e-05/0.3182, allocations: 4 kB / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 1.742e-05/0.3182, allocations: 3.984 kB / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.768e-06/0.3182, allocations: 0 / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 3.456e-06/0.3182, allocations: 0 / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.718e-06/0.3182, allocations: 0 / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.094e-05/0.3183, allocations: 0 / 1.019 GB, free: 10.02 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 5.166e-05/0.3183, allocations: 7.938 kB / 1.019 GB, free: 10.01 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3183, allocations: 0 / 1.019 GB, free: 10.01 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3183, allocations: 4 kB / 1.019 GB, free: 10 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.3183, allocations: 4 kB / 1.019 GB, free: 10 MB / 0.795 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.0003223/0.3187, allocations: 311.5 kB / 1.019 GB, free: 9.645 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3187, allocations: 12.06 kB / 1.019 GB, free: 9.633 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.3187, allocations: 0.9375 kB / 1.019 GB, free: 9.633 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.3189, allocations: 160.4 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.3189, allocations: 384 / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-06/0.3189, allocations: 4.312 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.106e-05/0.319, allocations: 38.27 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.319, allocations: 4.188 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-06/0.319, allocations: 3.938 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.319, allocations: 0 / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.485e-05/0.3191, allocations: 7.922 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.3194, allocations: 375.5 kB / 1.019 GB, free: 8.957 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 9.862e-05/0.3195, allocations: 181.1 kB / 1.02 GB, free: 8.77 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.283e-05/0.3196, allocations: 84.12 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.3196, allocations: 79.22 kB / 1.02 GB, free: 8.605 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/0.3197, allocations: 105.8 kB / 1.02 GB, free: 8.492 MB / 0.795 GB Notification: Performance of pre-optimization done (n=0): time 2.775e-06/0.3197, allocations: 3.984 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of matching and sorting (n=0): time 6.619e-05/0.3197, allocations: 25.7 kB / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.3198, allocations: 130.7 kB / 1.02 GB, free: 8.316 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.935e-05/0.3199, allocations: 97.86 kB / 1.02 GB, free: 8.211 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.3199, allocations: 25.7 kB / 1.02 GB, free: 8.18 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.482e-05/0.32, allocations: 80.14 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.683e-06/0.32, allocations: 4 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.32, allocations: 13.7 kB / 1.02 GB, free: 8.074 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3201, allocations: 310.8 kB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.536e-06/0.3202, allocations: 128 / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.943e-06/0.3202, allocations: 7.938 kB / 1.021 GB, free: 7.754 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.3202, allocations: 83.22 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.893e-05/0.3202, allocations: 75.28 kB / 1.021 GB, free: 7.598 MB / 0.795 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.126e-05/0.3203, allocations: 33.64 kB / 1.021 GB, free: 7.559 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.3203, allocations: 79.28 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.591e-05/0.3204, allocations: 79.28 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.215e-05/0.3205, allocations: 154.5 kB / 1.021 GB, free: 7.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.002e-05/0.3205, allocations: 79.28 kB / 1.021 GB, free: 7.172 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.546e-05/0.3206, allocations: 158.5 kB / 1.021 GB, free: 7.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.3207, allocations: 80.81 kB / 1.021 GB, free: 6.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.3207, allocations: 75.28 kB / 1.021 GB, free: 6.863 MB / 0.795 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.0001652/0.3209, allocations: 268.9 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.321, allocations: 105 kB / 1.022 GB, free: 6.48 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.839e-05/0.321, allocations: 112.1 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.539e-05/0.3211, allocations: 180.2 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.578e-05/0.3212, allocations: 176.3 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.843e-05/0.3213, allocations: 180.3 kB / 1.022 GB, free: 5.816 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.3215, allocations: 413.1 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.462e-05/0.3216, allocations: 105 kB / 1.023 GB, free: 5.246 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.3216, allocations: 104.9 kB / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.512e-05/0.3217, allocations: 184.3 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.976e-05/0.3218, allocations: 184.1 kB / 1.023 GB, free: 4.762 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.488e-05/0.3219, allocations: 180.6 kB / 1.024 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.99e-05/0.322, allocations: 180.3 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.3221, allocations: 311.7 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.621e-05/0.3222, allocations: 190 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.41e-05/0.3223, allocations: 176.3 kB / 1.024 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.618e-05/0.3224, allocations: 105 kB / 1.024 GB, free: 3.566 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.3225, allocations: 184.2 kB / 1.025 GB, free: 3.379 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/0.3226, allocations: 105 kB / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.883e-05/0.3226, allocations: 83.27 kB / 1.025 GB, free: 3.188 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.3226, allocations: 0 / 1.025 GB, free: 3.188 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002552/0.3229, allocations: 0 / 1.025 GB, free: 3.188 MB / 0.795 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.0001389/0.323, allocations: 174.5 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 3.956e-05/0.3231, allocations: 8.031 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3231, allocations: 0 / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 3.186e-06/0.3231, allocations: 0 / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.3235, allocations: 466.2 kB / 1.025 GB, free: 2.543 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002465/0.3237, allocations: 194 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.324, allocations: 0.6768 MB / 1.026 GB, free: 1.617 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.3241, allocations: 7.438 kB / 1.026 GB, free: 1.609 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3241, allocations: 0 / 1.026 GB, free: 1.609 MB / 0.795 GB Notification: Performance of Templates: time 0.001699/0.3258, allocations: 320.4 kB / 1.027 GB, free: 1.297 MB / 0.795 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/jenkins1/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