Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger") translateModel(ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8284/0.8284, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003027, allocations: 15.72 kB / 237.1 MB, free: 1.793 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04989/0.0502, allocations: 31.35 MB / 268.5 MB, free: 7.035 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger): time 1.6/1.65, allocations: 296.4 MB / 0.5516 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02721/1.677, allocations: 22.96 MB / 0.574 GB, free: 4.449 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004151/1.678, allocations: 8 kB / 0.574 GB, free: 4.441 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/StaticWaterWaterExchanger.mo:81:3-83:42:writable] Warning: Connector Ec is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/StaticWaterWaterExchanger.mo:84:3-86:38:writable] Warning: Connector Ef is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/StaticWaterWaterExchanger.mo:87:3-89:37:writable] Warning: Connector Sf is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/StaticWaterWaterExchanger.mo:90:3-92:37:writable] Warning: Connector Sc is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004857/1.678, allocations: 198.6 kB / 0.5742 GB, free: 4.25 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005026/1.679, allocations: 321.8 kB / 0.5745 GB, free: 3.934 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01707/1.696, allocations: 7.316 MB / 0.5816 GB, free: 12.61 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/1.697, allocations: 0.9763 MB / 0.5826 GB, free: 11.63 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/1.697, allocations: 284.8 kB / 0.5829 GB, free: 11.35 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000361/1.698, allocations: 382.6 kB / 0.5832 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003193/1.698, allocations: 326.5 kB / 0.5835 GB, free: 10.66 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.194e-05/1.698, allocations: 56 kB / 0.5836 GB, free: 10.6 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02333/1.721, allocations: 15.38 MB / 0.5986 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/1.722, allocations: 127.5 kB / 0.5987 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004612/1.722, allocations: 362.2 kB / 0.5991 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/1.734, allocations: 6.927 MB / 0.6058 GB, free: 3.781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/1.734, allocations: 4 kB / 0.6058 GB, free: 3.777 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/1.734, allocations: 3.938 kB / 0.6058 GB, free: 3.773 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/1.734, allocations: 0 / 0.6058 GB, free: 3.773 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 210 * Number of variables: 210 Notification: Performance of Generate backend data structure: time 0.004046/1.738, allocations: 1.532 MB / 0.6073 GB, free: 2.188 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/1.738, allocations: 8.031 kB / 0.6074 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/1.738, allocations: 72 kB / 0.6074 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/1.739, allocations: 346.7 kB / 0.6078 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/1.739, allocations: 130.1 kB / 0.6079 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-05/1.739, allocations: 43.94 kB / 0.6079 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/1.74, allocations: 0.7874 MB / 0.6087 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/1.74, allocations: 0 / 0.6087 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/1.74, allocations: 20 kB / 0.6087 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/1.74, allocations: 35.97 kB / 0.6087 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/1.742, allocations: 0.5786 MB / 0.6093 GB, free: 76 kB / 494.1 MB 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.07898/1.821, allocations: 36.64 MB / 0.6451 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/1.822, allocations: 0.5463 MB / 0.6456 GB, free: 7.133 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006285/1.823, allocations: 354.8 kB / 0.646 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07975/1.902, allocations: 33.81 MB / 0.679 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/1.903, allocations: 38.56 kB / 0.679 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=126): time 2.605e-06/1.903, allocations: 4 kB / 0.679 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of matching and sorting (n=126): time 0.01773/1.92, allocations: 3.3 MB / 0.6822 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/1.92, allocations: 59.41 kB / 0.6823 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/1.921, allocations: 332.5 kB / 0.6826 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/1.921, allocations: 29.7 kB / 0.6826 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/1.921, allocations: 221.3 kB / 0.6828 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002803/1.921, allocations: 413.6 kB / 0.6832 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/1.921, allocations: 126.1 kB / 0.6834 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.922, allocations: 374.8 kB / 0.6837 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/1.922, allocations: 277.6 kB / 0.684 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006785/1.923, allocations: 389.2 kB / 0.6844 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/1.924, allocations: 0.7186 MB / 0.6851 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.924, allocations: 3.938 kB / 0.6851 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004245/1.928, allocations: 1.283 MB / 0.6863 GB, free: 10 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/1.928, allocations: 13.34 kB / 0.6863 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/1.928, allocations: 0 / 0.6863 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003797/1.932, allocations: 1.391 MB / 0.6877 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/1.932, allocations: 19.94 kB / 0.6877 GB, free: 8.578 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/1.935, allocations: 1.393 MB / 0.6891 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/1.935, allocations: 94.86 kB / 0.6892 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/1.935, allocations: 23.98 kB / 0.6892 GB, free: 7.043 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (puitsP3.C.a,puitsP2.C.a,sourceP3.C.b,sourceP2.C.b,plateHeatExchanger.Sc.b,plateHeatExchanger.Sf.b,plateHeatExchanger.Ef.a,plateHeatExchanger.Ec.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 17 * 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 {(6,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002542/1.935, allocations: 175.5 kB / 0.6893 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/1.936, allocations: 51.25 kB / 0.6894 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/1.94, allocations: 3.954 MB / 0.6933 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0028/1.943, allocations: 1.298 MB / 0.6945 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.943, allocations: 0 / 0.6945 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/1.943, allocations: 3.984 kB / 0.6945 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006728/1.949, allocations: 2.886 MB / 0.6973 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.949, allocations: 0 / 0.6973 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/1.95, allocations: 91.91 kB / 0.6974 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002306/1.952, allocations: 0.8594 MB / 0.6983 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.571e-05/1.952, allocations: 19.94 kB / 0.6983 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/1.954, allocations: 1.487 MB / 0.6997 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.954, allocations: 0 / 0.6997 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004784/1.959, allocations: 1.496 MB / 0.7012 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/1.959, allocations: 167.9 kB / 0.7014 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/1.959, allocations: 31.75 kB / 0.7014 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/1.96, allocations: 32.17 kB / 0.7014 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/1.96, allocations: 56.86 kB / 0.7015 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/1.96, allocations: 27.98 kB / 0.7015 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004346/1.96, allocations: 387.1 kB / 0.7019 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.96, allocations: 0 / 0.7019 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002522/1.963, allocations: 1.042 MB / 0.7029 GB, free: 8.703 MB / 0.5919 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 (62): * Single equations (assignments): 61 * 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 {(6,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00419/1.967, allocations: 1.198 MB / 0.7041 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002212/1.969, allocations: 1.154 MB / 0.7052 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.969, allocations: 0 / 0.7052 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001136/1.97, allocations: 0.5277 MB / 0.7057 GB, free: 5.777 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/1.972, allocations: 433 kB / 0.7061 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/1.975, allocations: 1.546 MB / 0.7076 GB, free: 3.793 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/1.976, allocations: 0.9909 MB / 0.7086 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002492/1.976, allocations: 68.77 kB / 0.7087 GB, free: 2.707 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.934e-05/1.976, allocations: 47.44 kB / 0.7087 GB, free: 2.66 MB / 0.5919 GB Notification: Performance of SimCode: time 5.21e-07/1.976, allocations: 4 kB / 0.7087 GB, free: 2.656 MB / 0.5919 GB Notification: Performance of Templates: time 0.2206/2.197, allocations: 49.55 MB / 0.7571 GB, free: 191.5 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticWaterWaterExchanger.pipe 2>&1)