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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001139/0.001139, allocations: 97.78 kB / 16.02 MB, free: 76 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.001499/0.001499, allocations: 181.7 kB / 16.92 MB, free: 6.918 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.364/1.364, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.613/2.613, allocations: 437.8 MB / 0.7128 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003479, allocations: 8 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.636/0.6363, allocations: 153.8 MB / 1.024 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002137/0.6385, allocations: 1.48 MB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.64, allocations: 0.8891 MB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.6401, allocations: 7.875 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.6407, allocations: 166.6 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003892/0.6411, allocations: 151.5 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004763/0.6416, allocations: 195.6 kB / 1.027 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.6419, allocations: 219.5 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.642, allocations: 49.66 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.6422, allocations: 83.67 kB / 1.027 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.6424, allocations: 131.5 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.6425, allocations: 8 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.926e-05/0.6426, allocations: 27.98 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.92e-05/0.6427, allocations: 75.73 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.6428, allocations: 120.9 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.6431, allocations: 289.2 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.6431, allocations: 4 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.733e-06/0.6431, allocations: 0 / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.6431, allocations: 0 / 1.027 GB, free: 11.93 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.0007757/0.6439, allocations: 0.5604 MB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.644, allocations: 12.03 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/0.6441, allocations: 28.56 kB / 1.028 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005418/0.6446, allocations: 414.2 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.6446, allocations: 8.312 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.6447, allocations: 12.12 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.6449, allocations: 81.61 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.6449, allocations: 3.984 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.6449, allocations: 0 / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.6449, allocations: 0 / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.6451, allocations: 47.97 kB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006391/0.6457, allocations: 492.4 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.6459, allocations: 50.55 kB / 1.029 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.852e-05/0.6459, allocations: 20.92 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.646, allocations: 0 / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.646, allocations: 38.48 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.646, allocations: 4 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003256/0.6463, allocations: 109.2 kB / 1.029 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.6464, allocations: 51.41 kB / 1.029 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006449/0.647, allocations: 0.5484 MB / 1.03 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.6471, allocations: 33.64 kB / 1.03 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.6472, allocations: 172 kB / 1.03 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.6472, allocations: 23.78 kB / 1.03 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.6472, allocations: 9.719 kB / 1.03 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.6474, allocations: 338.8 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.359e-05/0.6474, allocations: 19.98 kB / 1.03 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.411e-05/0.6475, allocations: 19.92 kB / 1.03 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.846e-05/0.6476, allocations: 40.84 kB / 1.03 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6476, allocations: 0 / 1.03 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001833/0.6478, allocations: 93.3 kB / 1.031 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.6478, allocations: 6.031 kB / 1.031 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.6478, allocations: 0 / 1.031 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.6478, allocations: 3.938 kB / 1.031 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.305e-05/0.6479, allocations: 8 kB / 1.031 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.6479, allocations: 0 / 1.031 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.161e-05/0.648, allocations: 11.98 kB / 1.031 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.648, allocations: 4 kB / 1.031 GB, free: 8.484 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.0001452/0.6482, allocations: 181.8 kB / 1.031 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.6482, allocations: 27.62 kB / 1.031 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.6485, allocations: 104.2 kB / 1.031 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.6485, allocations: 3.938 kB / 1.031 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6485, allocations: 4 kB / 1.031 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.6485, allocations: 0 / 1.031 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.6488, allocations: 285.5 kB / 1.031 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.6488, allocations: 0 / 1.031 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.368e-05/0.6488, allocations: 8.094 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.6489, allocations: 7.938 kB / 1.031 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.6489, allocations: 0 / 1.031 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.6489, allocations: 3.938 kB / 1.031 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.6489, allocations: 384 / 1.031 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.6491, allocations: 195.1 kB / 1.031 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.6492, allocations: 128.7 kB / 1.032 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.6492, allocations: 0 / 1.032 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.6493, allocations: 11.92 kB / 1.032 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.6494, allocations: 0 / 1.032 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.6494, allocations: 0 / 1.032 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004372/0.6498, allocations: 423.1 kB / 1.032 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6498, allocations: 0 / 1.032 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002577/0.6501, allocations: 23.98 kB / 1.032 GB, free: 7 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.0008063/0.6509, allocations: 360.5 kB / 1.032 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001501/0.6511, allocations: 35.91 kB / 1.032 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.6511, allocations: 0 / 1.032 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.564e-05/0.6511, allocations: 19.98 kB / 1.032 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004066/0.6515, allocations: 39.42 kB / 1.032 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008528/0.6524, allocations: 0.6305 MB / 1.033 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.6528, allocations: 0.7834 MB / 1.034 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.678e-05/0.6528, allocations: 23.42 kB / 1.034 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of SimCode: time 4.1e-07/0.6528, allocations: 4 kB / 1.034 GB, free: 5.184 MB / 0.7794 GB Notification: Performance of Templates: time 0.006001/0.6588, allocations: 3.488 MB / 1.037 GB, free: 1.703 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/jenkins1/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