Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.388/1.388, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 177.6 kB / 326.5 MB, free: 2.664 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205 MB / 0.5766 GB, free: 20.94 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001168, allocations: 91.97 kB / 0.6804 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.000391, allocations: 9.594 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1938, allocations: 105.4 MB / 0.8967 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.03984/0.2337, allocations: 59.76 MB / 0.9551 GB, free: 8.172 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01592/0.2497, allocations: 13.13 MB / 0.9679 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002552/0.2523, allocations: 63.56 kB / 0.968 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002763/0.2551, allocations: 0.808 MB / 0.9688 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006247/0.2613, allocations: 2.121 MB / 0.9708 GB, free: 8.008 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004058/0.2654, allocations: 1.383 MB / 0.9722 GB, free: 6.637 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006574/0.272, allocations: 5.509 MB / 0.9776 GB, free: 1.113 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002145/0.2742, allocations: 1.086 MB / 0.9786 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003293/0.2775, allocations: 1.357 MB / 0.9799 GB, free: 14.63 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.2796, allocations: 1.151 MB / 0.9811 GB, free: 13.48 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0003619/0.2799, allocations: 56 kB / 0.9811 GB, free: 13.42 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003402/0.2834, allocations: 1.364 MB / 0.9825 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0005164/0.2839, allocations: 342.4 kB / 0.9828 GB, free: 11.72 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.2853, allocations: 0.8118 MB / 0.9836 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003043/0.2883, allocations: 2.038 MB / 0.9856 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2883, allocations: 0 / 0.9856 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2883, allocations: 0 / 0.9856 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.174e-05/0.2884, allocations: 0 / 0.9856 GB, free: 8.859 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003977/0.2924, allocations: 1.899 MB / 0.9874 GB, free: 6.898 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2924, allocations: 12.03 kB / 0.9874 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003674/0.2961, allocations: 0.6385 MB / 0.9881 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002571/0.2987, allocations: 1.389 MB / 0.9894 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.2989, allocations: 141.4 kB / 0.9895 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.2991, allocations: 96 kB / 0.9896 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003123/0.3023, allocations: 1.342 MB / 0.991 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.3023, allocations: 3.938 kB / 0.991 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.3024, allocations: 44 kB / 0.991 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.3025, allocations: 24 kB / 0.991 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003716/0.3062, allocations: 1.393 MB / 0.9924 GB, free: 1.715 MB / 0.6355 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.314, allocations: 5.379 MB / 0.9976 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.3166, allocations: 1.096 MB / 0.9987 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.3183, allocations: 0.631 MB / 0.9993 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009638/0.3193, allocations: 1.232 MB / 1.001 GB, free: 8.699 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00184/0.3212, allocations: 0.6901 MB / 1.001 GB, free: 8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 3.897e-06/0.3212, allocations: 0 / 1.001 GB, free: 8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.005225/0.3264, allocations: 1.805 MB / 1.003 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.3265, allocations: 59.97 kB / 1.003 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.3285, allocations: 1.304 MB / 1.004 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.3286, allocations: 45.7 kB / 1.004 GB, free: 4.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006021/0.3292, allocations: 0.6699 MB / 1.005 GB, free: 4.07 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.3295, allocations: 236.6 kB / 1.005 GB, free: 3.836 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.3296, allocations: 69.62 kB / 1.005 GB, free: 3.762 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3298, allocations: 341.9 kB / 1.006 GB, free: 3.422 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.3314, allocations: 0.5563 MB / 1.006 GB, free: 2.867 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.3332, allocations: 0.7859 MB / 1.007 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/0.3364, allocations: 1.214 MB / 1.008 GB, free: 0.7383 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3364, allocations: 4 kB / 1.008 GB, free: 0.7344 MB / 0.6511 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004023/0.3404, allocations: 1.477 MB / 1.01 GB, free: 15.24 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.3406, allocations: 211.4 kB / 1.01 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3407, allocations: 4 kB / 1.01 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3407, allocations: 8 kB / 1.01 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.3419, allocations: 271.6 kB / 1.01 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-05/0.342, allocations: 8 kB / 1.01 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.3437, allocations: 239 kB / 1.01 GB, free: 14.47 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.721e-05/0.3438, allocations: 39.97 kB / 1.01 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.3438, allocations: 4 kB / 1.01 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003421/0.3472, allocations: 1.317 MB / 1.012 GB, free: 13.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3472, allocations: 4 kB / 1.012 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.3473, allocations: 8 kB / 1.012 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.3484, allocations: 275.9 kB / 1.012 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.3485, allocations: 4 kB / 1.012 GB, free: 12.81 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.3501, allocations: 235.1 kB / 1.012 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.722e-05/0.3502, allocations: 43.98 kB / 1.012 GB, free: 12.54 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * 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.0006854/0.3509, allocations: 421.3 kB / 1.013 GB, free: 12.12 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/0.3513, allocations: 150.1 kB / 1.013 GB, free: 11.97 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003884/0.3552, allocations: 1.536 MB / 1.014 GB, free: 10.41 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.3552, allocations: 15.98 kB / 1.014 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3553, allocations: 3.938 kB / 1.014 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003212/0.3585, allocations: 1.296 MB / 1.015 GB, free: 9.066 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006733/0.3652, allocations: 3.265 MB / 1.019 GB, free: 5.645 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.3653, allocations: 7.938 kB / 1.019 GB, free: 5.637 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.3664, allocations: 240.2 kB / 1.019 GB, free: 5.402 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.471e-05/0.3664, allocations: 4 kB / 1.019 GB, free: 5.398 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.081e-05/0.3665, allocations: 27.98 kB / 1.019 GB, free: 5.371 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.3665, allocations: 19.86 kB / 1.019 GB, free: 5.352 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3666, allocations: 4 kB / 1.019 GB, free: 5.348 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005785/0.3723, allocations: 2.333 MB / 1.021 GB, free: 2.938 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008967/0.3733, allocations: 346.8 kB / 1.022 GB, free: 2.578 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003598/0.3737, allocations: 20 kB / 1.022 GB, free: 2.559 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/0.3754, allocations: 175.8 kB / 1.022 GB, free: 2.387 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3756, allocations: 76.34 kB / 1.022 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.3757, allocations: 35.97 kB / 1.022 GB, free: 2.277 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001437/0.3772, allocations: 0.941 MB / 1.023 GB, free: 1.34 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3772, allocations: 0 / 1.023 GB, free: 1.34 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00221/0.3794, allocations: 0.7837 MB / 1.024 GB, free: 0.5547 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.00119/0.3806, allocations: 0.5168 MB / 1.024 GB, free: 44 kB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005795/0.3864, allocations: 2.105 MB / 1.026 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.3864, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.3884, allocations: 0.703 MB / 1.027 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005017/0.3934, allocations: 0.7699 MB / 1.028 GB, free: 12.44 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005643/0.3991, allocations: 3.305 MB / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008802/0.4, allocations: 1.246 MB / 1.032 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005859/0.4006, allocations: 135.4 kB / 1.032 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of SimCode: time 7.12e-07/0.4006, allocations: 0 / 1.032 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of Templates: time 0.375/0.7756, allocations: 26.69 MB / 1.058 GB, free: 148 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)