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.001931/0.001931, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002287/0.002287, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.608/1.608, allocations: 230.6 MB / 253.5 MB, free: 15.1 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 2.881/2.881, allocations: 0.49 GB / 0.7923 GB, free: 1.344 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="cs",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.002193/0.002193, allocations: 71.91 kB / 1.15 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9117/0.9139, allocations: 176.1 MB / 1.321 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002846/0.9168, allocations: 1.814 MB / 1.323 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.9183, allocations: 1.149 MB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.9184, allocations: 6.719 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0004537/0.9189, allocations: 184.8 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.9193, allocations: 210.3 kB / 1.325 GB, free: 22.52 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.9197, allocations: 211.9 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.9199, allocations: 273.5 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.92, allocations: 47.06 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.9202, allocations: 109.7 kB / 1.325 GB, free: 22.21 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.9204, allocations: 176.5 kB / 1.326 GB, free: 22.16 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.9204, allocations: 19.78 kB / 1.326 GB, free: 22.16 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.455e-05/0.9205, allocations: 56.42 kB / 1.326 GB, free: 22.15 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.442e-05/0.9206, allocations: 83.8 kB / 1.326 GB, free: 22.11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.854e-05/0.9207, allocations: 125.4 kB / 1.326 GB, free: 22.02 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.921, allocations: 381.3 kB / 1.326 GB, free: 21.86 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.921, allocations: 4 kB / 1.326 GB, free: 21.86 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.876e-06/0.921, allocations: 5.984 kB / 1.326 GB, free: 21.86 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.074e-06/0.921, allocations: 0 / 1.326 GB, free: 21.86 MB / 1.061 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.0007214/0.9217, allocations: 0.6353 MB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.9218, allocations: 19.48 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.783e-05/0.9218, allocations: 192 / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.752e-05/0.9218, allocations: 36.47 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.922, allocations: 44.72 kB / 1.327 GB, free: 21.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006177/0.9226, allocations: 434.9 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.9226, allocations: 6.594 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.9226, allocations: 3.344 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.9228, allocations: 74.22 kB / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.9228, allocations: 0 / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.9228, allocations: 1.438 kB / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.9228, allocations: 1 kB / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.923, allocations: 58.77 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005671/0.9236, allocations: 487.2 kB / 1.328 GB, free: 20.48 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.9237, allocations: 50.7 kB / 1.328 GB, free: 20.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.309e-05/0.9237, allocations: 20.45 kB / 1.328 GB, free: 20.43 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.9238, allocations: 3.938 kB / 1.328 GB, free: 20.43 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.9238, allocations: 35.16 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.9238, allocations: 0.9688 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003242/0.9241, allocations: 109.1 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.9241, allocations: 52.22 kB / 1.328 GB, free: 20.26 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000747/0.9249, allocations: 0.5734 MB / 1.329 GB, free: 20 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.806e-06/0.9249, allocations: 26.89 kB / 1.329 GB, free: 19.97 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.925, allocations: 176.7 kB / 1.329 GB, free: 19.82 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.925, allocations: 16.91 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.9251, allocations: 21.16 kB / 1.329 GB, free: 19.79 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/0.9251, allocations: 343.5 kB / 1.329 GB, free: 19.46 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.496e-05/0.9252, allocations: 18.28 kB / 1.329 GB, free: 19.46 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.335e-05/0.9252, allocations: 10.91 kB / 1.329 GB, free: 19.46 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.9253, allocations: 31.98 kB / 1.329 GB, free: 19.44 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9253, allocations: 0.8438 kB / 1.329 GB, free: 19.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001693/0.9255, allocations: 88.2 kB / 1.329 GB, free: 19.39 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.9255, allocations: 12.39 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.9255, allocations: 4.531 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.9255, allocations: 0.5312 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.255e-05/0.9256, allocations: 5.5 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.9256, allocations: 0.5312 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.537e-05/0.9257, allocations: 9.375 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.9257, allocations: 1.125 kB / 1.329 GB, free: 19.38 MB / 1.061 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.0001227/0.9258, allocations: 181.8 kB / 1.33 GB, free: 19.23 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.952e-05/0.9259, allocations: 40.86 kB / 1.33 GB, free: 19.21 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.9261, allocations: 107 kB / 1.33 GB, free: 19.14 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.9261, allocations: 112 / 1.33 GB, free: 19.14 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9261, allocations: 8.656 kB / 1.33 GB, free: 19.14 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.9261, allocations: 0 / 1.33 GB, free: 19.14 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.9263, allocations: 295.9 kB / 1.33 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9263, allocations: 0 / 1.33 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.774e-05/0.9264, allocations: 5.844 kB / 1.33 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.9264, allocations: 0.7812 kB / 1.33 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.9264, allocations: 4.625 kB / 1.33 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.9264, allocations: 4.562 kB / 1.33 GB, free: 18.89 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.9264, allocations: 7.078 kB / 1.33 GB, free: 18.89 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.9266, allocations: 184.5 kB / 1.33 GB, free: 18.73 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.9267, allocations: 118.3 kB / 1.33 GB, free: 18.62 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.9267, allocations: 8.516 kB / 1.33 GB, free: 18.61 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-05/0.9268, allocations: 2.188 kB / 1.33 GB, free: 18.61 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.9268, allocations: 4.766 kB / 1.33 GB, free: 18.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.9268, allocations: 9.156 kB / 1.33 GB, free: 18.6 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004264/0.9272, allocations: 434.5 kB / 1.331 GB, free: 18.42 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.9272, allocations: 0 / 1.331 GB, free: 18.42 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002689/0.9275, allocations: 31.42 kB / 1.331 GB, free: 18.41 MB / 1.061 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.001517/0.929, allocations: 0.9731 MB / 1.332 GB, free: 17.64 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001703/0.9292, allocations: 28.48 kB / 1.332 GB, free: 17.63 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.9292, allocations: 0 / 1.332 GB, free: 17.63 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.707e-05/0.9293, allocations: 25.58 kB / 1.332 GB, free: 17.62 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.9297, allocations: 44.64 kB / 1.332 GB, free: 17.6 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.9329, allocations: 2.969 MB / 1.335 GB, free: 15.83 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.9331, allocations: 0.7893 MB / 1.336 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001369/0.9333, allocations: 44.7 kB / 1.336 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.9334, allocations: 97.11 kB / 1.336 GB, free: 15.04 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.9334, allocations: 0.875 kB / 1.336 GB, free: 15.04 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.9578, allocations: 5.763 MB / 1.341 GB, free: 14.17 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.853/9.811, allocations: 14.73 kB / 1.341 GB, free: 14.16 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.373336746008135]