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.001483/0.001483, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001558/0.001558, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 8.027 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 3.221/3.221, allocations: 0.49 GB / 0.7958 GB, free: 33.32 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: 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: 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.002054/0.002054, allocations: 61.09 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4044, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003581/0.408, allocations: 1.836 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002093/0.4101, allocations: 1.158 MB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.4102, allocations: 3.938 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005956/0.4108, allocations: 202.7 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005456/0.4113, allocations: 205.1 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.4119, allocations: 233.8 kB / 1.331 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.4123, allocations: 271.3 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.4125, allocations: 48.44 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.4127, allocations: 107.6 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.413, allocations: 171.5 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.413, allocations: 20 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.4132, allocations: 59.92 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.4133, allocations: 99.67 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.4134, allocations: 123.1 kB / 1.332 GB, free: 12.99 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.4139, allocations: 378.4 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4139, allocations: 0 / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4139, allocations: 0 / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.4139, allocations: 0 / 1.332 GB, free: 12.62 MB / 1.029 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.0009378/0.4149, allocations: 0.5599 MB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4149, allocations: 12.03 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.4151, allocations: 44.69 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000699/0.4158, allocations: 368.7 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.4158, allocations: 4.375 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.4158, allocations: 16.06 kB / 1.333 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.416, allocations: 73.66 kB / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.416, allocations: 0 / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.4161, allocations: 4 kB / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.4161, allocations: 0 / 1.333 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.4162, allocations: 43.97 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007015/0.4169, allocations: 459.5 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.417, allocations: 46.55 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.403e-05/0.4171, allocations: 16.92 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.4171, allocations: 0 / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.4172, allocations: 42.5 kB / 1.334 GB, free: 10.83 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.4172, allocations: 0 / 1.334 GB, free: 10.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003173/0.4175, allocations: 109.4 kB / 1.334 GB, free: 10.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.4175, allocations: 51.41 kB / 1.334 GB, free: 10.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00074/0.4183, allocations: 0.5719 MB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.4183, allocations: 29.7 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.4184, allocations: 176 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.4185, allocations: 19.89 kB / 1.334 GB, free: 9.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.4185, allocations: 17.72 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4187, allocations: 338.8 kB / 1.335 GB, free: 9.477 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.219e-05/0.4187, allocations: 15.98 kB / 1.335 GB, free: 9.461 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-05/0.4188, allocations: 16.17 kB / 1.335 GB, free: 9.445 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.475e-05/0.4189, allocations: 40.86 kB / 1.335 GB, free: 9.402 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4189, allocations: 0 / 1.335 GB, free: 9.402 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001862/0.4191, allocations: 89.48 kB / 1.335 GB, free: 9.309 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4191, allocations: 8 kB / 1.335 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4191, allocations: 0 / 1.335 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4191, allocations: 7.938 kB / 1.335 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.201e-05/0.4192, allocations: 7.984 kB / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.4192, allocations: 0 / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.4193, allocations: 4 kB / 1.335 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-06/0.4193, allocations: 3.938 kB / 1.335 GB, free: 9.277 MB / 1.029 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.0001846/0.4195, allocations: 181.8 kB / 1.335 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.4195, allocations: 35.7 kB / 1.335 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.4198, allocations: 108.3 kB / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4198, allocations: 7.938 kB / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4198, allocations: 0 / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.4198, allocations: 0 / 1.335 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00036/0.4201, allocations: 260.6 kB / 1.336 GB, free: 8.637 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4201, allocations: 4 kB / 1.336 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.485e-05/0.4202, allocations: 8.094 kB / 1.336 GB, free: 8.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.4202, allocations: 7.938 kB / 1.336 GB, free: 8.617 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.4202, allocations: 0 / 1.336 GB, free: 8.617 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4202, allocations: 7.938 kB / 1.336 GB, free: 8.609 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4202, allocations: 0 / 1.336 GB, free: 8.609 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.4204, allocations: 191.2 kB / 1.336 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.993e-05/0.4205, allocations: 39.8 kB / 1.336 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.4206, allocations: 0 / 1.336 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-05/0.4207, allocations: 11.94 kB / 1.336 GB, free: 8.355 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.4207, allocations: 3.984 kB / 1.336 GB, free: 8.352 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.4207, allocations: 4 kB / 1.336 GB, free: 8.348 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000519/0.4212, allocations: 435.1 kB / 1.336 GB, free: 7.926 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4212, allocations: 0 / 1.336 GB, free: 7.926 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002745/0.4215, allocations: 24 kB / 1.336 GB, free: 7.902 MB / 1.029 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.001361/0.4229, allocations: 360.6 kB / 1.337 GB, free: 7.676 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001732/0.423, allocations: 27.92 kB / 1.337 GB, free: 7.648 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.423, allocations: 4 kB / 1.337 GB, free: 7.645 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.219e-05/0.4231, allocations: 15.98 kB / 1.337 GB, free: 7.629 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.4235, allocations: 40.02 kB / 1.337 GB, free: 7.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.4245, allocations: 0.5822 MB / 1.337 GB, free: 6.965 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.425, allocations: 0.787 MB / 1.338 GB, free: 6.152 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.43e-05/0.4251, allocations: 31.42 kB / 1.338 GB, free: 6.121 MB / 1.029 GB Notification: Performance of SimCode: time 8.42e-07/0.4251, allocations: 3.938 kB / 1.338 GB, free: 6.117 MB / 1.029 GB Notification: Performance of Templates: time 0.00718/0.4323, allocations: 3.756 MB / 1.342 GB, free: 2.355 MB / 1.029 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/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: 12.02973022099468]