Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001867/0.001867, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.512/1.512, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.787/2.787, allocations: 437 MB / 0.7099 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003114/0.003113, allocations: 59.91 kB / 0.8686 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8214/0.8246, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003698/0.8283, allocations: 1.83 MB / 1.018 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.83, allocations: 0.9123 MB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.356e-05/0.8301, allocations: 0 / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005865/0.8307, allocations: 175.6 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.8311, allocations: 155.6 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.8315, allocations: 195.6 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.8318, allocations: 219.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.8319, allocations: 49.59 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.8321, allocations: 95.66 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.8323, allocations: 143.5 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.8324, allocations: 4 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.8325, allocations: 28 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.8326, allocations: 75.73 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.8327, allocations: 111.2 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.8331, allocations: 340.8 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.8332, allocations: 3.984 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.21e-07/0.8332, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.8332, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009071/0.8341, allocations: 0.5992 MB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.8341, allocations: 8.031 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.022e-05/0.8342, allocations: 32.56 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.8348, allocations: 418.2 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.8348, allocations: 4.375 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.8349, allocations: 8.125 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.835, allocations: 73.66 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.8351, allocations: 3.938 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.8351, allocations: 4 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.8351, allocations: 8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.8352, allocations: 43.97 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.8359, allocations: 484.4 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.8361, allocations: 46.56 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.978e-05/0.8361, allocations: 20.91 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.8362, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.8362, allocations: 38.56 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.8362, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003092/0.8365, allocations: 105.3 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.8366, allocations: 51.41 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006661/0.8373, allocations: 0.5602 MB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.8373, allocations: 25.7 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.8374, allocations: 171.9 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.8375, allocations: 15.81 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.8375, allocations: 9.719 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000168/0.8377, allocations: 346.8 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.993e-05/0.8377, allocations: 12 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.686e-05/0.8378, allocations: 19.98 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.466e-05/0.8379, allocations: 32.84 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8379, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001692/0.8381, allocations: 89.27 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.8381, allocations: 6.344 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.8381, allocations: 0 / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.8381, allocations: 3.938 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.69e-05/0.8382, allocations: 15.98 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.8383, allocations: 0 / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.207e-05/0.8383, allocations: 7.906 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.8383, allocations: 4 kB / 1.024 GB, free: 10.94 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 (3): * Single equations (assignments): 3 * 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.0001925/0.8385, allocations: 177.8 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.957e-05/0.8386, allocations: 27.62 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.8389, allocations: 100.1 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.8389, allocations: 7.938 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.8389, allocations: 0 / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.8389, allocations: 4 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003424/0.8393, allocations: 293.5 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.8393, allocations: 112 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.552e-05/0.8393, allocations: 11.94 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.8394, allocations: 0 / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.8394, allocations: 0 / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.8394, allocations: 7.922 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8394, allocations: 0 / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.8396, allocations: 187.1 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.8397, allocations: 116.8 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.8398, allocations: 0 / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.68e-05/0.8399, allocations: 7.922 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.8399, allocations: 4 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.8399, allocations: 0 / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005224/0.8405, allocations: 419.1 kB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8405, allocations: 0 / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002781/0.8408, allocations: 31.89 kB / 1.025 GB, free: 9.469 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 (3): * Single equations (assignments): 3 * 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.00141/0.8422, allocations: 351.1 kB / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001766/0.8424, allocations: 27.97 kB / 1.026 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.8424, allocations: 4 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.517e-05/0.8425, allocations: 23.92 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006007/0.8431, allocations: 39.3 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009769/0.844, allocations: 0.5741 MB / 1.026 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.8445, allocations: 0.7872 MB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001237/0.8447, allocations: 50.91 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/0.8447, allocations: 19.44 kB / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of SimCode: time 3.8e-07/0.8447, allocations: 0 / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of Templates: time 0.006528/0.8513, allocations: 2.379 MB / 1.029 GB, free: 5.316 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches