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.0008787/0.0008787, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001014/0.001014, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9008/0.9008, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.759/1.759, allocations: 377.9 MB / 0.6229 GB, free: 8.625 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 0.9822 GB, free: 2.074 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.088e-05/2.24e-05, allocations: 6.281 kB / 0.9822 GB, free: 2.066 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003154/0.003176, allocations: 1.778 MB / 0.9839 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.005056, allocations: 1.091 MB / 0.985 GB, free: 15.18 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.005177, allocations: 3.938 kB / 0.985 GB, free: 15.18 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005596/0.005737, allocations: 186.8 kB / 0.9852 GB, free: 15 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0005409/0.006278, allocations: 227.5 kB / 0.9854 GB, free: 14.78 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.00677, allocations: 224.6 kB / 0.9856 GB, free: 14.56 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.007111, allocations: 267.3 kB / 0.9859 GB, free: 14.3 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.007261, allocations: 44.48 kB / 0.9859 GB, free: 14.26 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000285/0.007546, allocations: 139.6 kB / 0.986 GB, free: 14.12 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.007714, allocations: 151.7 kB / 0.9862 GB, free: 13.97 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.007742, allocations: 20 kB / 0.9862 GB, free: 13.95 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 8.514e-05/0.007827, allocations: 55.92 kB / 0.9863 GB, free: 13.9 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.0079, allocations: 95.69 kB / 0.9864 GB, free: 13.8 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.007951, allocations: 63.72 kB / 0.9864 GB, free: 13.74 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.008246, allocations: 366.8 kB / 0.9868 GB, free: 13.38 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.008248, allocations: 0 / 0.9868 GB, free: 13.38 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.72e-07/0.008249, allocations: 4 kB / 0.9868 GB, free: 13.38 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.008254, allocations: 4 kB / 0.9868 GB, free: 13.38 MB / 0.948 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.0005531/0.008807, allocations: 0.5469 MB / 0.9873 GB, free: 12.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.008842, allocations: 12.02 kB / 0.9873 GB, free: 12.79 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.008962, allocations: 40.7 kB / 0.9874 GB, free: 12.75 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.009348, allocations: 371.9 kB / 0.9877 GB, free: 12.36 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.009356, allocations: 8.25 kB / 0.9877 GB, free: 12.35 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.009367, allocations: 8.375 kB / 0.9877 GB, free: 12.34 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.009486, allocations: 78.17 kB / 0.9878 GB, free: 12.26 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.009493, allocations: 7.938 kB / 0.9878 GB, free: 12.25 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.009502, allocations: 0 / 0.9878 GB, free: 12.25 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.009507, allocations: 4 kB / 0.9878 GB, free: 12.25 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.408e-05/0.009581, allocations: 43.97 kB / 0.9879 GB, free: 12.21 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003734/0.009955, allocations: 400.2 kB / 0.9882 GB, free: 11.79 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.679e-05/0.01004, allocations: 46.55 kB / 0.9883 GB, free: 11.73 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.948e-05/0.01007, allocations: 16.92 kB / 0.9883 GB, free: 11.71 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.01009, allocations: 3.984 kB / 0.9883 GB, free: 11.71 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.01011, allocations: 42.48 kB / 0.9883 GB, free: 11.66 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.01011, allocations: 4 kB / 0.9883 GB, free: 11.65 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0001906/0.0103, allocations: 97.48 kB / 0.9884 GB, free: 11.55 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.01032, allocations: 51.41 kB / 0.9885 GB, free: 11.49 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004224/0.01075, allocations: 0.5835 MB / 0.9891 GB, free: 10.89 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.01076, allocations: 25.7 kB / 0.9891 GB, free: 10.86 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.01085, allocations: 176 kB / 0.9892 GB, free: 10.68 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.01087, allocations: 11.84 kB / 0.9893 GB, free: 10.67 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.0109, allocations: 17.72 kB / 0.9893 GB, free: 10.65 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.297e-05/0.01099, allocations: 350.7 kB / 0.9896 GB, free: 10.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.759e-05/0.01102, allocations: 12 kB / 0.9896 GB, free: 10.29 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.182e-05/0.01104, allocations: 15.98 kB / 0.9896 GB, free: 10.27 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.095e-05/0.01109, allocations: 36.78 kB / 0.9897 GB, free: 10.23 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.01109, allocations: 0 / 0.9897 GB, free: 10.23 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.339e-05/0.01118, allocations: 93.48 kB / 0.9898 GB, free: 10.13 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.0112, allocations: 8 kB / 0.9898 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.0112, allocations: 0 / 0.9898 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.01121, allocations: 112 / 0.9898 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.216e-05/0.01126, allocations: 15.92 kB / 0.9898 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.01127, allocations: 4 kB / 0.9898 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.19e-05/0.0113, allocations: 3.953 kB / 0.9898 GB, free: 10.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.0113, allocations: 3.938 kB / 0.9898 GB, free: 10.1 MB / 0.948 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.0001034/0.01141, allocations: 181.8 kB / 0.99 GB, free: 9.91 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.01144, allocations: 35.81 kB / 0.99 GB, free: 9.875 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.01157, allocations: 100.4 kB / 0.9901 GB, free: 9.77 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.01157, allocations: 0 / 0.9901 GB, free: 9.77 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01157, allocations: 0 / 0.9901 GB, free: 9.77 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.01157, allocations: 0 / 0.9901 GB, free: 9.77 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.01172, allocations: 221.1 kB / 0.9903 GB, free: 9.523 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.01172, allocations: 0 / 0.9903 GB, free: 9.523 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.005e-05/0.01174, allocations: 4 kB / 0.9903 GB, free: 9.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.01175, allocations: 3.938 kB / 0.9903 GB, free: 9.516 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.01175, allocations: 8 kB / 0.9903 GB, free: 9.508 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.01175, allocations: 0 / 0.9903 GB, free: 9.508 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01176, allocations: 0 / 0.9903 GB, free: 9.508 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.01187, allocations: 191.2 kB / 0.9905 GB, free: 9.305 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.01191, allocations: 39.8 kB / 0.9905 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.01192, allocations: 0 / 0.9905 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.423e-05/0.01197, allocations: 8.422 kB / 0.9906 GB, free: 9.258 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.01199, allocations: 7.984 kB / 0.9906 GB, free: 9.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.01199, allocations: 0 / 0.9906 GB, free: 9.25 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002988/0.01229, allocations: 435.1 kB / 0.991 GB, free: 8.828 MB / 0.948 GB Notification: Performance of sort global known variables: time 9e-08/0.01229, allocations: 0 / 0.991 GB, free: 8.828 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001754/0.01247, allocations: 31.89 kB / 0.991 GB, free: 8.797 MB / 0.948 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.000576/0.01304, allocations: 390.4 kB / 0.9914 GB, free: 8.562 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 9.403e-05/0.01314, allocations: 35.91 kB / 0.9914 GB, free: 8.527 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.01314, allocations: 3.938 kB / 0.9914 GB, free: 8.523 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.01316, allocations: 12 kB / 0.9914 GB, free: 8.512 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.01341, allocations: 47.97 kB / 0.9915 GB, free: 8.469 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/0.01397, allocations: 0.5724 MB / 0.992 GB, free: 7.863 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.0143, allocations: 178.1 kB / 0.9922 GB, free: 7.668 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.01435, allocations: 28.48 kB / 0.9922 GB, free: 7.641 MB / 0.948 GB Notification: Performance of SimCode: time 6.11e-07/0.01435, allocations: 0 / 0.9922 GB, free: 7.641 MB / 0.948 GB Notification: Performance of Templates: time 0.003614/0.01797, allocations: 3.856 MB / 0.996 GB, free: 3.785 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 400] 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/jenkins/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: 6.8524927534163]