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.002759/0.002759, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.003426/0.003426, allocations: 165.3 kB / 23.56 MB, free: 0.8633 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 1.56/1.56, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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 2.927/2.927, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 176] 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.1.|linPieTwo.y.2.",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.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.121e-05/3.303e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003654/0.003687, allocations: 1.816 MB / 0.7881 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002256/0.005943, allocations: 1.114 MB / 0.7892 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.006043, allocations: 4 kB / 0.7892 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0004603/0.006504, allocations: 132 kB / 0.7894 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.00703, allocations: 208.8 kB / 0.7896 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.007556, allocations: 218.8 kB / 0.7898 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.00797, allocations: 279.3 kB / 0.79 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.008112, allocations: 28.58 kB / 0.7901 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.008417, allocations: 143.7 kB / 0.7902 GB, free: 8.891 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.008673, allocations: 155.6 kB / 0.7903 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.008725, allocations: 20 kB / 0.7904 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.008876, allocations: 59.86 kB / 0.7904 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.009011, allocations: 91.69 kB / 0.7905 GB, free: 8.57 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.557e-05/0.009106, allocations: 60.5 kB / 0.7906 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005352/0.009642, allocations: 362.8 kB / 0.7909 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.009645, allocations: 0.5938 kB / 0.7909 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.252e-06/0.009646, allocations: 0 / 0.7909 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.009653, allocations: 1.562 kB / 0.7909 GB, free: 8.156 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.00113/0.01078, allocations: 0.6855 MB / 0.7916 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.01083, allocations: 16.02 kB / 0.7916 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002142/0.01104, allocations: 45.83 kB / 0.7916 GB, free: 7.375 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.01167, allocations: 330.8 kB / 0.792 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.01169, allocations: 8.375 kB / 0.792 GB, free: 7.02 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.0117, allocations: 5.125 kB / 0.792 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.01189, allocations: 66.89 kB / 0.792 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.0119, allocations: 3.938 kB / 0.792 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.01191, allocations: 1.281 kB / 0.792 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.01192, allocations: 4 kB / 0.792 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.01203, allocations: 27.98 kB / 0.7921 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.01308, allocations: 0.5039 MB / 0.7926 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.01323, allocations: 52.33 kB / 0.7926 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.092e-05/0.01328, allocations: 11.75 kB / 0.7926 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.0133, allocations: 4 kB / 0.7926 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.01334, allocations: 42.91 kB / 0.7927 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.01334, allocations: 0 / 0.7927 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003072/0.01365, allocations: 97.42 kB / 0.7928 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.0137, allocations: 51.41 kB / 0.7928 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007675/0.01447, allocations: 0.5619 MB / 0.7934 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.01449, allocations: 35.02 kB / 0.7934 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.01476, allocations: 262.7 kB / 0.7936 GB, free: 5.195 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.01479, allocations: 15.92 kB / 0.7937 GB, free: 5.18 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.01483, allocations: 19.38 kB / 0.7937 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000368/0.0152, allocations: 0.5592 MB / 0.7942 GB, free: 4.582 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.947e-05/0.01525, allocations: 13.95 kB / 0.7942 GB, free: 4.57 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.01528, allocations: 4 kB / 0.7942 GB, free: 4.566 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.581e-05/0.01537, allocations: 35.67 kB / 0.7943 GB, free: 4.527 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01537, allocations: 3.938 kB / 0.7943 GB, free: 4.523 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001768/0.01555, allocations: 85.45 kB / 0.7944 GB, free: 4.434 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.01556, allocations: 10.09 kB / 0.7944 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.01557, allocations: 0.7188 kB / 0.7944 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.01558, allocations: 0 / 0.7944 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.333e-05/0.01566, allocations: 9.266 kB / 0.7944 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.01566, allocations: 0 / 0.7944 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.305e-05/0.01572, allocations: 4 kB / 0.7944 GB, free: 4.414 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.01573, allocations: 4.562 kB / 0.7944 GB, free: 4.41 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 0.0001597/0.01589, allocations: 169.1 kB / 0.7946 GB, free: 4.234 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.01596, allocations: 27.81 kB / 0.7946 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.01619, allocations: 101.4 kB / 0.7947 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.0162, allocations: 4 kB / 0.7947 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.0162, allocations: 0.9062 kB / 0.7947 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.01621, allocations: 0 / 0.7947 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.01665, allocations: 308.5 kB / 0.795 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.01665, allocations: 0.8438 kB / 0.795 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.572e-05/0.01669, allocations: 4 kB / 0.795 GB, free: 3.754 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.0167, allocations: 2.219 kB / 0.795 GB, free: 3.754 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.01671, allocations: 3.984 kB / 0.795 GB, free: 3.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.01671, allocations: 4 kB / 0.795 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.01671, allocations: 3.984 kB / 0.795 GB, free: 3.742 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.01699, allocations: 235.6 kB / 0.7952 GB, free: 3.492 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.0171, allocations: 43.75 kB / 0.7953 GB, free: 3.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.01713, allocations: 2.781 kB / 0.7953 GB, free: 3.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/0.01721, allocations: 0 / 0.7953 GB, free: 3.449 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.01726, allocations: 8.406 kB / 0.7953 GB, free: 3.441 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.01726, allocations: 0 / 0.7953 GB, free: 3.441 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0004818/0.01775, allocations: 367 kB / 0.7956 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.01775, allocations: 0 / 0.7956 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002737/0.01802, allocations: 27.94 kB / 0.7956 GB, free: 3.055 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.002521/0.02054, allocations: 379.8 kB / 0.796 GB, free: 2.84 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000166/0.02071, allocations: 39.61 kB / 0.796 GB, free: 2.797 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.02071, allocations: 1.094 kB / 0.796 GB, free: 2.797 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.531e-05/0.02077, allocations: 27.61 kB / 0.7961 GB, free: 2.766 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.0212, allocations: 47.38 kB / 0.7961 GB, free: 2.723 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000879/0.02208, allocations: 460.2 kB / 0.7966 GB, free: 2.242 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.0223, allocations: 174.1 kB / 0.7967 GB, free: 2.051 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001103/0.02241, allocations: 35.28 kB / 0.7968 GB, free: 2.02 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.02248, allocations: 28.48 kB / 0.7968 GB, free: 1.992 MB / 0.7448 GB Notification: Performance of SimCode: time 5.81e-07/0.02248, allocations: 0 / 0.7968 GB, free: 1.992 MB / 0.7448 GB Notification: Performance of Templates: time 0.007914/0.03039, allocations: 2.688 MB / 0.7994 GB, free: 15.34 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","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.859254169045016]