Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.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.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8938/0.8938, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.95e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 31.98 MB / 236.8 MB, free: 5.438 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser): time 1.897/2.132, allocations: 300.9 MB / 0.525 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7177/2.85, allocations: 200.8 MB / 0.7211 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00264/2.852, allocations: 35.84 kB / 0.7212 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00141/2.854, allocations: 488.3 kB / 0.7216 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003844/2.858, allocations: 1.107 MB / 0.7227 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04908/2.907, allocations: 12.41 MB / 0.7348 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009168/2.916, allocations: 6.295 MB / 0.741 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004457/2.92, allocations: 2.085 MB / 0.743 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005026/2.925, allocations: 1.653 MB / 0.7446 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005388/2.931, allocations: 2.213 MB / 0.7468 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000935/2.932, allocations: 188.9 kB / 0.747 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05553/2.987, allocations: 21.54 MB / 0.768 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002377/2.99, allocations: 1.163 MB / 0.7691 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003673/2.994, allocations: 1.896 MB / 0.771 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05043/3.044, allocations: 16.05 MB / 0.7867 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/3.044, allocations: 0 / 0.7867 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.761e-06/3.044, allocations: 0 / 0.7867 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002932/3.044, allocations: 7.938 kB / 0.7867 GB, free: 3.039 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 920 * Number of variables: 920 Notification: Performance of Generate backend data structure: time 0.02044/3.065, allocations: 4.936 MB / 0.7915 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/3.065, allocations: 12.03 kB / 0.7915 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0026/3.068, allocations: 427.2 kB / 0.7919 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005771/3.073, allocations: 1.907 MB / 0.7938 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006607/3.074, allocations: 440.9 kB / 0.7942 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001912/3.076, allocations: 336 kB / 0.7945 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00999/3.086, allocations: 5.146 MB / 0.7996 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.679e-05/3.086, allocations: 9.812 kB / 0.7996 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003732/3.086, allocations: 140 kB / 0.7997 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.509e-05/3.087, allocations: 104 kB / 0.7998 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/3.098, allocations: 6.949 MB / 0.8066 GB, free: 14.49 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.1262/3.225, allocations: 56.63 MB / 0.8619 GB, free: 1.652 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01325/3.238, allocations: 3.802 MB / 0.8656 GB, free: 13.82 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00522/3.243, allocations: 2.09 MB / 0.8676 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123/4.367, allocations: 452.2 MB / 1.309 GB, free: 95.37 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005064/4.372, allocations: 2.336 MB / 1.312 GB, free: 93.76 MB / 0.795 GB Notification: Performance of pre-optimization done (n=317): time 5.54e-06/4.372, allocations: 0.5625 kB / 1.312 GB, free: 93.76 MB / 0.795 GB Notification: Performance of matching and sorting (n=318): time 0.04721/4.419, allocations: 17.02 MB / 1.328 GB, free: 77.01 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.122e-05/4.419, allocations: 184.8 kB / 1.328 GB, free: 76.79 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002749/4.422, allocations: 1.948 MB / 1.33 GB, free: 74.8 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0009656/4.423, allocations: 69.7 kB / 1.33 GB, free: 74.73 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.001085/4.424, allocations: 1.389 MB / 1.332 GB, free: 73.33 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.001435/4.425, allocations: 1.1 MB / 1.333 GB, free: 72.24 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000451/4.426, allocations: 325.6 kB / 1.333 GB, free: 71.92 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 5.79e-05/4.426, allocations: 305.1 kB / 1.333 GB, free: 71.62 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003065/4.429, allocations: 1.861 MB / 1.335 GB, free: 69.75 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003564/4.433, allocations: 2.831 MB / 1.338 GB, free: 66.52 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006811/4.439, allocations: 4.983 MB / 1.343 GB, free: 61.11 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.218e-05/4.44, allocations: 8 kB / 1.343 GB, free: 61.11 MB / 0.795 GB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01395/4.453, allocations: 6.993 MB / 1.35 GB, free: 54.07 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/4.454, allocations: 24.06 kB / 1.35 GB, free: 54.04 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.208e-05/4.454, allocations: 28 kB / 1.35 GB, free: 54.02 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06848/4.522, allocations: 10.88 MB / 1.36 GB, free: 43.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/4.524, allocations: 399 kB / 1.361 GB, free: 42.81 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/4.536, allocations: 8.828 MB / 1.369 GB, free: 33.84 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003401/4.539, allocations: 163.8 kB / 1.369 GB, free: 33.68 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/4.539, allocations: 179.9 kB / 1.37 GB, free: 33.5 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 41 ($PRE.PressureLoss_VapeurIn1.touvert,$whenCondition2,$PRE.PressureLoss_VapeurIn1.tferme,$whenCondition1,Source_vapeur.C.ftype,Source_Eau.C.ftype,Source_Vsup1.C.ftype,DynamicCondenser.DynamicCondenser.Cl.ftype,DynamicCondenser.C1.ftype,DynamicCondenser.DynamicCondenser.fluids[1],Puit_condenseur1.fluid,DynamicCondenser.pipe_3.fluid,PressureLoss_VapeurIn.fluid,Valve_ext.fluid,PressureLoss_VapeurIn_in4.fluid,PressureLoss_EauOut.fluid,PressureLoss_VapeurIn1.tferme,PressureLoss_VapeurIn1.touvert,PressureLoss_VapeurIn1.ouvert,$PRE.PressureLoss_VapeurIn1.ouvert,Puit_Eau.fluid,Source_Vsup1.fluid1,Source_vapeur.fluid1,Source_Eau.fluid1,DynamicCondenser.DynamicCondenser.CvBP.diff_on_2,PressureLoss_VapeurIn.C2.diff_on_2,Source_vapeur.C.diff_on_2,PressureLoss_VapeurIn.C2.diff_on_1,DynamicCondenser.C1vap.diff_on_1,DynamicCondenser.Ce2.diff_on_2,DynamicCondenser.pipe_3.C2.diff_on_1,PressureLoss_EauOut.C2.diff_on_1,DynamicCondenser.C2vap.diff_on_1,DynamicCondenser.DynamicCondenser.CvGCT.diff_on_2,Source_Vsup1.C.diff_on_2,DynamicCondenser.C2ex.diff_on_2,DynamicCondenser.DynamicCondenser.Cl.diff_on_1,Valve_ext.C2.diff_on_1,DynamicCondenser.C1.diff_on_1,DynamicCondenser.pipe_3.C1.diff_on_2,DynamicCondenser.DynamicCondenser.Ce.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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): 6 systems {(1,3), (1,7), (17,114), (1,3), (1,3), (6,34)} Notification: Performance of prepare postOptimizeDAE: time 0.001826/4.541, allocations: 0.8111 MB / 1.37 GB, free: 32.68 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005173/4.542, allocations: 272.7 kB / 1.371 GB, free: 32.41 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01867/4.56, allocations: 7.057 MB / 1.378 GB, free: 25.32 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01612/4.577, allocations: 5.774 MB / 1.383 GB, free: 19.48 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.858e-05/4.577, allocations: 4 kB / 1.383 GB, free: 19.48 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.216e-05/4.577, allocations: 19.94 kB / 1.383 GB, free: 19.46 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/4.6, allocations: 10.8 MB / 1.394 GB, free: 8.543 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/4.6, allocations: 0 / 1.394 GB, free: 8.543 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002379/4.602, allocations: 415.5 kB / 1.394 GB, free: 8.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02724/4.629, allocations: 4.569 MB / 1.399 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001182/4.631, allocations: 99.92 kB / 1.399 GB, free: 3.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2775/4.908, allocations: 19.38 MB / 1.418 GB, free: 417.1 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/4.908, allocations: 1.094 kB / 1.418 GB, free: 417.1 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02272/4.931, allocations: 8.897 MB / 1.426 GB, free: 416.5 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/4.933, allocations: 0.7661 MB / 1.427 GB, free: 416.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004485/4.934, allocations: 59.02 kB / 1.427 GB, free: 416.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001827/4.936, allocations: 120.8 kB / 1.427 GB, free: 416.4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005796/4.936, allocations: 206.5 kB / 1.427 GB, free: 416.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002401/4.936, allocations: 110.1 kB / 1.428 GB, free: 416.4 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001784/4.938, allocations: 1.26 MB / 1.429 GB, free: 416.3 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.4e-07/4.938, allocations: 0.5312 kB / 1.429 GB, free: 416.3 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01061/4.949, allocations: 2.582 MB / 1.431 GB, free: 416.3 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 16 (DynamicCondenser.DynamicCondenser.P,DynamicCondenser.DynamicCondenser.hl,DynamicCondenser.DynamicCondenser.hv,DynamicCondenser.DynamicCondenser.hvIn,DynamicCondenser.DynamicCondenser.Vv,DynamicCondenser.DynamicCondenser.Tp,DynamicCondenser.pipe_3.h[2],DynamicCondenser.pipe_3.h[3],DynamicCondenser.pipe_3.h[4],DynamicCondenser.pipe_3.h[5],DynamicCondenser.pipe_3.h[6],DynamicCondenser.Wall_3.Tp[1],DynamicCondenser.Wall_3.Tp[2],DynamicCondenser.Wall_3.Tp[3],DynamicCondenser.Wall_3.Tp[4],DynamicCondenser.Wall_3.Tp[5]) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,PressureLoss_VapeurIn1.ouvert,PressureLoss_VapeurIn1.touvert,PressureLoss_VapeurIn1.tferme,DynamicCondenser.C1vap.diff_on_1) * Number of discrete states: 2 (PressureLoss_VapeurIn1.touvert,PressureLoss_VapeurIn1.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(4,1,62.5%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 16 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,7), (1,7), (1,7), (1,7), (1,7), (1,7), (1,3), (1,3), (1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01348/4.962, allocations: 3.009 MB / 1.434 GB, free: 416.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.01569/4.978, allocations: 5.221 MB / 1.439 GB, free: 415.8 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/4.978, allocations: 0 / 1.439 GB, free: 415.8 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00773/4.986, allocations: 3.227 MB / 1.443 GB, free: 415 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006108/4.992, allocations: 0.6648 MB / 1.443 GB, free: 414.8 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01995/5.012, allocations: 9.235 MB / 1.452 GB, free: 410 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003479/5.016, allocations: 2.086 MB / 1.454 GB, free: 409.1 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00376/5.019, allocations: 0.7344 MB / 1.455 GB, free: 409 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/5.021, allocations: 204.2 kB / 1.455 GB, free: 409 MB / 0.795 GB Notification: Performance of SimCode: time 1.313e-06/5.021, allocations: 0 / 1.455 GB, free: 409 MB / 0.795 GB Notification: Performance of Templates: time 0.164/5.185, allocations: 118.9 MB / 1.571 GB, free: 299.4 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.pipe 2>&1) Environment - environmentSimulation: