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.001475/0.001475, allocations: 111 kB / 15.99 MB, free: 6.348 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.001642/0.001642, allocations: 187.7 kB / 16.91 MB, free: 6.188 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.346/1.346, allocations: 222.9 MB / 240.6 MB, free: 15.45 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.443/2.443, allocations: 437 MB / 0.7107 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001314, allocations: 68.55 kB / 0.8694 GB, free: 2.559 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2995, allocations: 151.6 MB / 1.017 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001908/0.3014, allocations: 0.6098 MB / 1.018 GB, free: 10.38 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 4.249e-05/0.3015, allocations: 0 / 1.018 GB, free: 10.38 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.732e-05/0.3015, allocations: 7.875 kB / 1.018 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.3016, allocations: 0 / 1.018 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.757e-05/0.3016, allocations: 0 / 1.018 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 3.214e-05/0.3016, allocations: 0 / 1.018 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.668e-05/0.3017, allocations: 0 / 1.018 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.457e-05/0.3018, allocations: 7.984 kB / 1.018 GB, free: 10.36 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.465e-05/0.3018, allocations: 0 / 1.018 GB, free: 10.36 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.223e-05/0.3018, allocations: 7.984 kB / 1.018 GB, free: 10.36 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.3018, allocations: 7.938 kB / 1.018 GB, free: 10.35 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 4.228e-06/0.3018, allocations: 0 / 1.018 GB, free: 10.35 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.3019, allocations: 0 / 1.018 GB, free: 10.35 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.463e-05/0.3019, allocations: 4 kB / 1.018 GB, free: 10.34 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 4.634e-05/0.3019, allocations: 0 / 1.018 GB, free: 10.34 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3019, allocations: 0 / 1.018 GB, free: 10.34 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3019, allocations: 3.938 kB / 1.018 GB, free: 10.34 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.302, allocations: 0 / 1.018 GB, free: 10.34 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.0003162/0.3023, allocations: 315.5 kB / 1.018 GB, free: 9.98 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.3023, allocations: 8.922 kB / 1.018 GB, free: 9.973 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.3024, allocations: 4.938 kB / 1.018 GB, free: 9.969 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.3025, allocations: 164.4 kB / 1.019 GB, free: 9.77 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.3025, allocations: 4.375 kB / 1.019 GB, free: 9.766 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3025, allocations: 4.359 kB / 1.019 GB, free: 9.762 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.813e-05/0.3026, allocations: 30.2 kB / 1.019 GB, free: 9.727 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.3026, allocations: 192 / 1.019 GB, free: 9.727 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.3026, allocations: 3.938 kB / 1.019 GB, free: 9.723 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3026, allocations: 0 / 1.019 GB, free: 9.723 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.688e-05/0.3026, allocations: 4 kB / 1.019 GB, free: 9.719 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002911/0.3029, allocations: 383.5 kB / 1.019 GB, free: 9.293 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.55e-05/0.303, allocations: 173 kB / 1.019 GB, free: 9.113 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.433e-05/0.3031, allocations: 84.12 kB / 1.019 GB, free: 9.027 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.3031, allocations: 75.28 kB / 1.019 GB, free: 8.953 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.3032, allocations: 117.9 kB / 1.019 GB, free: 8.828 MB / 0.795 GB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.3032, allocations: 0 / 1.019 GB, free: 8.828 MB / 0.795 GB Notification: Performance of matching and sorting (n=0): time 6.692e-05/0.3032, allocations: 29.7 kB / 1.019 GB, free: 8.793 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.3033, allocations: 126.7 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.013e-05/0.3034, allocations: 93.86 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.3034, allocations: 25.7 kB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.674e-05/0.3034, allocations: 88.2 kB / 1.02 GB, free: 8.434 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.3034, allocations: 0 / 1.02 GB, free: 8.434 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.3035, allocations: 9.719 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.641e-05/0.3036, allocations: 318.8 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.542e-06/0.3036, allocations: 4 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.356e-06/0.3036, allocations: 4 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.414e-05/0.3036, allocations: 75.28 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.139e-05/0.3036, allocations: 75.28 kB / 1.02 GB, free: 7.941 MB / 0.795 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.678e-05/0.3037, allocations: 29.64 kB / 1.02 GB, free: 7.906 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.925e-05/0.3037, allocations: 87.28 kB / 1.02 GB, free: 7.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/0.3038, allocations: 79.22 kB / 1.02 GB, free: 7.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.589e-05/0.3038, allocations: 150.6 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.684e-05/0.3039, allocations: 76.81 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.299e-05/0.3039, allocations: 174.4 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.744e-05/0.304, allocations: 75.28 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.304, allocations: 83.22 kB / 1.021 GB, free: 7.191 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.0001124/0.3041, allocations: 260.3 kB / 1.021 GB, free: 6.926 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.86e-05/0.3042, allocations: 105 kB / 1.021 GB, free: 6.816 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/0.3043, allocations: 108.1 kB / 1.021 GB, free: 6.703 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.827e-05/0.3043, allocations: 184.2 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.686e-05/0.3044, allocations: 184.3 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.913e-05/0.3045, allocations: 180.2 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.3047, allocations: 401.2 kB / 1.022 GB, free: 5.695 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.694e-05/0.3047, allocations: 112.9 kB / 1.022 GB, free: 5.578 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.194e-05/0.3047, allocations: 105 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.954e-05/0.3048, allocations: 180.6 kB / 1.023 GB, free: 5.285 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.326e-05/0.3049, allocations: 180.2 kB / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-05/0.3049, allocations: 184.2 kB / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.749e-05/0.305, allocations: 184.2 kB / 1.023 GB, free: 4.727 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.3052, allocations: 303.8 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.106e-05/0.3052, allocations: 190 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.403e-05/0.3053, allocations: 176.3 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.603e-05/0.3054, allocations: 108.9 kB / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.15e-05/0.3055, allocations: 180.3 kB / 1.024 GB, free: 3.719 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.3055, allocations: 101 kB / 1.024 GB, free: 3.613 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.945e-05/0.3055, allocations: 83.28 kB / 1.024 GB, free: 3.531 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3055, allocations: 0 / 1.024 GB, free: 3.531 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002402/0.3058, allocations: 3.984 kB / 1.024 GB, free: 3.527 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.0001337/0.3059, allocations: 174.5 kB / 1.024 GB, free: 3.348 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 3.863e-05/0.306, allocations: 4 kB / 1.024 GB, free: 3.344 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.306, allocations: 0 / 1.024 GB, free: 3.344 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.253e-06/0.306, allocations: 0 / 1.024 GB, free: 3.344 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.3063, allocations: 463.7 kB / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002255/0.3066, allocations: 182 kB / 1.025 GB, free: 2.676 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.3068, allocations: 0.6768 MB / 1.026 GB, free: 1.973 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.695e-05/0.3068, allocations: 7.438 kB / 1.026 GB, free: 1.965 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.3068, allocations: 0 / 1.026 GB, free: 1.965 MB / 0.795 GB Notification: Performance of Templates: time 0.001402/0.3082, allocations: 327.8 kB / 1.026 GB, free: 1.645 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=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/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