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.001434/0.001434, 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.001908/0.001908, allocations: 192.5 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.425/1.425, 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.675/2.675, allocations: 437 MB / 0.7103 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 59.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.75/0.7515, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004048/0.7556, allocations: 1.779 MB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.7574, allocations: 0.92 MB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.7576, allocations: 3.938 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006569/0.7583, allocations: 180.8 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005117/0.7588, allocations: 161.7 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005443/0.7593, allocations: 200.7 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000395/0.7597, allocations: 247.5 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.7599, allocations: 49.66 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.7602, allocations: 95.66 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.7604, allocations: 159.5 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.7605, allocations: 24 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.7606, allocations: 47.98 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.7608, allocations: 91.73 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.7609, allocations: 119.2 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.7613, allocations: 352.7 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.7613, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7613, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.7614, allocations: 0 / 1.022 GB, free: 14.09 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.001036/0.7624, allocations: 0.5991 MB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.7625, allocations: 16.03 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.206e-05/0.7626, allocations: 28.56 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005945/0.7632, allocations: 414.2 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.7632, allocations: 4.375 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.7632, allocations: 16.06 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.7634, allocations: 69.66 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.7634, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.7634, allocations: 4 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.7635, allocations: 0 / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.7636, allocations: 47.97 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00067/0.7643, allocations: 492.4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.7644, allocations: 42.56 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.998e-05/0.7645, allocations: 24.91 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.7645, allocations: 4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.7646, allocations: 34.61 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.7646, allocations: 3.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003181/0.7649, allocations: 101.2 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.7649, allocations: 51.41 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006451/0.7656, allocations: 0.5524 MB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.7656, allocations: 29.7 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.7657, allocations: 179.9 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.7658, allocations: 3.906 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.7658, allocations: 13.72 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.7659, allocations: 346.8 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.138e-05/0.766, allocations: 11.98 kB / 1.025 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.874e-05/0.766, allocations: 12 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.396e-05/0.7662, allocations: 44.77 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7662, allocations: 0 / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001788/0.7663, allocations: 89.31 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.7664, allocations: 4 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7664, allocations: 0 / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.7664, allocations: 3.938 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.709e-05/0.7665, allocations: 11.98 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.7665, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.09e-05/0.7666, allocations: 7.906 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.505e-06/0.7666, allocations: 0 / 1.025 GB, free: 10.64 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.0001555/0.7668, allocations: 185.7 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.056e-05/0.7668, allocations: 35.56 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.7671, allocations: 96.2 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7671, allocations: 3.938 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.7671, allocations: 0 / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.7671, allocations: 384 / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.7674, allocations: 285.5 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.7674, allocations: 0 / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.672e-05/0.7675, allocations: 12 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.7675, allocations: 0 / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.7675, allocations: 7.969 kB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.7675, allocations: 3.938 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7675, allocations: 0 / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.7677, allocations: 191.1 kB / 1.025 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.196e-05/0.7678, allocations: 108.8 kB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.7679, allocations: 11.92 kB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.218e-05/0.768, allocations: 7.938 kB / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.768, allocations: 0 / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.768, allocations: 4 kB / 1.026 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004356/0.7685, allocations: 419.1 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7685, allocations: 0 / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002673/0.7687, allocations: 27.91 kB / 1.026 GB, free: 9.168 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.0008777/0.7696, allocations: 362.5 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001584/0.7698, allocations: 35.92 kB / 1.026 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7698, allocations: 0 / 1.026 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.438e-05/0.7699, allocations: 15.98 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.7704, allocations: 44.73 kB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008244/0.7712, allocations: 0.51 MB / 1.027 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.7716, allocations: 0.7792 MB / 1.028 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001274/0.7717, allocations: 46.91 kB / 1.028 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.7718, allocations: 23.44 kB / 1.028 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.7718, allocations: 0 / 1.028 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of Templates: time 0.006453/0.7782, allocations: 2.472 MB / 1.03 GB, free: 4.984 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=480 -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