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.001255/0.001255, allocations: 108 kB / 16.41 MB, free: 6.027 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.00122/0.00122, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.412/1.412, 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.196/2.196, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 63.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9327/0.9341, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003249/0.9374, allocations: 1.775 MB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.9389, allocations: 0.9131 MB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.939, allocations: 2.125 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005862/0.9396, allocations: 189 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004156/0.94, allocations: 164 kB / 1.092 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.9405, allocations: 208.4 kB / 1.092 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.9408, allocations: 242.4 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.941, allocations: 63.78 kB / 1.092 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.9412, allocations: 93.88 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.9415, allocations: 155.2 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.9416, allocations: 19.38 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.9417, allocations: 42.23 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.9419, allocations: 97.64 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.942, allocations: 116.5 kB / 1.093 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.9424, allocations: 359 kB / 1.093 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9424, allocations: 0 / 1.093 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.745e-06/0.9424, allocations: 1.297 kB / 1.093 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.9425, allocations: 0 / 1.093 GB, free: 2.918 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.0007747/0.9432, allocations: 0.6008 MB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.9433, allocations: 12.59 kB / 1.094 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.9434, allocations: 31.83 kB / 1.094 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.9439, allocations: 415 kB / 1.094 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.9439, allocations: 2.625 kB / 1.094 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.944, allocations: 15.62 kB / 1.094 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.9441, allocations: 74.39 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.9442, allocations: 4.531 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.9442, allocations: 4.656 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.9442, allocations: 2.125 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.9443, allocations: 44.73 kB / 1.094 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/0.945, allocations: 488.5 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.9451, allocations: 44.94 kB / 1.095 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.285e-05/0.9452, allocations: 20.66 kB / 1.095 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.9452, allocations: 0.75 kB / 1.095 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.9453, allocations: 31.8 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.9453, allocations: 4.688 kB / 1.095 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003435/0.9456, allocations: 103.9 kB / 1.095 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.9457, allocations: 52.67 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000812/0.9465, allocations: 0.5532 MB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.9465, allocations: 26.41 kB / 1.095 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.9466, allocations: 172.7 kB / 1.096 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.9467, allocations: 14.05 kB / 1.096 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.9467, allocations: 18.27 kB / 1.096 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.9468, allocations: 343.1 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.753e-05/0.9469, allocations: 17.52 kB / 1.096 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.9469, allocations: 17.8 kB / 1.096 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.402e-05/0.947, allocations: 34.42 kB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.947, allocations: 0.9375 kB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001895/0.9472, allocations: 95.89 kB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.9473, allocations: 9.391 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.9473, allocations: 0.6875 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.9473, allocations: 4.656 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.049e-05/0.9474, allocations: 7.391 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.9474, allocations: 0.5 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.578e-05/0.9475, allocations: 3.078 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.9475, allocations: 1.984 kB / 1.096 GB, free: 0.5391 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.000151/0.9476, allocations: 177.2 kB / 1.096 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.4e-05/0.9477, allocations: 28.62 kB / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.9479, allocations: 110 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.948, allocations: 5.828 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.948, allocations: 0.8125 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.948, allocations: 0 / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002993/0.9483, allocations: 289.4 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.9483, allocations: 0 / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.9483, allocations: 6.844 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.9483, allocations: 1.828 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.9484, allocations: 0.6875 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.9484, allocations: 8.938 kB / 1.097 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.9484, allocations: 0.6562 kB / 1.097 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.9486, allocations: 183.8 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.964e-05/0.9487, allocations: 121.6 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.9488, allocations: 1.797 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.459e-05/0.9489, allocations: 5.859 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.9489, allocations: 4 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.9489, allocations: 5.25 kB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005492/0.9495, allocations: 418.1 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9495, allocations: 0 / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002811/0.9498, allocations: 26.61 kB / 1.097 GB, free: 15.6 MB / 0.8731 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.0008604/0.9506, allocations: 354.5 kB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001679/0.9508, allocations: 36.95 kB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9508, allocations: 0 / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.842e-05/0.9509, allocations: 17.72 kB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.9514, allocations: 41.36 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000896/0.9523, allocations: 0.5444 MB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.9527, allocations: 0.7812 MB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.9527, allocations: 26.12 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9527, allocations: 1.094 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of Templates: time 0.007926/0.9607, allocations: 3.577 MB / 1.103 GB, free: 13.89 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