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.001536/0.001536, allocations: 80.39 kB / 21.47 MB, free: 3.031 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.00225/0.00225, allocations: 170.4 kB / 24.87 MB, free: 8.891 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.9439/0.9439, allocations: 177.2 MB / 205.3 MB, free: 5.477 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.768/1.768, allocations: 359 MB / 0.6063 GB, free: 10.9 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.[0-9,]+.",fileNamePrefix="Buildings_11_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.[0-9,]+.",fileNamePrefix="Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.762e-05/1.911e-05, allocations: 3.219 kB / 0.7883 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002528/0.002547, allocations: 1.832 MB / 0.7901 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.003803, allocations: 1.107 MB / 0.7912 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.003886, allocations: 0 / 0.7912 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.004206, allocations: 131.5 kB / 0.7913 GB, free: 9.16 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0003131/0.004519, allocations: 208.7 kB / 0.7915 GB, free: 8.957 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.004807, allocations: 224 kB / 0.7917 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.005038, allocations: 271.4 kB / 0.792 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.005146, allocations: 33.23 kB / 0.792 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005701/0.005716, allocations: 216.5 kB / 0.7922 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.005875, allocations: 155.7 kB / 0.7924 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.005899, allocations: 21.81 kB / 0.7924 GB, free: 8.098 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.983e-05/0.005979, allocations: 55.86 kB / 0.7924 GB, free: 8.043 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.961e-05/0.006049, allocations: 87.75 kB / 0.7925 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.128e-05/0.0061, allocations: 63.72 kB / 0.7926 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.006343, allocations: 223.1 kB / 0.7928 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.006345, allocations: 1.5 kB / 0.7928 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.72e-07/0.006346, allocations: 0 / 0.7928 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.00635, allocations: 0 / 0.7928 GB, free: 7.676 MB / 0.7448 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.0005657/0.006916, allocations: 0.6584 MB / 0.7934 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.006948, allocations: 13.97 kB / 0.7935 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.007083, allocations: 40.7 kB / 0.7935 GB, free: 6.93 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.007399, allocations: 345.4 kB / 0.7938 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.00741, allocations: 4.375 kB / 0.7938 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.007419, allocations: 6.938 kB / 0.7938 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.78e-05/0.007517, allocations: 70.88 kB / 0.7939 GB, free: 6.48 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.007525, allocations: 3.938 kB / 0.7939 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.007532, allocations: 0 / 0.7939 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.007536, allocations: 0 / 0.7939 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.806e-05/0.007605, allocations: 19.92 kB / 0.7939 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.007958, allocations: 372 kB / 0.7943 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.018e-05/0.008028, allocations: 39.64 kB / 0.7943 GB, free: 6.016 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.008044, allocations: 8.406 kB / 0.7943 GB, free: 6.004 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.00806, allocations: 0 / 0.7943 GB, free: 6.004 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.008078, allocations: 37.92 kB / 0.7944 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.008079, allocations: 5.562 kB / 0.7944 GB, free: 5.953 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001366/0.008216, allocations: 73.5 kB / 0.7944 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.008243, allocations: 51.41 kB / 0.7945 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.008589, allocations: 446.5 kB / 0.7949 GB, free: 5.355 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.008598, allocations: 26.27 kB / 0.7949 GB, free: 5.324 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.008721, allocations: 246.7 kB / 0.7952 GB, free: 5.078 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.00874, allocations: 8.484 kB / 0.7952 GB, free: 5.07 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.008768, allocations: 28.14 kB / 0.7952 GB, free: 5.035 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.008908, allocations: 0.5312 MB / 0.7957 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-06/0.008917, allocations: 1.156 kB / 0.7957 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.035e-05/0.008928, allocations: 4.188 kB / 0.7957 GB, free: 4.488 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.869e-05/0.008956, allocations: 27.69 kB / 0.7958 GB, free: 4.457 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.008958, allocations: 0 / 0.7958 GB, free: 4.457 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.551e-05/0.009033, allocations: 74.83 kB / 0.7958 GB, free: 4.379 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.009044, allocations: 6.188 kB / 0.7958 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.009049, allocations: 4 kB / 0.7958 GB, free: 4.371 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.246e-06/0.009057, allocations: 0.9062 kB / 0.7958 GB, free: 4.371 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.405e-05/0.009101, allocations: 4 kB / 0.7958 GB, free: 4.367 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-06/0.009104, allocations: 0.7812 kB / 0.7958 GB, free: 4.367 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.148e-05/0.009135, allocations: 8 kB / 0.7958 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.00914, allocations: 5.109 kB / 0.7959 GB, free: 4.355 MB / 0.7448 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 6.868e-05/0.009209, allocations: 156.5 kB / 0.796 GB, free: 4.191 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.009244, allocations: 39.7 kB / 0.796 GB, free: 4.152 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.39e-05/0.009338, allocations: 77.27 kB / 0.7961 GB, free: 4.07 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.009339, allocations: 0 / 0.7961 GB, free: 4.07 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.00934, allocations: 1.438 kB / 0.7961 GB, free: 4.07 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.009343, allocations: 0 / 0.7961 GB, free: 4.07 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.00949, allocations: 181.2 kB / 0.7963 GB, free: 3.867 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.009491, allocations: 11.94 kB / 0.7963 GB, free: 3.855 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.937e-05/0.009511, allocations: 5.094 kB / 0.7963 GB, free: 3.852 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.009513, allocations: 3.984 kB / 0.7963 GB, free: 3.848 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.168e-06/0.009517, allocations: 0 / 0.7963 GB, free: 3.848 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.009519, allocations: 5.953 kB / 0.7963 GB, free: 3.844 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.009519, allocations: 0 / 0.7963 GB, free: 3.844 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.009758, allocations: 227.6 kB / 0.7965 GB, free: 3.602 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.009791, allocations: 35.75 kB / 0.7966 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.009807, allocations: 0 / 0.7966 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.009849, allocations: 6.375 kB / 0.7966 GB, free: 3.562 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/0.009869, allocations: 0 / 0.7966 GB, free: 3.562 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.009873, allocations: 4 kB / 0.7966 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001555/0.01003, allocations: 287 kB / 0.7969 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01003, allocations: 0 / 0.7969 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001641/0.01019, allocations: 27.94 kB / 0.7969 GB, free: 3.254 MB / 0.7448 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.0007014/0.01089, allocations: 337 kB / 0.7972 GB, free: 3.043 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 7.315e-05/0.01097, allocations: 19.67 kB / 0.7972 GB, free: 3.02 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.01097, allocations: 5.062 kB / 0.7972 GB, free: 3.016 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.682e-05/0.01099, allocations: 11.69 kB / 0.7972 GB, free: 3 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.01123, allocations: 50.72 kB / 0.7973 GB, free: 2.953 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005626/0.0118, allocations: 442.6 kB / 0.7977 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.255e-05/0.01186, allocations: 104.3 kB / 0.7978 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.958e-05/0.01192, allocations: 37.33 kB / 0.7978 GB, free: 2.336 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.507e-05/0.012, allocations: 102.2 kB / 0.7979 GB, free: 2.234 MB / 0.7448 GB Notification: Performance of SimCode: time 6.42e-07/0.01201, allocations: 0 / 0.7979 GB, free: 2.234 MB / 0.7448 GB Notification: Performance of Templates: time 0.004831/0.01684, allocations: 2.903 MB / 0.8008 GB, free: 15.37 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.942731392104179]