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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00131/0.00131, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001371/0.001371, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.771/2.771, allocations: 436.5 MB / 0.7104 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003893, allocations: 8 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9254/0.9258, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002215/0.9281, allocations: 1.449 MB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001506/0.9296, allocations: 0.827 MB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.681e-05/0.9297, allocations: 4 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005476/0.9303, allocations: 148.6 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.9307, allocations: 141.4 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.9311, allocations: 166.5 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.9314, allocations: 143.7 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.9315, allocations: 45.83 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.9317, allocations: 83.66 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.9319, allocations: 131.6 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.9319, allocations: 4 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.395e-05/0.932, allocations: 24 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.376e-05/0.9321, allocations: 67.75 kB / 1.024 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.289e-05/0.9322, allocations: 57.58 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.9325, allocations: 301.2 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.9326, allocations: 4 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.705e-06/0.9326, allocations: 0 / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.9326, allocations: 0 / 1.024 GB, free: 13.51 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.0008146/0.9334, allocations: 0.5603 MB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.9334, allocations: 11.98 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.077e-05/0.9335, allocations: 27.62 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.9341, allocations: 393.3 kB / 1.025 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.9341, allocations: 7.938 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.9341, allocations: 8 kB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.9343, allocations: 81.55 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.9343, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.9343, allocations: 8 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.9343, allocations: 0 / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.9345, allocations: 47.97 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006312/0.9351, allocations: 496.3 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.9352, allocations: 50.56 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.9353, allocations: 0 / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.9353, allocations: 38.48 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.9353, allocations: 0 / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002901/0.9356, allocations: 109.5 kB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.9357, allocations: 51.41 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006452/0.9363, allocations: 0.5524 MB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.9363, allocations: 29.64 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.9365, allocations: 179.9 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.9365, allocations: 3.906 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.9365, allocations: 0 / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.9367, allocations: 346.8 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.132e-05/0.9367, allocations: 19.98 kB / 1.027 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.9368, allocations: 15.98 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.9369, allocations: 23.92 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.9369, allocations: 0 / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001815/0.9371, allocations: 89.25 kB / 1.027 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.9371, allocations: 8 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.9371, allocations: 0 / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.9371, allocations: 0 / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.302e-05/0.9372, allocations: 15.98 kB / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.9372, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.374e-05/0.9373, allocations: 4 kB / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.9373, allocations: 0 / 1.027 GB, free: 10.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.9375, allocations: 185.8 kB / 1.028 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.9375, allocations: 31.62 kB / 1.028 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.9378, allocations: 108.1 kB / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.9378, allocations: 0 / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9378, allocations: 0 / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.9378, allocations: 0 / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.9381, allocations: 289.5 kB / 1.028 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.9381, allocations: 0 / 1.028 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.442e-05/0.9382, allocations: 8 kB / 1.028 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.9382, allocations: 4 kB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.9382, allocations: 3.984 kB / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.9382, allocations: 4 kB / 1.028 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.9382, allocations: 0 / 1.028 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000212/0.9384, allocations: 191 kB / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.9385, allocations: 124.7 kB / 1.028 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.9386, allocations: 8 kB / 1.028 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.9387, allocations: 4 kB / 1.028 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.941e-05/0.9387, allocations: 7.984 kB / 1.028 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.9387, allocations: 0 / 1.028 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004489/0.9392, allocations: 423 kB / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9392, allocations: 0 / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002474/0.9394, allocations: 23.91 kB / 1.029 GB, free: 8.672 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008153/0.9402, allocations: 356.5 kB / 1.029 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000142/0.9404, allocations: 31.98 kB / 1.029 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9404, allocations: 4 kB / 1.029 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.389e-05/0.9405, allocations: 23.92 kB / 1.029 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.9408, allocations: 38.38 kB / 1.029 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007706/0.9416, allocations: 0.5548 MB / 1.03 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.942, allocations: 0.7911 MB / 1.03 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.9421, allocations: 46.92 kB / 1.031 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.9421, allocations: 27.38 kB / 1.031 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.9422, allocations: 0 / 1.031 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of Templates: time 0.005666/0.9478, allocations: 2.291 MB / 1.033 GB, free: 4.633 MB / 0.7794 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","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches