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.001428/0.001428, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.001615/0.001615, allocations: 165 kB / 24.17 MB, free: 332 kB / 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 1/1, allocations: 177.1 MB / 204.6 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.956/1.956, allocations: 377.9 MB / 0.624 GB, free: 8.387 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 1.094 kB / 0.7601 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.748e-05/2.914e-05, allocations: 2.312 kB / 0.7601 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003556/0.003585, allocations: 1.888 MB / 0.7619 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.005483, allocations: 1.128 MB / 0.763 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.00562, allocations: 3.938 kB / 0.763 GB, free: 3.605 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.006015, allocations: 129.7 kB / 0.7631 GB, free: 3.48 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.006425, allocations: 205.8 kB / 0.7633 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.006885, allocations: 224.6 kB / 0.7635 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.007274, allocations: 272.3 kB / 0.7638 GB, free: 2.801 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.00743, allocations: 42.53 kB / 0.7638 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007806/0.008211, allocations: 214.2 kB / 0.764 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.008414, allocations: 157.2 kB / 0.7642 GB, free: 2.434 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.008445, allocations: 20 kB / 0.7642 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.008572, allocations: 47.92 kB / 0.7643 GB, free: 2.367 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.993e-05/0.008661, allocations: 95.69 kB / 0.7643 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.22e-05/0.008714, allocations: 57 kB / 0.7644 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003216/0.009035, allocations: 227.1 kB / 0.7646 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.009038, allocations: 0 / 0.7646 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.452e-06/0.00904, allocations: 5.5 kB / 0.7646 GB, free: 1.992 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.009046, allocations: 0 / 0.7646 GB, free: 1.992 MB / 0.7136 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.0004965/0.009543, allocations: 0.5104 MB / 0.7651 GB, free: 1.457 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.009571, allocations: 8.031 kB / 0.7651 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.009689, allocations: 29.47 kB / 0.7652 GB, free: 1.422 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.01, allocations: 296.6 kB / 0.7654 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.01001, allocations: 8.375 kB / 0.7654 GB, free: 1.102 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.01002, allocations: 5.125 kB / 0.7655 GB, free: 1.098 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.914e-05/0.01011, allocations: 63.75 kB / 0.7655 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.01012, allocations: 3.938 kB / 0.7655 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.01013, allocations: 4 kB / 0.7655 GB, free: 1.02 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.01014, allocations: 5.375 kB / 0.7655 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.498e-05/0.01016, allocations: 11.98 kB / 0.7655 GB, free: 1.004 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003165/0.01048, allocations: 234.8 kB / 0.7658 GB, free: 0.7578 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.27e-05/0.01053, allocations: 31.33 kB / 0.7658 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.01055, allocations: 12.84 kB / 0.7658 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.01056, allocations: 0 / 0.7658 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.0106, allocations: 42.5 kB / 0.7658 GB, free: 0.6523 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.0106, allocations: 2.438 kB / 0.7658 GB, free: 0.6523 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001082/0.01071, allocations: 49.81 kB / 0.7659 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.01073, allocations: 55.41 kB / 0.7659 GB, free: 0.5312 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.01097, allocations: 373 kB / 0.7663 GB, free: 156 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.01098, allocations: 25.7 kB / 0.7663 GB, free: 124 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.89e-05/0.01105, allocations: 132.9 kB / 0.7665 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.01107, allocations: 12.02 kB / 0.7665 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.01109, allocations: 19.97 kB / 0.7665 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.162e-05/0.01118, allocations: 350.7 kB / 0.7668 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.01119, allocations: 4 kB / 0.7668 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.0112, allocations: 7.969 kB / 0.7668 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.776e-05/0.01123, allocations: 19.67 kB / 0.7668 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.01123, allocations: 0 / 0.7668 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.311e-05/0.01129, allocations: 50.7 kB / 0.7669 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.0113, allocations: 8 kB / 0.7669 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.0113, allocations: 0 / 0.7669 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.01131, allocations: 0.9375 kB / 0.7669 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.938e-05/0.01135, allocations: 7.984 kB / 0.7669 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-06/0.01135, allocations: 0.6562 kB / 0.7669 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.861e-05/0.01138, allocations: 4 kB / 0.7669 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-06/0.01139, allocations: 2.75 kB / 0.7669 GB, free: 15.49 MB / 0.7292 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.564e-05/0.01145, allocations: 124.5 kB / 0.767 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.01148, allocations: 15.98 kB / 0.7671 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.437e-05/0.01157, allocations: 72.41 kB / 0.7671 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01157, allocations: 4 kB / 0.7671 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.01158, allocations: 0 / 0.7671 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.01158, allocations: 0 / 0.7671 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.01171, allocations: 140.7 kB / 0.7673 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01171, allocations: 0 / 0.7673 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-05/0.01173, allocations: 8 kB / 0.7673 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.01173, allocations: 0 / 0.7673 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.01174, allocations: 0 / 0.7673 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.01174, allocations: 0 / 0.7673 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01174, allocations: 0 / 0.7673 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.87e-05/0.01182, allocations: 159.4 kB / 0.7674 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.01185, allocations: 37.59 kB / 0.7675 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.01186, allocations: 0 / 0.7675 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.834e-05/0.0119, allocations: 0 / 0.7675 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.01193, allocations: 7.984 kB / 0.7675 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.01193, allocations: 0 / 0.7675 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001339/0.01206, allocations: 168.4 kB / 0.7676 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.01206, allocations: 0 / 0.7676 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001448/0.01221, allocations: 36.53 kB / 0.7677 GB, free: 14.68 MB / 0.7292 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.0009916/0.0132, allocations: 452.8 kB / 0.7681 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 5.566e-05/0.01325, allocations: 16.8 kB / 0.7681 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.01326, allocations: 4 kB / 0.7681 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.346e-05/0.01327, allocations: 12.84 kB / 0.7681 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.01348, allocations: 46.95 kB / 0.7682 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006128/0.0141, allocations: 449.6 kB / 0.7686 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.905e-05/0.01416, allocations: 100.3 kB / 0.7687 GB, free: 13.78 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.69e-05/0.01421, allocations: 33.56 kB / 0.7687 GB, free: 13.75 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.094e-05/0.0143, allocations: 83.36 kB / 0.7688 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of SimCode: time 1.032e-06/0.0143, allocations: 0 / 0.7688 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of Templates: time 0.00481/0.01911, allocations: 2.848 MB / 0.7716 GB, free: 10.99 MB / 0.7292 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.084870616905391]