Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva") translateModel(BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 103.2 kB / 16.4 MB, free: 6.461 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.001445/0.001445, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002137/0.002137, allocations: 293.3 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9992/0.9992, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 99.86 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5337/0.5358, allocations: 86.97 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva): time 0.06532/0.6012, allocations: 61.14 MB / 0.8267 GB, free: 6.582 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01755/0.6188, allocations: 11.99 MB / 0.8384 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002346/0.6212, allocations: 59.62 kB / 0.8385 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.6234, allocations: 0.6752 MB / 0.8392 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005923/0.6294, allocations: 1.973 MB / 0.8411 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.6326, allocations: 1.202 MB / 0.8423 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0046/0.6373, allocations: 3.079 MB / 0.8453 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001863/0.6391, allocations: 1.096 MB / 0.8463 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003427/0.6426, allocations: 1.361 MB / 0.8477 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.6445, allocations: 0.8944 MB / 0.8485 GB, free: 164 kB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003853/0.6449, allocations: 116 kB / 0.8487 GB, free: 48 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.6482, allocations: 1.443 MB / 0.8501 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000479/0.6487, allocations: 286.9 kB / 0.8503 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.6499, allocations: 0.6997 MB / 0.851 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004494/0.6544, allocations: 2.309 MB / 0.8533 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.6544, allocations: 0 / 0.8533 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6544, allocations: 4 kB / 0.8533 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.533e-05/0.6545, allocations: 0 / 0.8533 GB, free: 11.29 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003907/0.6584, allocations: 1.723 MB / 0.855 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.6585, allocations: 8.031 kB / 0.855 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/0.6607, allocations: 410.8 kB / 0.8554 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/0.6632, allocations: 1.167 MB / 0.8565 GB, free: 7.871 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.6632, allocations: 62 kB / 0.8566 GB, free: 7.812 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.6634, allocations: 76 kB / 0.8566 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.6655, allocations: 1.005 MB / 0.8576 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.6656, allocations: 3.938 kB / 0.8576 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.211e-05/0.6657, allocations: 36 kB / 0.8577 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.6657, allocations: 20 kB / 0.8577 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.6679, allocations: 0.8508 MB / 0.8585 GB, free: 5.762 MB / 0.6231 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.006646/0.6746, allocations: 5.222 MB / 0.8636 GB, free: 168 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003358/0.678, allocations: 0.7889 MB / 0.8644 GB, free: 15.37 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007079/0.6787, allocations: 299.6 kB / 0.8647 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00061/0.6793, allocations: 0.9024 MB / 0.8655 GB, free: 13.97 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.6794, allocations: 34.56 kB / 0.8656 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=43): time 2.544e-06/0.6794, allocations: 0 / 0.8656 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of matching and sorting (n=43): time 0.00703/0.6864, allocations: 1.701 MB / 0.8672 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.6865, allocations: 55.41 kB / 0.8673 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.6883, allocations: 1.08 MB / 0.8683 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.915e-05/0.6883, allocations: 33.7 kB / 0.8684 GB, free: 11 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/0.6888, allocations: 0.5273 MB / 0.8689 GB, free: 10.46 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.6889, allocations: 149.8 kB / 0.869 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.6892, allocations: 142.1 kB / 0.8692 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.6893, allocations: 329.9 kB / 0.8695 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000852/0.6901, allocations: 303.3 kB / 0.8698 GB, free: 9.543 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.6912, allocations: 0.5366 MB / 0.8703 GB, free: 8.91 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.6928, allocations: 0.7105 MB / 0.871 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.6928, allocations: 0 / 0.871 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002707/0.6955, allocations: 1.008 MB / 0.872 GB, free: 7.109 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.6956, allocations: 8 kB / 0.872 GB, free: 7.102 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.6956, allocations: 7.984 kB / 0.872 GB, free: 7.094 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.6969, allocations: 312.6 kB / 0.8723 GB, free: 6.785 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.6975, allocations: 127.8 kB / 0.8724 GB, free: 6.66 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.6989, allocations: 0.899 MB / 0.8733 GB, free: 5.738 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.7002, allocations: 147.2 kB / 0.8734 GB, free: 5.594 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.28e-05/0.7003, allocations: 31.98 kB / 0.8735 GB, free: 5.562 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001219/0.7015, allocations: 0.5167 MB / 0.874 GB, free: 5.039 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001014/0.7025, allocations: 0.5174 MB / 0.8745 GB, free: 4.426 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001584/0.7041, allocations: 0.702 MB / 0.8752 GB, free: 3.652 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.97e-06/0.7041, allocations: 0 / 0.8752 GB, free: 3.652 MB / 0.6387 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002733/0.7069, allocations: 1.004 MB / 0.8761 GB, free: 2.637 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.7069, allocations: 4 kB / 0.8761 GB, free: 2.633 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.7069, allocations: 11.94 kB / 0.8762 GB, free: 2.621 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.708, allocations: 304.6 kB / 0.8764 GB, free: 2.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.7086, allocations: 131.8 kB / 0.8766 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.7099, allocations: 0.8995 MB / 0.8774 GB, free: 1.266 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.7112, allocations: 127.6 kB / 0.8776 GB, free: 1.141 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.7113, allocations: 35.92 kB / 0.8776 GB, free: 1.105 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.7116, allocations: 216.1 kB / 0.8778 GB, free: 0.8867 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/0.7119, allocations: 110.6 kB / 0.8779 GB, free: 0.7773 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00238/0.7142, allocations: 0.9185 MB / 0.8788 GB, free: 15.84 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.7143, allocations: 11.98 kB / 0.8788 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.7143, allocations: 0 / 0.8788 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.7143, allocations: 0 / 0.8788 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005196/0.7195, allocations: 2.142 MB / 0.8809 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.7195, allocations: 8.031 kB / 0.8809 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.7198, allocations: 59.89 kB / 0.881 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009696/0.7208, allocations: 292.6 kB / 0.8813 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.7208, allocations: 19.92 kB / 0.8813 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/0.7222, allocations: 0.9269 MB / 0.8822 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.7223, allocations: 0 / 0.8822 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00355/0.7258, allocations: 1.144 MB / 0.8833 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005281/0.7264, allocations: 267.5 kB / 0.8836 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.7266, allocations: 16 kB / 0.8836 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008958/0.7275, allocations: 67.91 kB / 0.8836 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-05/0.7276, allocations: 47.77 kB / 0.8837 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.653e-05/0.7277, allocations: 19.98 kB / 0.8837 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001289/0.729, allocations: 0.7551 MB / 0.8844 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.71e-07/0.729, allocations: 0 / 0.8844 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001667/0.7307, allocations: 0.5731 MB / 0.885 GB, free: 9.328 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008322/0.7315, allocations: 381.7 kB / 0.8854 GB, free: 8.957 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003409/0.7349, allocations: 1.12 MB / 0.8865 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.7349, allocations: 4 kB / 0.8865 GB, free: 7.836 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0008766/0.7358, allocations: 339.1 kB / 0.8868 GB, free: 7.504 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.7382, allocations: 0.5164 MB / 0.8873 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005186/0.7434, allocations: 2.055 MB / 0.8893 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006178/0.7441, allocations: 1.061 MB / 0.8903 GB, free: 3.785 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.7443, allocations: 83.42 kB / 0.8904 GB, free: 3.703 MB / 0.6544 GB Notification: Performance of SimCode: time 7.02e-07/0.7443, allocations: 0 / 0.8904 GB, free: 3.703 MB / 0.6544 GB Notification: Performance of Templates: time 0.03261/0.777, allocations: 24.08 MB / 0.9139 GB, free: 11.8 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.sim & ./BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Examples.Carnot_TEva.pipe 2>&1)