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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8987/0.8987, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.714/1.714, allocations: 389 MB / 0.633 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 3.938 kB / 0.9997 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027e-05/1.15e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002009/0.002021, allocations: 1.783 MB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.003183, allocations: 1.091 MB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.799e-05/0.003271, allocations: 7.938 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0004437/0.003714, allocations: 187.5 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.000397/0.004112, allocations: 213.4 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.004475, allocations: 229.4 kB / 1.003 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002877/0.004763, allocations: 267.3 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.004894, allocations: 44.55 kB / 1.003 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.005093, allocations: 135.6 kB / 1.004 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.005254, allocations: 155.7 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.005282, allocations: 20 kB / 1.004 GB, free: 9.422 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 8.904e-05/0.005371, allocations: 59.91 kB / 1.004 GB, free: 9.363 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.31e-05/0.005444, allocations: 87.7 kB / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.084e-05/0.005495, allocations: 63.77 kB / 1.004 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.005799, allocations: 362.8 kB / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.005801, allocations: 0 / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.92e-07/0.005802, allocations: 0 / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.005807, allocations: 4 kB / 1.004 GB, free: 8.855 MB / 0.9636 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.0005984/0.006405, allocations: 0.5585 MB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.006446, allocations: 12.75 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.006478, allocations: 34.73 kB / 1.005 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.006608, allocations: 48.69 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.007038, allocations: 371.9 kB / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.007049, allocations: 384 / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.007059, allocations: 4.375 kB / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.00719, allocations: 81.92 kB / 1.005 GB, free: 7.684 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.0072, allocations: 7.984 kB / 1.005 GB, free: 7.676 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.00721, allocations: 3.984 kB / 1.005 GB, free: 7.672 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.007216, allocations: 4 kB / 1.005 GB, free: 7.668 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.96e-05/0.007295, allocations: 47.97 kB / 1.005 GB, free: 7.621 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004035/0.007699, allocations: 419.6 kB / 1.006 GB, free: 7.168 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 8.568e-05/0.007784, allocations: 46.56 kB / 1.006 GB, free: 7.113 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.89e-05/0.007813, allocations: 20.91 kB / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.007832, allocations: 0 / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.007848, allocations: 34.56 kB / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.007848, allocations: 0 / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0001863/0.008035, allocations: 113.4 kB / 1.006 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.00806, allocations: 51.41 kB / 1.006 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/0.008484, allocations: 0.5757 MB / 1.007 GB, free: 6.281 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.818e-06/0.008494, allocations: 29.7 kB / 1.007 GB, free: 6.246 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 8.857e-05/0.008582, allocations: 176 kB / 1.007 GB, free: 6.07 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.008599, allocations: 11.94 kB / 1.007 GB, free: 6.059 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/0.008626, allocations: 21.7 kB / 1.007 GB, free: 6.031 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.008724, allocations: 338.8 kB / 1.007 GB, free: 5.691 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.998e-05/0.008754, allocations: 19.98 kB / 1.007 GB, free: 5.672 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.157e-05/0.008776, allocations: 19.92 kB / 1.007 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.309e-05/0.008829, allocations: 36.78 kB / 1.007 GB, free: 5.613 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.008831, allocations: 0 / 1.007 GB, free: 5.613 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.601e-05/0.008927, allocations: 93.44 kB / 1.007 GB, free: 5.516 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.00894, allocations: 9.875 kB / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.008943, allocations: 0 / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.759e-06/0.008953, allocations: 0 / 1.007 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.43e-05/0.008997, allocations: 4 kB / 1.007 GB, free: 5.504 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.009003, allocations: 7.938 kB / 1.007 GB, free: 5.496 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.307e-05/0.009036, allocations: 7.984 kB / 1.007 GB, free: 5.488 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.00904, allocations: 0 / 1.007 GB, free: 5.488 MB / 0.9636 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.0001021/0.009142, allocations: 177.8 kB / 1.007 GB, free: 5.305 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.009175, allocations: 35.77 kB / 1.008 GB, free: 5.27 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.009311, allocations: 108.7 kB / 1.008 GB, free: 5.156 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.009313, allocations: 0 / 1.008 GB, free: 5.156 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.009317, allocations: 48 / 1.008 GB, free: 5.156 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.009322, allocations: 7.922 kB / 1.008 GB, free: 5.148 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.009505, allocations: 248.7 kB / 1.008 GB, free: 4.863 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.009506, allocations: 3.938 kB / 1.008 GB, free: 4.859 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.065e-05/0.009527, allocations: 8 kB / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.009528, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.009534, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.009535, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.009536, allocations: 0 / 1.008 GB, free: 4.852 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.009662, allocations: 195.2 kB / 1.008 GB, free: 4.645 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.009707, allocations: 43.8 kB / 1.008 GB, free: 4.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.009724, allocations: 0 / 1.008 GB, free: 4.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.397e-05/0.009768, allocations: 4 kB / 1.008 GB, free: 4.598 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.009797, allocations: 11.92 kB / 1.008 GB, free: 4.586 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-06/0.009799, allocations: 0 / 1.008 GB, free: 4.586 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0003091/0.01011, allocations: 435.1 kB / 1.009 GB, free: 4.164 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.01011, allocations: 0 / 1.009 GB, free: 4.164 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000183/0.01029, allocations: 24 kB / 1.009 GB, free: 4.141 MB / 0.9636 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.0008001/0.01109, allocations: 0.9878 MB / 1.01 GB, free: 3.273 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 9.315e-05/0.01118, allocations: 35.91 kB / 1.01 GB, free: 3.238 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.01119, allocations: 0 / 1.01 GB, free: 3.238 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 2.461e-05/0.01121, allocations: 12 kB / 1.01 GB, free: 3.227 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.01146, allocations: 55.45 kB / 1.01 GB, free: 3.176 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.01365, allocations: 2.979 MB / 1.013 GB, free: 120 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.01378, allocations: 182.1 kB / 1.013 GB, free: 15.92 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 7.378e-05/0.01385, allocations: 55.25 kB / 1.013 GB, free: 15.86 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.65e-05/0.01395, allocations: 88.47 kB / 1.013 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of SimCode: time 4.01e-07/0.01395, allocations: 0 / 1.013 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.03503, allocations: 6.516 MB / 1.019 GB, free: 9.383 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.918/6.953, allocations: 4.062 kB / 1.019 GB, free: 9.379 MB / 0.9792 GB " [Timeout remaining time 293] (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 800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "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! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.051575268618762]