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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004633/0.004633, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001151/0.001151, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.568/2.568, allocations: 472.7 MB / 0.7453 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 71.89 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6515/0.6527, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00279/0.6555, allocations: 1.768 MB / 1.227 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.6569, allocations: 0.9212 MB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.902e-05/0.6569, allocations: 7.938 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004595/0.6574, allocations: 193.4 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.6578, allocations: 167.1 kB / 1.228 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000394/0.6582, allocations: 206.9 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.6584, allocations: 239.5 kB / 1.229 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.6586, allocations: 61.53 kB / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.6587, allocations: 103.7 kB / 1.229 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.6589, allocations: 155.5 kB / 1.229 GB, free: 9.645 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.659, allocations: 16 kB / 1.229 GB, free: 9.629 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.6591, allocations: 47.98 kB / 1.229 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/0.6592, allocations: 83.75 kB / 1.229 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.862e-05/0.6593, allocations: 119.2 kB / 1.229 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.6596, allocations: 358.2 kB / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.6596, allocations: 0 / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6596, allocations: 0 / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.6597, allocations: 0 / 1.229 GB, free: 9.035 MB / 0.9512 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.0007057/0.6604, allocations: 0.6184 MB / 1.23 GB, free: 8.367 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.6604, allocations: 8.031 kB / 1.23 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.894e-05/0.6604, allocations: 42.73 kB / 1.23 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.226e-05/0.6605, allocations: 32.7 kB / 1.23 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.661, allocations: 414.6 kB / 1.231 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.661, allocations: 8.312 kB / 1.231 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.661, allocations: 11.94 kB / 1.231 GB, free: 7.812 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.6612, allocations: 73.66 kB / 1.231 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.6612, allocations: 3.938 kB / 1.231 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.6612, allocations: 8 kB / 1.231 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.6612, allocations: 0 / 1.231 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.6614, allocations: 47.97 kB / 1.231 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005266/0.6619, allocations: 484.4 kB / 1.231 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.662, allocations: 54.48 kB / 1.231 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.089e-05/0.6621, allocations: 20.92 kB / 1.231 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.6621, allocations: 0 / 1.231 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.6621, allocations: 34.55 kB / 1.231 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.6622, allocations: 0 / 1.231 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002681/0.6624, allocations: 105.6 kB / 1.231 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.6625, allocations: 51.41 kB / 1.231 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.663, allocations: 0.5523 MB / 1.232 GB, free: 6.289 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.6631, allocations: 33.7 kB / 1.232 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.6632, allocations: 172 kB / 1.232 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.6632, allocations: 19.83 kB / 1.232 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.6633, allocations: 9.719 kB / 1.232 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.6634, allocations: 346.8 kB / 1.233 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.894e-05/0.6634, allocations: 11.98 kB / 1.233 GB, free: 5.684 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.231e-05/0.6635, allocations: 19.97 kB / 1.233 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.789e-05/0.6636, allocations: 36.84 kB / 1.233 GB, free: 5.625 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6636, allocations: 0 / 1.233 GB, free: 5.625 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001657/0.6638, allocations: 89.48 kB / 1.233 GB, free: 5.531 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.6638, allocations: 4 kB / 1.233 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.6638, allocations: 0 / 1.233 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.6638, allocations: 7.875 kB / 1.233 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-05/0.6639, allocations: 11.98 kB / 1.233 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.6639, allocations: 0 / 1.233 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.391e-05/0.664, allocations: 112 / 1.233 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-06/0.664, allocations: 3.938 kB / 1.233 GB, free: 5.504 MB / 0.9512 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.000135/0.6641, allocations: 185.8 kB / 1.233 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.6642, allocations: 27.81 kB / 1.233 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/0.6644, allocations: 104.1 kB / 1.233 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.6644, allocations: 0 / 1.233 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6644, allocations: 4 kB / 1.233 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.6644, allocations: 0 / 1.233 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.6647, allocations: 277.5 kB / 1.233 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6647, allocations: 0 / 1.233 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.168e-05/0.6648, allocations: 19.92 kB / 1.233 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.6648, allocations: 3.938 kB / 1.233 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.6648, allocations: 3.938 kB / 1.233 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.6648, allocations: 0 / 1.233 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6648, allocations: 0 / 1.233 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.665, allocations: 187.3 kB / 1.233 GB, free: 4.625 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.6651, allocations: 116.9 kB / 1.234 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.6652, allocations: 7.938 kB / 1.234 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-05/0.6653, allocations: 0 / 1.234 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.6653, allocations: 11.98 kB / 1.234 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.6653, allocations: 4 kB / 1.234 GB, free: 4.469 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004205/0.6658, allocations: 419.1 kB / 1.234 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6658, allocations: 0 / 1.234 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002619/0.666, allocations: 23.94 kB / 1.234 GB, free: 4.039 MB / 0.9512 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.001133/0.6672, allocations: 0.9748 MB / 1.235 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001447/0.6673, allocations: 39.91 kB / 1.235 GB, free: 3.129 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6673, allocations: 0 / 1.235 GB, free: 3.129 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.57e-05/0.6674, allocations: 23.92 kB / 1.235 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.6678, allocations: 41.53 kB / 1.235 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.6709, allocations: 2.888 MB / 1.238 GB, free: 112 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.6713, allocations: 0.7831 MB / 1.239 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001025/0.6714, allocations: 46.91 kB / 1.239 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.6715, allocations: 87.41 kB / 1.239 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of SimCode: time 3.3e-07/0.6715, allocations: 0 / 1.239 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.6925, allocations: 5.458 MB / 1.244 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.617, allocations: 12.23 kB / 1.244 GB, free: 9.887 MB / 0.9669 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable linPieTwo.u in file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " Variables in the reference:time,linPieTwo.u,linPieTwo.y[1],linPieTwo.y[2] Variables in the result:time,linPieTwo.y[1],linPieTwo.y[2],pulse.y,linPieTwo.x0,linPieTwo.x1