Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001303/0.001303, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 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.001529/0.001529, allocations: 215.7 kB / 22.25 MB, free: 5.105 MB / 14.72 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 1.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.075/3.075, allocations: 0.49 GB / 0.7951 GB, free: 35.65 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003156/0.003156, allocations: 60.66 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.333, allocations: 176.1 MB / 1.326 GB, free: 1.574 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003892/0.3369, allocations: 1.793 MB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002095/0.339, allocations: 1.091 MB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.3391, allocations: 3.938 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005883/0.3397, allocations: 199.5 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005966/0.3403, allocations: 207.2 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.3409, allocations: 229 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.3412, allocations: 267.4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.3414, allocations: 40.73 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.3417, allocations: 119.5 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/0.3419, allocations: 175.4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.037e-05/0.342, allocations: 20 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.3421, allocations: 56 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.3422, allocations: 91.73 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.3423, allocations: 95.27 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005027/0.3428, allocations: 374.5 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3428, allocations: 0 / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.133e-06/0.3428, allocations: 0 / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.435e-05/0.3429, allocations: 0 / 1.33 GB, free: 12.84 MB / 1.029 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.0009229/0.3438, allocations: 0.5586 MB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3438, allocations: 12.03 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.3439, allocations: 38.73 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.3441, allocations: 48.69 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006658/0.3447, allocations: 372.6 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3447, allocations: 4.375 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.3448, allocations: 11.92 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.3449, allocations: 73.67 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3449, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.3449, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.345, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.3451, allocations: 51.91 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006542/0.3457, allocations: 427.7 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.3459, allocations: 42.62 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.308e-05/0.3459, allocations: 20.84 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.346, allocations: 4 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.346, allocations: 30.56 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.346, allocations: 0 / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003214/0.3463, allocations: 113.3 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3463, allocations: 51.41 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.347, allocations: 0.5759 MB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.3471, allocations: 29.64 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.3472, allocations: 184 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.3472, allocations: 11.91 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.3473, allocations: 13.72 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3474, allocations: 346.8 kB / 1.333 GB, free: 9.664 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.357e-05/0.3475, allocations: 15.98 kB / 1.333 GB, free: 9.648 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.012e-05/0.3475, allocations: 8 kB / 1.333 GB, free: 9.641 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.562e-05/0.3476, allocations: 40.83 kB / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3476, allocations: 0 / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001719/0.3478, allocations: 93.44 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3478, allocations: 4 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3478, allocations: 3.938 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3478, allocations: 12.25 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.542e-05/0.3479, allocations: 4 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3479, allocations: 0 / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.493e-05/0.348, allocations: 4 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.348, allocations: 0 / 1.334 GB, free: 9.473 MB / 1.029 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.0001689/0.3481, allocations: 185.8 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.9e-05/0.3482, allocations: 35.77 kB / 1.334 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.3484, allocations: 112.2 kB / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3484, allocations: 4 kB / 1.334 GB, free: 9.125 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3484, allocations: 3.984 kB / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.3485, allocations: 0 / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/0.3487, allocations: 236.7 kB / 1.334 GB, free: 8.848 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3487, allocations: 0 / 1.334 GB, free: 8.848 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.225e-05/0.3488, allocations: 11.98 kB / 1.334 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3488, allocations: 0 / 1.334 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3488, allocations: 3.938 kB / 1.334 GB, free: 8.832 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3488, allocations: 4 kB / 1.334 GB, free: 8.828 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3488, allocations: 3.984 kB / 1.334 GB, free: 8.824 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.349, allocations: 187.3 kB / 1.334 GB, free: 8.625 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.202e-05/0.3491, allocations: 39.8 kB / 1.334 GB, free: 8.586 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.3491, allocations: 7.938 kB / 1.334 GB, free: 8.578 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.958e-05/0.3492, allocations: 0 / 1.334 GB, free: 8.578 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.3493, allocations: 7.922 kB / 1.334 GB, free: 8.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3493, allocations: 4 kB / 1.334 GB, free: 8.566 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000492/0.3498, allocations: 439 kB / 1.335 GB, free: 8.141 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3498, allocations: 0 / 1.335 GB, free: 8.141 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000287/0.3501, allocations: 28 kB / 1.335 GB, free: 8.113 MB / 1.029 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.001784/0.3518, allocations: 0.9869 MB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001612/0.352, allocations: 39.86 kB / 1.336 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.352, allocations: 0 / 1.336 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.464e-05/0.3521, allocations: 15.98 kB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.3525, allocations: 61.22 kB / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.356, allocations: 2.96 MB / 1.339 GB, free: 4.102 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.3562, allocations: 182.1 kB / 1.339 GB, free: 3.902 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001176/0.3564, allocations: 47.27 kB / 1.339 GB, free: 3.855 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.3565, allocations: 95.39 kB / 1.339 GB, free: 3.762 MB / 1.029 GB Notification: Performance of SimCode: time 9.92e-07/0.3565, allocations: 4 kB / 1.339 GB, free: 3.758 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.3908, allocations: 6.369 MB / 1.345 GB, free: 13.46 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.51, allocations: 19.86 kB / 1.345 GB, free: 13.45 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.150371900002938]