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.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.0009113/0.0009113, 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.001083/0.001083, 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.884/0.884, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.637/1.637, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 2.174e-06/2.174e-06, allocations: 0 / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.522e-05/2.739e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003428/0.003455, allocations: 1.794 MB / 0.9522 GB, free: 1.684 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001953/0.005408, allocations: 1.079 MB / 0.9533 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.005532, allocations: 4 kB / 0.9533 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0006257/0.006157, allocations: 204.2 kB / 0.9535 GB, free: 408 kB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.006695, allocations: 200 kB / 0.9537 GB, free: 208 kB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007098/0.007405, allocations: 227.7 kB / 0.9539 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.007733, allocations: 275.3 kB / 0.9542 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.007868, allocations: 40.5 kB / 0.9542 GB, free: 15.67 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.008085, allocations: 135.7 kB / 0.9543 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.008241, allocations: 155.7 kB / 0.9545 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.008269, allocations: 20 kB / 0.9545 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 9.373e-05/0.008363, allocations: 59.86 kB / 0.9546 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 7.589e-05/0.008439, allocations: 91.69 kB / 0.9546 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 5.314e-05/0.008492, allocations: 63.78 kB / 0.9547 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.008804, allocations: 362.8 kB / 0.9551 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.008809, allocations: 0 / 0.9551 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.352e-06/0.00881, allocations: 0 / 0.9551 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.008815, allocations: 3.984 kB / 0.9551 GB, free: 14.8 MB / 0.9167 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.0005837/0.009399, allocations: 0.5546 MB / 0.9556 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.009438, allocations: 12.03 kB / 0.9556 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.009469, allocations: 38.73 kB / 0.9556 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.009597, allocations: 44.7 kB / 0.9557 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.01005, allocations: 375.9 kB / 0.956 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.01006, allocations: 8.312 kB / 0.9561 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.01007, allocations: 4.375 kB / 0.9561 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.0102, allocations: 77.98 kB / 0.9561 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.01021, allocations: 0 / 0.9561 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.01022, allocations: 0 / 0.9561 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.01022, allocations: 4 kB / 0.9561 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.941e-05/0.0103, allocations: 47.91 kB / 0.9562 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004106/0.01071, allocations: 435.6 kB / 0.9566 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 9.018e-05/0.0108, allocations: 46.56 kB / 0.9566 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.128e-05/0.01083, allocations: 21.02 kB / 0.9567 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.01086, allocations: 3.938 kB / 0.9567 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.01087, allocations: 30.56 kB / 0.9567 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 7.52e-07/0.01087, allocations: 0 / 0.9567 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0001865/0.01106, allocations: 109.4 kB / 0.9568 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.01109, allocations: 55.39 kB / 0.9569 GB, free: 12.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004582/0.01154, allocations: 0.5757 MB / 0.9574 GB, free: 12.22 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.01156, allocations: 29.7 kB / 0.9574 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.064e-05/0.01165, allocations: 180 kB / 0.9576 GB, free: 12 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.01166, allocations: 11.91 kB / 0.9576 GB, free: 11.99 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.671e-05/0.01169, allocations: 17.72 kB / 0.9576 GB, free: 11.97 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.01177, allocations: 342.8 kB / 0.958 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.154e-05/0.01181, allocations: 15.98 kB / 0.958 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.565e-05/0.01183, allocations: 8 kB / 0.958 GB, free: 11.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.38e-05/0.01189, allocations: 36.83 kB / 0.958 GB, free: 11.56 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.0119, allocations: 4 kB / 0.958 GB, free: 11.56 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001451/0.01204, allocations: 89.44 kB / 0.9581 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.01206, allocations: 11.98 kB / 0.9581 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01206, allocations: 0 / 0.9581 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.01207, allocations: 0 / 0.9581 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.322e-05/0.01214, allocations: 4 kB / 0.9581 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.01214, allocations: 3.938 kB / 0.9581 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.353e-05/0.0122, allocations: 7.953 kB / 0.9581 GB, free: 11.44 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.01221, allocations: 3.984 kB / 0.9581 GB, free: 11.43 MB / 0.9167 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.0001457/0.01235, allocations: 185.8 kB / 0.9583 GB, free: 11.24 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.0124, allocations: 31.81 kB / 0.9584 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.01259, allocations: 104.3 kB / 0.9585 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.01259, allocations: 0 / 0.9585 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.0126, allocations: 0 / 0.9585 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.0126, allocations: 3.938 kB / 0.9585 GB, free: 11.09 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.01287, allocations: 236.6 kB / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01287, allocations: 0 / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.01291, allocations: 15.98 kB / 0.9587 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01291, allocations: 3.938 kB / 0.9587 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.01292, allocations: 4 kB / 0.9587 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.01292, allocations: 0 / 0.9587 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01292, allocations: 0 / 0.9587 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.01308, allocations: 195.2 kB / 0.9589 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.01314, allocations: 39.8 kB / 0.9589 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.01316, allocations: 0 / 0.9589 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.814e-05/0.01324, allocations: 4 kB / 0.9589 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.01328, allocations: 11.92 kB / 0.9589 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.01328, allocations: 4 kB / 0.9589 GB, free: 10.53 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004253/0.01371, allocations: 435 kB / 0.9594 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of sort global known variables: time 9e-08/0.01371, allocations: 4 kB / 0.9594 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000298/0.014, allocations: 31.95 kB / 0.9594 GB, free: 10.08 MB / 0.9167 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.001052/0.01506, allocations: 0.9874 MB / 0.9604 GB, free: 9.219 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.01518, allocations: 31.98 kB / 0.9604 GB, free: 9.188 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01518, allocations: 3.938 kB / 0.9604 GB, free: 9.184 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.01521, allocations: 19.98 kB / 0.9604 GB, free: 9.164 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.01559, allocations: 48.19 kB / 0.9605 GB, free: 9.117 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.01851, allocations: 2.977 MB / 0.9634 GB, free: 6.066 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.01863, allocations: 182.1 kB / 0.9635 GB, free: 5.867 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 8.478e-05/0.01871, allocations: 47.27 kB / 0.9636 GB, free: 5.82 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.934e-05/0.01881, allocations: 96.45 kB / 0.9637 GB, free: 5.727 MB / 0.9167 GB Notification: Performance of SimCode: time 5.81e-07/0.01881, allocations: 4 kB / 0.9637 GB, free: 5.723 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.03643, allocations: 6.491 MB / 0.97 GB, free: 15.32 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.207/7.244, allocations: 11.64 kB / 0.97 GB, free: 15.32 MB / 0.9323 GB " [Timeout remaining time 293] (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/jenkins/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: 11.247430848889053]