Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001731/0.001731, allocations: 111.9 kB / 16.42 MB, free: 6.445 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.001986/0.001986, allocations: 185.7 kB / 17.35 MB, free: 5.738 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.89 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8239/0.8254, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003011/0.8284, allocations: 1.775 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001844/0.8303, allocations: 0.9126 MB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.8304, allocations: 1.25 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006716/0.8311, allocations: 181 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.8316, allocations: 172.4 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.8321, allocations: 213.8 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.8325, allocations: 245.3 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.8327, allocations: 56.47 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.8329, allocations: 97.95 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.8332, allocations: 159.4 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.8333, allocations: 22.75 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.8334, allocations: 42.16 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.8335, allocations: 90.25 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.8337, allocations: 112.7 kB / 1.093 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.8341, allocations: 362.3 kB / 1.093 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8341, allocations: 4.688 kB / 1.093 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8341, allocations: 0 / 1.093 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.8341, allocations: 0.7188 kB / 1.093 GB, free: 2.922 MB / 0.8575 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.0007793/0.8349, allocations: 0.589 MB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.835, allocations: 13 kB / 1.094 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.8351, allocations: 30.88 kB / 1.094 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.8356, allocations: 423.4 kB / 1.094 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.8356, allocations: 6.438 kB / 1.094 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.8356, allocations: 7.625 kB / 1.094 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.8358, allocations: 75.11 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.8358, allocations: 0 / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.8358, allocations: 0.6875 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.8359, allocations: 1.594 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.836, allocations: 52.67 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000591/0.8366, allocations: 484.4 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.8367, allocations: 49.64 kB / 1.095 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.635e-05/0.8368, allocations: 20.16 kB / 1.095 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.8368, allocations: 0.8125 kB / 1.095 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.8369, allocations: 40.88 kB / 1.095 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.8369, allocations: 0 / 1.095 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002897/0.8372, allocations: 100.7 kB / 1.095 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.8372, allocations: 52.22 kB / 1.095 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007028/0.8379, allocations: 0.5563 MB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.8379, allocations: 26.7 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.838, allocations: 172.8 kB / 1.096 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.8381, allocations: 17.8 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.8381, allocations: 14.95 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.8382, allocations: 342 kB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.8382, allocations: 18.91 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.586e-05/0.8383, allocations: 13.72 kB / 1.096 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.8384, allocations: 33.88 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.8384, allocations: 0.6562 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001707/0.8386, allocations: 87.81 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.8386, allocations: 5.359 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.8386, allocations: 1.125 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.8386, allocations: 3.938 kB / 1.096 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.86e-05/0.8387, allocations: 11.97 kB / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.8387, allocations: 8.516 kB / 1.096 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.08e-05/0.8388, allocations: 8.156 kB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.8388, allocations: 1.188 kB / 1.096 GB, free: 0.5469 MB / 0.8575 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.0001388/0.839, allocations: 180.8 kB / 1.096 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.645e-05/0.839, allocations: 28.69 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.8393, allocations: 98.11 kB / 1.096 GB, free: 336 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.8393, allocations: 4.812 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.8393, allocations: 0.7969 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.8394, allocations: 118.1 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.8394, allocations: 0.7031 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.258e-05/0.8395, allocations: 2.531 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.8396, allocations: 7.062 kB / 1.096 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001616/0.8397, allocations: 146.7 kB / 1.097 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002587/0.84, allocations: 259.6 kB / 1.097 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.514e-05/0.8401, allocations: 19.62 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005508/0.8406, allocations: 419.4 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of Backend: time 2.8e-07/0.8406, allocations: 0 / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001369/0.842, allocations: 435.8 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001136/0.8432, allocations: 0.9618 MB / 1.099 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.007526/0.8507, allocations: 2.703 MB / 1.101 GB, free: 14.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches