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.001451/0.001451, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.001441/0.001441, allocations: 187 kB / 17.34 MB, free: 5.719 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.579/2.579, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 59.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8175/0.8189, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003526/0.8225, allocations: 1.767 MB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001466/0.824, allocations: 0.9278 MB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.297e-05/0.8241, allocations: 0 / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005477/0.8247, allocations: 178.9 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.8251, allocations: 167 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.8255, allocations: 207 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.8258, allocations: 239.5 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.826, allocations: 53.67 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.8262, allocations: 111.6 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.8264, allocations: 143.6 kB / 1.212 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.148e-05/0.8264, allocations: 20 kB / 1.212 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.867e-05/0.8265, allocations: 51.97 kB / 1.212 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.8267, allocations: 83.75 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.522e-05/0.8268, allocations: 111.2 kB / 1.212 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003738/0.8271, allocations: 360.5 kB / 1.213 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.8272, allocations: 4 kB / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8272, allocations: 0 / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.8272, allocations: 0 / 1.213 GB, free: 9.238 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.0007789/0.828, allocations: 0.5992 MB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.828, allocations: 11.97 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.8281, allocations: 32.55 kB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.8286, allocations: 418.2 kB / 1.214 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.8286, allocations: 4.375 kB / 1.214 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.8286, allocations: 12.12 kB / 1.214 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.8288, allocations: 81.59 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.8288, allocations: 0 / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.8288, allocations: 0 / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.8289, allocations: 0 / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.829, allocations: 51.91 kB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.8296, allocations: 480.4 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.8297, allocations: 50.5 kB / 1.214 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.565e-05/0.8298, allocations: 21.02 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.8298, allocations: 3.938 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.8299, allocations: 34.56 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.8299, allocations: 0 / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0003107/0.8302, allocations: 109.2 kB / 1.215 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.8302, allocations: 51.41 kB / 1.215 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006099/0.8309, allocations: 0.5562 MB / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.8309, allocations: 25.7 kB / 1.215 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.831, allocations: 176 kB / 1.215 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.8311, allocations: 7.891 kB / 1.215 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.8311, allocations: 17.72 kB / 1.215 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.8312, allocations: 338.8 kB / 1.216 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.051e-05/0.8313, allocations: 19.98 kB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.146e-05/0.8314, allocations: 11.98 kB / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.974e-05/0.8314, allocations: 36.78 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.8315, allocations: 0 / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000162/0.8316, allocations: 93.23 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.8316, allocations: 4 kB / 1.216 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.8317, allocations: 0 / 1.216 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.8317, allocations: 3.938 kB / 1.216 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.907e-05/0.8318, allocations: 12 kB / 1.216 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.8318, allocations: 0 / 1.216 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.819e-05/0.8319, allocations: 7.984 kB / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.8319, allocations: 0 / 1.216 GB, free: 5.785 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.000155/0.832, allocations: 178.3 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.8321, allocations: 31.62 kB / 1.216 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.8323, allocations: 100.5 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.8323, allocations: 11.97 kB / 1.216 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.8323, allocations: 3.938 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.8324, allocations: 0 / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.8326, allocations: 277.5 kB / 1.216 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.8327, allocations: 0 / 1.216 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.503e-05/0.8327, allocations: 15.98 kB / 1.216 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.8327, allocations: 0 / 1.216 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.8327, allocations: 0 / 1.216 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.8327, allocations: 7.938 kB / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.8328, allocations: 0 / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.833, allocations: 191.1 kB / 1.217 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.8331, allocations: 120.7 kB / 1.217 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.8331, allocations: 0 / 1.217 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.8332, allocations: 7.938 kB / 1.217 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.8333, allocations: 3.984 kB / 1.217 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.8333, allocations: 0 / 1.217 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004644/0.8337, allocations: 419.1 kB / 1.217 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8338, allocations: 3.938 kB / 1.217 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000268/0.834, allocations: 28 kB / 1.217 GB, free: 4.312 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.0008581/0.8349, allocations: 342.7 kB / 1.218 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.8351, allocations: 31.98 kB / 1.218 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8351, allocations: 0 / 1.218 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.545e-05/0.8351, allocations: 19.98 kB / 1.218 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004511/0.8356, allocations: 43.38 kB / 1.218 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008745/0.8365, allocations: 0.5662 MB / 1.218 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.8369, allocations: 0.787 MB / 1.219 GB, free: 2.602 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.485e-05/0.8369, allocations: 19.44 kB / 1.219 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.837, allocations: 0 / 1.219 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of Templates: time 0.006434/0.8434, allocations: 3.574 MB / 1.222 GB, free: 15.02 MB / 0.9512 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/jenkins1/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