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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_HeatExchanger_TestDynamicCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_HeatExchanger_TestDynamicCondenser",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7777/0.7777, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.348e-05/1.357e-05, allocations: 0 / 204.9 MB, free: 9.945 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1596, allocations: 31.98 MB / 236.9 MB, free: 5.391 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.484/1.644, allocations: 301.8 MB / 0.5261 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4988/2.143, allocations: 200.8 MB / 0.7222 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/2.144, allocations: 38.91 kB / 0.7222 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008695/2.145, allocations: 491.7 kB / 0.7227 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002015/2.147, allocations: 1.106 MB / 0.7237 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03003/2.177, allocations: 12.4 MB / 0.7358 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005073/2.182, allocations: 6.301 MB / 0.742 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002496/2.184, allocations: 2.087 MB / 0.744 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/2.186, allocations: 1.653 MB / 0.7457 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00225/2.189, allocations: 2.21 MB / 0.7478 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003226/2.189, allocations: 188.8 kB / 0.748 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03236/2.221, allocations: 21.49 MB / 0.769 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001454/2.223, allocations: 1.161 MB / 0.7701 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002366/2.225, allocations: 1.905 MB / 0.772 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03013/2.255, allocations: 16.05 MB / 0.7876 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/2.255, allocations: 0 / 0.7876 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.954e-06/2.255, allocations: 0 / 0.7876 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001738/2.256, allocations: 0 / 0.7876 GB, free: 2.879 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.01406/2.27, allocations: 4.946 MB / 0.7925 GB, free: 14 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/2.27, allocations: 12.03 kB / 0.7925 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008474/2.271, allocations: 481.6 kB / 0.7929 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006389/2.271, allocations: 426.1 kB / 0.7934 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/2.274, allocations: 1.905 MB / 0.7952 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/2.274, allocations: 440.9 kB / 0.7956 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/2.275, allocations: 340 kB / 0.796 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007214/2.282, allocations: 5.136 MB / 0.801 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.516e-05/2.282, allocations: 9.812 kB / 0.801 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003391/2.282, allocations: 152 kB / 0.8011 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.285e-05/2.282, allocations: 99.98 kB / 0.8012 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009369/2.292, allocations: 6.949 MB / 0.808 GB, free: 13.93 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.09495/2.387, allocations: 56.63 MB / 0.8633 GB, free: 1.094 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009714/2.396, allocations: 3.806 MB / 0.867 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003102/2.4, allocations: 2.089 MB / 0.8691 GB, free: 11.17 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9254/3.325, allocations: 452.2 MB / 1.311 GB, free: 94.49 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003925/3.329, allocations: 2.334 MB / 1.313 GB, free: 92.88 MB / 0.795 GB Notification: Performance of pre-optimization done (n=317): time 5.03e-06/3.329, allocations: 0 / 1.313 GB, free: 92.88 MB / 0.795 GB Notification: Performance of matching and sorting (n=318): time 0.04027/3.369, allocations: 17.02 MB / 1.33 GB, free: 76.32 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/3.369, allocations: 184.2 kB / 1.33 GB, free: 76.1 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/3.371, allocations: 1.948 MB / 1.332 GB, free: 74.11 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001872/3.371, allocations: 73.7 kB / 1.332 GB, free: 74.04 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006253/3.372, allocations: 1.381 MB / 1.333 GB, free: 72.65 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/3.372, allocations: 1.104 MB / 1.334 GB, free: 71.55 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003541/3.373, allocations: 325.6 kB / 1.334 GB, free: 71.23 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.021e-05/3.373, allocations: 305.1 kB / 1.335 GB, free: 70.93 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002451/3.375, allocations: 1.873 MB / 1.337 GB, free: 69.05 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/3.378, allocations: 2.824 MB / 1.339 GB, free: 65.83 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005435/3.384, allocations: 4.985 MB / 1.344 GB, free: 60.42 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/3.384, allocations: 8 kB / 1.344 GB, free: 60.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01059/3.394, allocations: 6.982 MB / 1.351 GB, free: 53.38 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/3.394, allocations: 20 kB / 1.351 GB, free: 53.36 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.844e-05/3.394, allocations: 28 kB / 1.351 GB, free: 53.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05956/3.454, allocations: 10.88 MB / 1.362 GB, free: 42.51 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/3.455, allocations: 395.3 kB / 1.362 GB, free: 42.12 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008621/3.463, allocations: 8.826 MB / 1.371 GB, free: 33.15 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/3.466, allocations: 155.8 kB / 1.371 GB, free: 33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/3.466, allocations: 187 kB / 1.371 GB, free: 32.82 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.001205/3.467, allocations: 0.8164 MB / 1.372 GB, free: 31.99 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003621/3.467, allocations: 268.7 kB / 1.372 GB, free: 31.73 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01626/3.484, allocations: 7.063 MB / 1.379 GB, free: 24.63 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01322/3.497, allocations: 5.769 MB / 1.385 GB, free: 18.8 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/3.497, allocations: 0 / 1.385 GB, free: 18.8 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/3.497, allocations: 19.94 kB / 1.385 GB, free: 18.78 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/3.516, allocations: 10.81 MB / 1.395 GB, free: 7.855 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/3.516, allocations: 0 / 1.395 GB, free: 7.855 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/3.518, allocations: 415.5 kB / 1.396 GB, free: 7.449 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0252/3.543, allocations: 4.584 MB / 1.4 GB, free: 2.828 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003819/3.543, allocations: 101.6 kB / 1.4 GB, free: 2.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1621/3.706, allocations: 19.38 MB / 1.419 GB, free: 416.3 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/3.706, allocations: 6.766 kB / 1.419 GB, free: 416.3 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/3.723, allocations: 8.888 MB / 1.428 GB, free: 415.7 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/3.724, allocations: 0.7693 MB / 1.429 GB, free: 415.6 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/3.724, allocations: 57.44 kB / 1.429 GB, free: 415.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/3.726, allocations: 113.1 kB / 1.429 GB, free: 415.6 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/3.726, allocations: 213.8 kB / 1.429 GB, free: 415.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002051/3.726, allocations: 110 kB / 1.429 GB, free: 415.6 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001273/3.728, allocations: 1.256 MB / 1.43 GB, free: 415.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/3.728, allocations: 0 / 1.43 GB, free: 415.5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005142/3.733, allocations: 2.581 MB / 1.433 GB, free: 415.5 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.02124/3.754, allocations: 11.88 MB / 1.444 GB, free: 414 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008464/3.763, allocations: 5.212 MB / 1.449 GB, free: 412 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/3.763, allocations: 3.969 kB / 1.449 GB, free: 412 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.004391/3.767, allocations: 3.223 MB / 1.453 GB, free: 410.4 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/3.77, allocations: 0.656 MB / 1.453 GB, free: 410.2 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05094/3.821, allocations: 37.85 MB / 1.49 GB, free: 379.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/3.822, allocations: 2.078 MB / 1.492 GB, free: 377.5 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.002018/3.824, allocations: 0.732 MB / 1.493 GB, free: 376.8 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/3.825, allocations: 1.331 MB / 1.494 GB, free: 375.5 MB / 0.795 GB Notification: Performance of SimCode: time 5.11e-07/3.825, allocations: 0 / 1.494 GB, free: 375.5 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.149/11.97, allocations: 147.3 MB / 1.638 GB, free: 229.7 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002398/11.97, allocations: 322.4 kB / 1.638 GB, free: 229.3 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.852/19.83, allocations: 11.55 kB / 1.638 GB, free: 229.3 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_HeatExchanger_TestDynamicCondenser_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_HeatExchanger_TestDynamicCondenser.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicCondenser.pipe 2>&1)