Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.008601/0.008601, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001599/0.001599, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.67/2.67, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.91 kB / 1.054 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9315/0.9329, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003882/0.9369, allocations: 1.774 MB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.9386, allocations: 0.9124 MB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.9388, allocations: 3.938 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005815/0.9394, allocations: 178.9 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000438/0.9398, allocations: 163.1 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.9403, allocations: 210.8 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00034/0.9407, allocations: 247.4 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.9408, allocations: 53.66 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.941, allocations: 99.67 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.9413, allocations: 159.5 kB / 1.211 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.9413, allocations: 16 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.9415, allocations: 44 kB / 1.211 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.9416, allocations: 99.66 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.9417, allocations: 111.3 kB / 1.212 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003993/0.9421, allocations: 356.4 kB / 1.212 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.9421, allocations: 0 / 1.212 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.232e-06/0.9421, allocations: 0 / 1.212 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.9421, allocations: 0 / 1.212 GB, free: 9.246 MB / 0.9356 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.0008555/0.943, allocations: 0.5992 MB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.943, allocations: 8.031 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.9431, allocations: 32.56 kB / 1.213 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005499/0.9437, allocations: 418.1 kB / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.9437, allocations: 8.375 kB / 1.213 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.9437, allocations: 7.938 kB / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.9439, allocations: 77.66 kB / 1.213 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.9439, allocations: 0 / 1.213 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.9439, allocations: 0 / 1.213 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.9439, allocations: 3.984 kB / 1.213 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.9441, allocations: 51.97 kB / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006323/0.9447, allocations: 484.4 kB / 1.214 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.9449, allocations: 42.56 kB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.536e-05/0.9449, allocations: 20.97 kB / 1.214 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.945, allocations: 15.91 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.945, allocations: 30.56 kB / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.945, allocations: 0 / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002914/0.9453, allocations: 101.3 kB / 1.214 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.9454, allocations: 55.41 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006142/0.946, allocations: 0.5523 MB / 1.214 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.946, allocations: 25.7 kB / 1.214 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.9462, allocations: 179.9 kB / 1.215 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.9462, allocations: 3.906 kB / 1.215 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.9462, allocations: 17.72 kB / 1.215 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.9464, allocations: 346.8 kB / 1.215 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.156e-05/0.9464, allocations: 15.94 kB / 1.215 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.093e-05/0.9465, allocations: 11.98 kB / 1.215 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.121e-05/0.9466, allocations: 32.84 kB / 1.215 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9466, allocations: 0 / 1.215 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001771/0.9468, allocations: 89.3 kB / 1.215 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.9468, allocations: 6.031 kB / 1.215 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.9468, allocations: 4 kB / 1.215 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.9468, allocations: 7.938 kB / 1.215 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.9469, allocations: 11.98 kB / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.9469, allocations: 0 / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.947, allocations: 7.938 kB / 1.215 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.947, allocations: 3.938 kB / 1.215 GB, free: 5.793 MB / 0.9356 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.0001633/0.9472, allocations: 182.3 kB / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-05/0.9473, allocations: 27.62 kB / 1.215 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.9475, allocations: 108.1 kB / 1.215 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.9475, allocations: 0 / 1.215 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.9475, allocations: 384 / 1.215 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.9475, allocations: 0 / 1.215 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.9478, allocations: 281.5 kB / 1.216 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9478, allocations: 4 kB / 1.216 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.018e-05/0.9479, allocations: 8 kB / 1.216 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.9479, allocations: 3.984 kB / 1.216 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.9479, allocations: 3.938 kB / 1.216 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.9479, allocations: 0 / 1.216 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9479, allocations: 11.92 kB / 1.216 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.9482, allocations: 187.1 kB / 1.216 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.9483, allocations: 120.7 kB / 1.216 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.9483, allocations: 3.938 kB / 1.216 GB, free: 4.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.759e-05/0.9484, allocations: 4 kB / 1.216 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.9484, allocations: 3.984 kB / 1.216 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.9485, allocations: 4 kB / 1.216 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000453/0.9489, allocations: 419.1 kB / 1.216 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9489, allocations: 0 / 1.216 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002669/0.9492, allocations: 24 kB / 1.216 GB, free: 4.324 MB / 0.9356 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.000831/0.95, allocations: 341.5 kB / 1.217 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.9502, allocations: 35.91 kB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9502, allocations: 4 kB / 1.217 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.694e-05/0.9503, allocations: 15.98 kB / 1.217 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.9507, allocations: 41.53 kB / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008026/0.9515, allocations: 0.5139 MB / 1.217 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.952, allocations: 0.787 MB / 1.218 GB, free: 2.664 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001185/0.9521, allocations: 42.92 kB / 1.218 GB, free: 2.617 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.9522, allocations: 23.44 kB / 1.218 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.9522, allocations: 0 / 1.218 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of Templates: time 0.006421/0.9586, allocations: 2.497 MB / 1.221 GB, free: 148 kB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches