Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 106.8 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 225.6 MB / 249.3 MB, free: 3.23 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.455/2.455, allocations: 476.7 MB / 0.7628 GB, free: 15.32 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 67.89 kB / 1.107 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7231/0.7249, allocations: 168.7 MB / 1.271 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002559/0.7275, allocations: 1.802 MB / 1.273 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.7286, allocations: 0.9357 MB / 1.274 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.7287, allocations: 5.719 kB / 1.274 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004485/0.7292, allocations: 188.9 kB / 1.274 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.7295, allocations: 163.8 kB / 1.274 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.7298, allocations: 210 kB / 1.275 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.7301, allocations: 240.9 kB / 1.275 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.7302, allocations: 46.72 kB / 1.275 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.7303, allocations: 97.02 kB / 1.275 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.7305, allocations: 172.1 kB / 1.275 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.7306, allocations: 18.47 kB / 1.275 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.46e-05/0.7307, allocations: 39.31 kB / 1.275 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.021e-05/0.7308, allocations: 86.61 kB / 1.275 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.484e-05/0.7308, allocations: 120.8 kB / 1.275 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.7312, allocations: 358.2 kB / 1.276 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.7312, allocations: 0 / 1.276 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.7312, allocations: 0 / 1.276 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.513e-06/0.7312, allocations: 4 kB / 1.276 GB, free: 5.109 MB / 0.9981 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.0006314/0.7318, allocations: 0.6125 MB / 1.276 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.7319, allocations: 9.656 kB / 1.276 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.593e-05/0.7319, allocations: 45.47 kB / 1.276 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.359e-05/0.7319, allocations: 34.61 kB / 1.276 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.7324, allocations: 412.3 kB / 1.277 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.7324, allocations: 2.719 kB / 1.277 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.7324, allocations: 11.5 kB / 1.277 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.7325, allocations: 79.38 kB / 1.277 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.7325, allocations: 0 / 1.277 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.7325, allocations: 5.281 kB / 1.277 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.7325, allocations: 0.9688 kB / 1.277 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.7327, allocations: 49.61 kB / 1.277 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004708/0.7331, allocations: 479.3 kB / 1.277 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.7332, allocations: 54.66 kB / 1.277 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.614e-05/0.7333, allocations: 12.89 kB / 1.277 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.7333, allocations: 5.891 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.7333, allocations: 31.28 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.7333, allocations: 0.75 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002534/0.7336, allocations: 106.4 kB / 1.278 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.7336, allocations: 52.41 kB / 1.278 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005492/0.7342, allocations: 0.559 MB / 1.278 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.993e-06/0.7342, allocations: 25.7 kB / 1.278 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.7343, allocations: 171.7 kB / 1.278 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.7343, allocations: 25.58 kB / 1.278 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.7343, allocations: 13.31 kB / 1.278 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.809e-05/0.7344, allocations: 342.7 kB / 1.279 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.736e-05/0.7344, allocations: 13.83 kB / 1.279 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.782e-05/0.7344, allocations: 19.27 kB / 1.279 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.188e-05/0.7345, allocations: 37.33 kB / 1.279 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.7345, allocations: 0 / 1.279 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001429/0.7347, allocations: 92.17 kB / 1.279 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.7347, allocations: 7.156 kB / 1.279 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.7347, allocations: 0.9688 kB / 1.279 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.7347, allocations: 3.938 kB / 1.279 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.788e-05/0.7348, allocations: 8.766 kB / 1.279 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.7348, allocations: 3.938 kB / 1.279 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.7348, allocations: 8.688 kB / 1.279 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-06/0.7348, allocations: 0.9688 kB / 1.279 GB, free: 2.66 MB / 0.9981 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.0001072/0.7349, allocations: 176.9 kB / 1.279 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-05/0.735, allocations: 28.97 kB / 1.279 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001821/0.7352, allocations: 103.2 kB / 1.279 GB, free: 2.449 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.7352, allocations: 3.938 kB / 1.279 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.7352, allocations: 1 kB / 1.279 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.7352, allocations: 4 kB / 1.279 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.7354, allocations: 288.4 kB / 1.28 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7354, allocations: 0 / 1.28 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.63e-05/0.7354, allocations: 8.062 kB / 1.28 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.7354, allocations: 0.9688 kB / 1.28 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.7354, allocations: 4.969 kB / 1.28 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.7355, allocations: 4.844 kB / 1.28 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.7355, allocations: 0.9062 kB / 1.28 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.7356, allocations: 183.7 kB / 1.28 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.095e-05/0.7357, allocations: 118.3 kB / 1.28 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.7357, allocations: 4.688 kB / 1.28 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.633e-05/0.7358, allocations: 2.484 kB / 1.28 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.002e-05/0.7358, allocations: 3.812 kB / 1.28 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.7358, allocations: 0.9688 kB / 1.28 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004324/0.7363, allocations: 422.5 kB / 1.28 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7363, allocations: 0 / 1.28 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002572/0.7365, allocations: 29.86 kB / 1.28 GB, free: 1.727 MB / 0.9981 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.00136/0.7379, allocations: 0.9828 MB / 1.281 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000143/0.738, allocations: 36.73 kB / 1.281 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.738, allocations: 0 / 1.281 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.063e-05/0.7381, allocations: 20.77 kB / 1.281 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.7385, allocations: 40.34 kB / 1.281 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.7413, allocations: 2.886 MB / 1.284 GB, free: 15.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.7417, allocations: 0.7853 MB / 1.285 GB, free: 14.46 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001056/0.7418, allocations: 44.98 kB / 1.285 GB, free: 14.45 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.7419, allocations: 91.64 kB / 1.285 GB, free: 14.39 MB / 1.014 GB Notification: Performance of SimCode: time 4.9e-07/0.7419, allocations: 0 / 1.285 GB, free: 14.39 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02838/0.7703, allocations: 5.44 MB / 1.29 GB, free: 13.52 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/8.07, allocations: 8.859 kB / 1.29 GB, free: 13.52 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.417818175999855]