Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.632/0.632, allocations: 94.7 MB / 107.3 MB, free: 5.188 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001169/0.001169, allocations: 169.8 kB / 130.7 MB, free: 7.547 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.702/1.702, allocations: 170.5 MB / 324.5 MB, free: 4.07 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00166/0.00166, allocations: 110.7 kB / 386.6 MB, free: 16.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.316e-05/4.319e-05, allocations: 7.938 kB / 456 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4884/0.4885, allocations: 61.51 MB / 0.5054 GB, free: 49.42 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.289/1.777, allocations: 422 MB / 0.9175 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/1.778, allocations: 88.52 kB / 0.9175 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.864/3.642, allocations: 454.8 MB / 1.362 GB, free: 62.26 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.799e-06/3.642, allocations: 1.094 kB / 1.362 GB, free: 62.26 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004656/3.643, allocations: 50.05 kB / 1.362 GB, free: 62.26 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.007729/3.65, allocations: 1.85 MB / 1.364 GB, free: 61.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.563e-05/3.65, allocations: 10.72 kB / 1.364 GB, free: 61.45 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/3.652, allocations: 226.7 kB / 1.364 GB, free: 61.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005371/3.657, allocations: 1.735 MB / 1.365 GB, free: 60.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/3.658, allocations: 141.9 kB / 1.366 GB, free: 60.92 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/3.658, allocations: 104.2 kB / 1.366 GB, free: 60.92 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/3.661, allocations: 1.163 MB / 1.367 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/3.661, allocations: 2.094 kB / 1.367 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/3.661, allocations: 44.06 kB / 1.367 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.977e-05/3.661, allocations: 25.31 kB / 1.367 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/3.663, allocations: 0.8623 MB / 1.368 GB, free: 60.68 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.01043/3.674, allocations: 5.48 MB / 1.373 GB, free: 57.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/3.676, allocations: 0.6421 MB / 1.374 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008184/3.677, allocations: 324.5 kB / 1.374 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00114/3.678, allocations: 1.076 MB / 1.375 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/3.679, allocations: 462.2 kB / 1.375 GB, free: 56.44 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=65): time 5.08e-06/3.679, allocations: 1.281 kB / 1.375 GB, free: 56.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=75): time 0.01501/3.694, allocations: 3.184 MB / 1.379 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/3.694, allocations: 319.7 kB / 1.379 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/3.697, allocations: 1.192 MB / 1.38 GB, free: 54.74 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001322/3.697, allocations: 48.61 kB / 1.38 GB, free: 54.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006656/3.698, allocations: 0.776 MB / 1.381 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/3.698, allocations: 264.6 kB / 1.381 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.288e-05/3.698, allocations: 18.59 kB / 1.381 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001103/3.698, allocations: 346.6 kB / 1.381 GB, free: 53.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/3.699, allocations: 295.2 kB / 1.382 GB, free: 53.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/3.699, allocations: 0.7032 MB / 1.382 GB, free: 53.49 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006327/3.7, allocations: 421.7 kB / 1.383 GB, free: 53.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/3.7, allocations: 7.672 kB / 1.383 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001936/3.702, allocations: 1.106 MB / 1.384 GB, free: 53.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001129/3.703, allocations: 3.364 MB / 1.387 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/3.703, allocations: 7.75 kB / 1.387 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.57e-05/3.703, allocations: 15.19 kB / 1.387 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/3.704, allocations: 283.8 kB / 1.388 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.75e-05/3.704, allocations: 19.22 kB / 1.388 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/3.706, allocations: 124.1 kB / 1.388 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/3.706, allocations: 54.47 kB / 1.388 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/3.706, allocations: 3.844 kB / 1.388 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00145/3.707, allocations: 0.9405 MB / 1.389 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/3.707, allocations: 10.66 kB / 1.389 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/3.707, allocations: 15.83 kB / 1.389 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009589/3.708, allocations: 277.8 kB / 1.389 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/3.708, allocations: 18.69 kB / 1.389 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/3.71, allocations: 125.1 kB / 1.389 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.615e-05/3.71, allocations: 55.66 kB / 1.389 GB, free: 49.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,chi.on,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003245/3.71, allocations: 178.5 kB / 1.389 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003188/3.711, allocations: 165.3 kB / 1.389 GB, free: 49.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/3.712, allocations: 0.8639 MB / 1.39 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/3.712, allocations: 9.594 kB / 1.39 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/3.712, allocations: 0 / 1.39 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/3.712, allocations: 3.891 kB / 1.39 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004686/3.717, allocations: 2.933 MB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/3.717, allocations: 6.844 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/3.718, allocations: 201 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.608e-05/3.718, allocations: 11.75 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.145e-05/3.718, allocations: 32.36 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/3.718, allocations: 10.75 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/3.718, allocations: 11.19 kB / 1.393 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/3.72, allocations: 1.846 MB / 1.395 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009662/3.721, allocations: 341.1 kB / 1.396 GB, free: 47.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/3.722, allocations: 22.62 kB / 1.396 GB, free: 47.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009602/3.723, allocations: 111.6 kB / 1.396 GB, free: 47.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/3.723, allocations: 85.27 kB / 1.396 GB, free: 47.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/3.723, allocations: 44.53 kB / 1.396 GB, free: 47.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001481/3.724, allocations: 0.9115 MB / 1.397 GB, free: 47.06 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.9e-07/3.724, allocations: 1.75 kB / 1.397 GB, free: 47.06 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004116/3.729, allocations: 0.8959 MB / 1.398 GB, free: 46.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (chi.vol1.dynBal.medium.T,chi.vol2.dynBal.medium.T) * Number of discrete variables: 4 ($whenCondition1,chi.on,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002876/3.731, allocations: 0.9011 MB / 1.398 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003267/3.735, allocations: 1.41 MB / 1.4 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/3.735, allocations: 6.844 kB / 1.4 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009125/3.736, allocations: 442.4 kB / 1.4 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/3.739, allocations: 0.723 MB / 1.401 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/3.745, allocations: 2.513 MB / 1.403 GB, free: 45.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00076/3.746, allocations: 1.299 MB / 1.405 GB, free: 45.13 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002437/3.748, allocations: 0.4997 MB / 1.405 GB, free: 45.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/3.748, allocations: 103.4 kB / 1.405 GB, free: 45.11 MB / 0.5261 GB Notification: Performance of SimCode: time 2.174e-06/3.748, allocations: 0 / 1.405 GB, free: 45.11 MB / 0.5261 GB Notification: Performance of Templates: time 0.06401/3.813, allocations: 36.77 MB / 1.441 GB, free: 42.94 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)