Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.368/1.368, allocations: 251.7 MB / 0.5092 GB, free: 3.109 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.91 kB / 0.6223 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3804, allocations: 104.7 MB / 0.7245 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002772/0.3833, allocations: 1.777 MB / 0.7263 GB, free: 11.1 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.3844, allocations: 0.8739 MB / 0.7271 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.655e-05/0.3845, allocations: 0 / 0.7271 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000417/0.385, allocations: 188 kB / 0.7273 GB, free: 10.04 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003404/0.3853, allocations: 159.5 kB / 0.7274 GB, free: 9.879 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.3857, allocations: 185 kB / 0.7276 GB, free: 9.703 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.3859, allocations: 235.5 kB / 0.7278 GB, free: 9.473 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.3861, allocations: 51.62 kB / 0.7279 GB, free: 9.426 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3862, allocations: 99.66 kB / 0.728 GB, free: 9.328 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.3864, allocations: 151.5 kB / 0.7281 GB, free: 9.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.3864, allocations: 20 kB / 0.7282 GB, free: 9.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.848e-05/0.3865, allocations: 51.98 kB / 0.7282 GB, free: 9.109 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.727e-05/0.3866, allocations: 87.75 kB / 0.7283 GB, free: 9.023 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.31e-05/0.3867, allocations: 119.1 kB / 0.7284 GB, free: 8.906 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.387, allocations: 346.8 kB / 0.7287 GB, free: 8.566 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.387, allocations: 4 kB / 0.7287 GB, free: 8.562 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3871, allocations: 0 / 0.7287 GB, free: 8.562 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.3871, allocations: 0 / 0.7287 GB, free: 8.562 MB / 0.545 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.0007067/0.3878, allocations: 0.6023 MB / 0.7293 GB, free: 7.914 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.3878, allocations: 8.031 kB / 0.7293 GB, free: 7.906 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.3879, allocations: 28.56 kB / 0.7294 GB, free: 7.879 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.3883, allocations: 422.1 kB / 0.7298 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3884, allocations: 8.375 kB / 0.7298 GB, free: 7.418 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.3884, allocations: 12.06 kB / 0.7298 GB, free: 7.406 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.3885, allocations: 81.59 kB / 0.7299 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3886, allocations: 0 / 0.7299 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3886, allocations: 0 / 0.7299 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3886, allocations: 0 / 0.7299 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.3887, allocations: 51.91 kB / 0.7299 GB, free: 7.27 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.3892, allocations: 488.5 kB / 0.7304 GB, free: 6.742 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.3894, allocations: 46.5 kB / 0.7304 GB, free: 6.688 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.874e-05/0.3894, allocations: 20.91 kB / 0.7304 GB, free: 6.664 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.3894, allocations: 4 kB / 0.7304 GB, free: 6.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3895, allocations: 34.56 kB / 0.7305 GB, free: 6.617 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3895, allocations: 0 / 0.7305 GB, free: 6.617 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002634/0.3897, allocations: 105.2 kB / 0.7306 GB, free: 6.508 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.3898, allocations: 55.41 kB / 0.7306 GB, free: 6.441 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005497/0.3903, allocations: 0.5446 MB / 0.7312 GB, free: 5.891 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.3904, allocations: 29.7 kB / 0.7312 GB, free: 5.855 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3905, allocations: 175.9 kB / 0.7314 GB, free: 5.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.3905, allocations: 15.89 kB / 0.7314 GB, free: 5.664 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.3906, allocations: 21.7 kB / 0.7314 GB, free: 5.637 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3907, allocations: 342.8 kB / 0.7317 GB, free: 5.293 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.847e-05/0.3907, allocations: 15.98 kB / 0.7317 GB, free: 5.277 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.598e-05/0.3908, allocations: 8 kB / 0.7317 GB, free: 5.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.574e-05/0.3909, allocations: 36.83 kB / 0.7318 GB, free: 5.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3909, allocations: 0 / 0.7318 GB, free: 5.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001503/0.391, allocations: 89.31 kB / 0.7319 GB, free: 5.137 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.3911, allocations: 7.984 kB / 0.7319 GB, free: 5.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3911, allocations: 4 kB / 0.7319 GB, free: 5.125 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.3911, allocations: 3.938 kB / 0.7319 GB, free: 5.121 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.3912, allocations: 4.109 kB / 0.7319 GB, free: 5.117 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.3912, allocations: 7.875 kB / 0.7319 GB, free: 5.109 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.244e-05/0.3912, allocations: 11.91 kB / 0.7319 GB, free: 5.098 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.3913, allocations: 3.984 kB / 0.7319 GB, free: 5.094 MB / 0.545 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.000129/0.3914, allocations: 182.3 kB / 0.7321 GB, free: 4.906 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.3914, allocations: 31.62 kB / 0.7321 GB, free: 4.875 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.3915, allocations: 34.53 kB / 0.7321 GB, free: 4.836 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3915, allocations: 3.938 kB / 0.7321 GB, free: 4.832 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3915, allocations: 0 / 0.7321 GB, free: 4.832 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3915, allocations: 0 / 0.7321 GB, free: 4.832 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.3918, allocations: 293.4 kB / 0.7324 GB, free: 4.496 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3918, allocations: 0 / 0.7324 GB, free: 4.496 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.517e-05/0.3918, allocations: 4 kB / 0.7324 GB, free: 4.492 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3918, allocations: 336 / 0.7324 GB, free: 4.492 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.3919, allocations: 3.938 kB / 0.7324 GB, free: 4.488 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.3919, allocations: 11.94 kB / 0.7324 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3919, allocations: 0 / 0.7324 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.3921, allocations: 191.1 kB / 0.7326 GB, free: 4.273 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.544e-05/0.3922, allocations: 108.8 kB / 0.7327 GB, free: 4.148 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.3922, allocations: 4 kB / 0.7327 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.3923, allocations: 7.922 kB / 0.7327 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.876e-05/0.3923, allocations: 0 / 0.7327 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.768e-06/0.3923, allocations: 8 kB / 0.7327 GB, free: 4.129 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003811/0.3927, allocations: 415.1 kB / 0.7331 GB, free: 3.727 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3927, allocations: 0 / 0.7331 GB, free: 3.727 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002391/0.393, allocations: 31.89 kB / 0.7332 GB, free: 3.695 MB / 0.545 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.0007072/0.3937, allocations: 352.6 kB / 0.7335 GB, free: 3.477 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001369/0.3938, allocations: 35.97 kB / 0.7335 GB, free: 3.441 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3938, allocations: 0 / 0.7335 GB, free: 3.441 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.931e-05/0.3939, allocations: 19.92 kB / 0.7336 GB, free: 3.422 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.3943, allocations: 42.3 kB / 0.7336 GB, free: 3.379 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006464/0.3949, allocations: 0.5139 MB / 0.7341 GB, free: 2.844 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3952, allocations: 0.787 MB / 0.7349 GB, free: 2.031 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.89e-05/0.3953, allocations: 42.92 kB / 0.7349 GB, free: 1.988 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.3954, allocations: 19.44 kB / 0.7349 GB, free: 1.969 MB / 0.545 GB Notification: Performance of SimCode: time 3.51e-07/0.3954, allocations: 4 kB / 0.7349 GB, free: 1.965 MB / 0.545 GB Notification: Performance of Templates: time 0.004952/0.4003, allocations: 2.472 MB / 0.7374 GB, free: 15.54 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)