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.ChillerSwitch.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.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006931/0.0006931, allocations: 91.77 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003961/0.003961, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.172/1.172, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.344/1.344, allocations: 252 MB / 0.5105 GB, free: 4.629 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.000444/0.000444, allocations: 16.56 kB / 0.6249 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3793, allocations: 106.3 MB / 0.7287 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001619/0.381, allocations: 1.389 MB / 0.7301 GB, free: 9.969 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005891/0.3816, allocations: 495.4 kB / 0.7306 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.62e-05/0.3816, allocations: 0 / 0.7306 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.637e-05/0.3816, allocations: 3.938 kB / 0.7306 GB, free: 9.473 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.238e-05/0.3817, allocations: 19.8 kB / 0.7306 GB, free: 9.453 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001331/0.3819, allocations: 27.97 kB / 0.7306 GB, free: 9.426 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.474e-05/0.382, allocations: 79.72 kB / 0.7307 GB, free: 9.348 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.426e-05/0.3821, allocations: 23.95 kB / 0.7307 GB, free: 9.324 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.237e-05/0.3821, allocations: 27.86 kB / 0.7307 GB, free: 9.297 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.32e-05/0.3822, allocations: 35.8 kB / 0.7308 GB, free: 9.262 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.3822, allocations: 4 kB / 0.7308 GB, free: 9.258 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.187e-05/0.3823, allocations: 4 kB / 0.7308 GB, free: 9.254 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.3823, allocations: 11.91 kB / 0.7308 GB, free: 9.242 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.784e-05/0.3823, allocations: 57.5 kB / 0.7308 GB, free: 9.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.392e-05/0.3824, allocations: 77.7 kB / 0.7309 GB, free: 9.105 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3824, allocations: 0 / 0.7309 GB, free: 9.105 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3825, allocations: 0 / 0.7309 GB, free: 9.105 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.397e-06/0.3825, allocations: 0 / 0.7309 GB, free: 9.105 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004285/0.3829, allocations: 383.2 kB / 0.7313 GB, free: 8.684 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.3829, allocations: 12.03 kB / 0.7313 GB, free: 8.672 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.383, allocations: 8.844 kB / 0.7313 GB, free: 8.664 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.3831, allocations: 183 kB / 0.7315 GB, free: 8.449 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.3831, allocations: 384 / 0.7315 GB, free: 8.449 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.3831, allocations: 4.375 kB / 0.7315 GB, free: 8.445 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.3833, allocations: 103.6 kB / 0.7316 GB, free: 8.332 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.3833, allocations: 0 / 0.7316 GB, free: 8.332 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3833, allocations: 4 kB / 0.7316 GB, free: 8.328 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3834, allocations: 0 / 0.7316 GB, free: 8.328 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.3835, allocations: 51.97 kB / 0.7316 GB, free: 8.277 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000403/0.3839, allocations: 340.6 kB / 0.732 GB, free: 7.895 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.3841, allocations: 54.56 kB / 0.732 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.84e-05/0.3841, allocations: 36.92 kB / 0.732 GB, free: 7.793 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.3842, allocations: 0 / 0.732 GB, free: 7.793 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.3842, allocations: 34.59 kB / 0.7321 GB, free: 7.75 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.3842, allocations: 0 / 0.7321 GB, free: 7.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0003042/0.3845, allocations: 113.6 kB / 0.7322 GB, free: 7.633 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.3845, allocations: 81.11 kB / 0.7323 GB, free: 7.535 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.418e-05/0.3846, allocations: 130 kB / 0.7324 GB, free: 7.398 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.3847, allocations: 29.7 kB / 0.7324 GB, free: 7.363 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.431e-05/0.3847, allocations: 104 kB / 0.7325 GB, free: 7.258 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.3847, allocations: 11.84 kB / 0.7325 GB, free: 7.246 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.3848, allocations: 21.7 kB / 0.7325 GB, free: 7.219 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.297e-05/0.3849, allocations: 314.8 kB / 0.7328 GB, free: 6.902 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.3849, allocations: 27.98 kB / 0.7329 GB, free: 6.875 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.635e-05/0.385, allocations: 49.62 kB / 0.7329 GB, free: 6.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.3852, allocations: 56.88 kB / 0.733 GB, free: 6.762 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3852, allocations: 0 / 0.733 GB, free: 6.762 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001886/0.3854, allocations: 97.75 kB / 0.7331 GB, free: 6.66 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3854, allocations: 9.719 kB / 0.7331 GB, free: 6.652 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.3854, allocations: 0 / 0.7331 GB, free: 6.652 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.3854, allocations: 4 kB / 0.7331 GB, free: 6.648 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.804e-05/0.3855, allocations: 11.98 kB / 0.7331 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.3855, allocations: 0 / 0.7331 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.785e-05/0.3856, allocations: 15.98 kB / 0.7331 GB, free: 6.621 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.3856, allocations: 11.88 kB / 0.7331 GB, free: 6.609 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: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.771e-05/0.3857, allocations: 113.8 kB / 0.7332 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.3857, allocations: 7.906 kB / 0.7332 GB, free: 6.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.3858, allocations: 16.25 kB / 0.7332 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3858, allocations: 0 / 0.7332 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3858, allocations: 0 / 0.7332 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3858, allocations: 3.984 kB / 0.7332 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.3859, allocations: 189.6 kB / 0.7334 GB, free: 6.223 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3859, allocations: 0 / 0.7334 GB, free: 6.223 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.466e-05/0.386, allocations: 16.17 kB / 0.7334 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.386, allocations: 0 / 0.7334 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.386, allocations: 0 / 0.7334 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.386, allocations: 0 / 0.7334 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.386, allocations: 7.984 kB / 0.7335 GB, free: 6.199 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.3863, allocations: 191.3 kB / 0.7336 GB, free: 5.996 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.3863, allocations: 89 kB / 0.7337 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.3863, allocations: 4 kB / 0.7337 GB, free: 5.887 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.3864, allocations: 15.98 kB / 0.7337 GB, free: 5.871 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.3865, allocations: 7.984 kB / 0.7337 GB, free: 5.863 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.3865, allocations: 3.938 kB / 0.7337 GB, free: 5.859 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.432e-05/0.3866, allocations: 110.6 kB / 0.7339 GB, free: 5.754 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3866, allocations: 0 / 0.7339 GB, free: 5.754 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002049/0.3868, allocations: 12 kB / 0.7339 GB, free: 5.742 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 8.031e-05/0.3869, allocations: 103.2 kB / 0.734 GB, free: 5.633 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000183/0.387, allocations: 59.95 kB / 0.734 GB, free: 5.574 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3871, allocations: 4 kB / 0.734 GB, free: 5.57 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.352e-05/0.3871, allocations: 31.92 kB / 0.7341 GB, free: 5.539 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.3874, allocations: 12.69 kB / 0.7341 GB, free: 5.527 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.3877, allocations: 202.6 kB / 0.7343 GB, free: 5.305 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.3879, allocations: 0.6887 MB / 0.7349 GB, free: 4.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.419e-05/0.3879, allocations: 4 kB / 0.7349 GB, free: 4.586 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.388, allocations: 15.42 kB / 0.735 GB, free: 4.57 MB / 0.545 GB Notification: Performance of SimCode: time 2.91e-07/0.388, allocations: 0 / 0.735 GB, free: 4.57 MB / 0.545 GB Notification: Performance of Templates: time 0.002401/0.3904, allocations: 0.7451 MB / 0.7357 GB, free: 3.867 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) Environment - environmentSimulation: