Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.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.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8224/0.8224, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.64e-05/1.643e-05, allocations: 4 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1636, allocations: 31.97 MB / 236.8 MB, free: 5.422 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.SimpleExamples.TestDynamicTwoPhaseFlowRiser): time 1.652/1.815, allocations: 296.1 MB / 0.5204 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5203/2.336, allocations: 191.8 MB / 0.7076 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008939/2.337, allocations: 14.94 kB / 0.7077 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007509/2.337, allocations: 241.8 kB / 0.7079 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001341/2.339, allocations: 0.7095 MB / 0.7086 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02979/2.369, allocations: 10.08 MB / 0.7184 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009007/2.378, allocations: 11.42 MB / 0.7296 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005735/2.383, allocations: 3.549 MB / 0.7331 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006843/2.39, allocations: 3.32 MB / 0.7363 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008508/2.399, allocations: 4.379 MB / 0.7406 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002742/2.402, allocations: 373.6 kB / 0.7409 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0404/2.442, allocations: 21.09 MB / 0.7615 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.004838/2.447, allocations: 2.518 MB / 0.764 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.007699/2.455, allocations: 3.3 MB / 0.7672 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04385/2.498, allocations: 18.16 MB / 0.7849 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/2.499, allocations: 2.906 kB / 0.7849 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.725e-06/2.499, allocations: 4 kB / 0.7849 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003104/2.499, allocations: 0 / 0.7849 GB, free: 13.52 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1654 * Number of variables: 1654 Notification: Performance of Generate backend data structure: time 0.03778/2.537, allocations: 9.519 MB / 0.7942 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/2.537, allocations: 12.03 kB / 0.7943 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/2.54, allocations: 0.585 MB / 0.7948 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006096/2.546, allocations: 2.4 MB / 0.7972 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002854/2.549, allocations: 1.917 MB / 0.799 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002668/2.551, allocations: 456 kB / 0.7995 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03355/2.585, allocations: 12.34 MB / 0.8115 GB, free: 2.988 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001791/2.585, allocations: 6.625 kB / 0.8115 GB, free: 2.984 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001954/2.587, allocations: 184 kB / 0.8117 GB, free: 2.805 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/2.587, allocations: 171.8 kB / 0.8119 GB, free: 2.641 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0468/2.634, allocations: 18.02 MB / 0.8295 GB, free: 0.6055 MB / 0.6387 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.07856/2.713, allocations: 39.11 MB / 0.8677 GB, free: 7.707 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03941/2.752, allocations: 14.19 MB / 0.8815 GB, free: 9.379 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02251/2.775, allocations: 9.675 MB / 0.891 GB, free: 15.69 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09623/2.871, allocations: 53.81 MB / 0.9435 GB, free: 3.035 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/2.871, allocations: 104.4 kB / 0.9436 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1220): time 1.112e-05/2.871, allocations: 0 / 0.9436 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1220): time 0.3928/3.264, allocations: 46.17 MB / 0.9887 GB, free: 428.4 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/3.264, allocations: 129.1 kB / 0.9888 GB, free: 428.4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/3.266, allocations: 1.378 MB / 0.9902 GB, free: 428.2 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.002033/3.268, allocations: 142.4 kB / 0.9903 GB, free: 428.2 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005997/3.269, allocations: 0.8208 MB / 0.9911 GB, free: 428 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.004802/3.274, allocations: 4.023 MB / 0.995 GB, free: 425.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002955/3.277, allocations: 0.7128 MB / 0.9957 GB, free: 425.3 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 6.408e-05/3.277, allocations: 305.1 kB / 0.996 GB, free: 425 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02032/3.297, allocations: 8.261 MB / 1.004 GB, free: 425 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01999/3.317, allocations: 9.089 MB / 1.013 GB, free: 424.6 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03846/3.356, allocations: 17.34 MB / 1.03 GB, free: 417.8 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-05/3.356, allocations: 4 kB / 1.03 GB, free: 417.8 MB / 0.795 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.05775/3.414, allocations: 24.14 MB / 1.053 GB, free: 393.5 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/3.414, allocations: 9.25 kB / 1.053 GB, free: 393.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.474e-05/3.414, allocations: 35.98 kB / 1.054 GB, free: 393.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06523/3.479, allocations: 26.14 MB / 1.079 GB, free: 367.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01259/3.492, allocations: 2.099 MB / 1.081 GB, free: 365.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04648/3.538, allocations: 45.74 MB / 1.126 GB, free: 316.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/3.549, allocations: 2.017 MB / 1.128 GB, free: 314.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/3.551, allocations: 347.6 kB / 1.128 GB, free: 314.3 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,dynamicTwoPhaseFlowRiser.fluid,sinkP.fluid,sourcePQ.fluid1,dynamicTwoPhaseFlowRiser.C1.diff_on_2,dynamicTwoPhaseFlowRiser.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (412): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 21 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,327)} Notification: Performance of prepare postOptimizeDAE: time 0.005329/3.557, allocations: 1.473 MB / 1.13 GB, free: 312.8 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001914/3.559, allocations: 462.1 kB / 1.13 GB, free: 312.4 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06091/3.62, allocations: 26.47 MB / 1.156 GB, free: 285.8 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05945/3.679, allocations: 23.15 MB / 1.178 GB, free: 262.5 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.114e-05/3.679, allocations: 9.188 kB / 1.178 GB, free: 262.4 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002571/3.679, allocations: 50.67 kB / 1.178 GB, free: 262.4 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1245/3.804, allocations: 42.8 MB / 1.22 GB, free: 219.4 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002185/3.804, allocations: 24.92 kB / 1.22 GB, free: 219.4 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01385/3.818, allocations: 2.598 MB / 1.223 GB, free: 216.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03688/3.855, allocations: 8.747 MB / 1.231 GB, free: 208 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003317/3.858, allocations: 319.6 kB / 1.232 GB, free: 207.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04328/3.902, allocations: 56.62 MB / 1.287 GB, free: 146.8 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/3.902, allocations: 0 / 1.287 GB, free: 146.8 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1095/4.011, allocations: 36.73 MB / 1.323 GB, free: 109.9 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006222/4.017, allocations: 2.033 MB / 1.325 GB, free: 107.9 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003009/4.021, allocations: 181.3 kB / 1.325 GB, free: 107.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0115/4.032, allocations: 1.545 MB / 1.327 GB, free: 106.1 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003517/4.036, allocations: 0.7257 MB / 1.327 GB, free: 105.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002668/4.038, allocations: 351.6 kB / 1.328 GB, free: 105.1 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001382/4.04, allocations: 0.9574 MB / 1.328 GB, free: 104.1 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.61e-07/4.04, allocations: 4 kB / 1.328 GB, free: 104.1 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0135/4.053, allocations: 3.816 MB / 1.332 GB, free: 100.5 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 20 (dynamicTwoPhaseFlowRiser.P[2],dynamicTwoPhaseFlowRiser.P[3],dynamicTwoPhaseFlowRiser.P[4],dynamicTwoPhaseFlowRiser.P[5],dynamicTwoPhaseFlowRiser.P[6],dynamicTwoPhaseFlowRiser.P[7],dynamicTwoPhaseFlowRiser.P[8],dynamicTwoPhaseFlowRiser.P[9],dynamicTwoPhaseFlowRiser.P[10],dynamicTwoPhaseFlowRiser.P[11],dynamicTwoPhaseFlowRiser.h[2],dynamicTwoPhaseFlowRiser.h[3],dynamicTwoPhaseFlowRiser.h[4],dynamicTwoPhaseFlowRiser.h[5],dynamicTwoPhaseFlowRiser.h[6],dynamicTwoPhaseFlowRiser.h[7],dynamicTwoPhaseFlowRiser.h[8],dynamicTwoPhaseFlowRiser.h[9],dynamicTwoPhaseFlowRiser.h[10],dynamicTwoPhaseFlowRiser.h[11]) * 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 (767): * Single equations (assignments): 693 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 33 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 41 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 30 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01026/4.063, allocations: 2.681 MB / 1.335 GB, free: 98.26 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.05032/4.114, allocations: 24.49 MB / 1.359 GB, free: 72.95 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/4.114, allocations: 7.938 kB / 1.359 GB, free: 72.94 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.02921/4.143, allocations: 14.96 MB / 1.373 GB, free: 57.46 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01491/4.158, allocations: 1.98 MB / 1.375 GB, free: 55.59 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0695/4.228, allocations: 29.87 MB / 1.404 GB, free: 25.89 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00415/4.232, allocations: 3.925 MB / 1.408 GB, free: 21.93 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00933/4.241, allocations: 2.044 MB / 1.41 GB, free: 19.97 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004113/4.245, allocations: 0.5692 MB / 1.411 GB, free: 19.4 MB / 0.795 GB Notification: Performance of SimCode: time 7.62e-07/4.245, allocations: 0 / 1.411 GB, free: 19.4 MB / 0.795 GB Notification: Performance of Templates: time 0.5013/4.747, allocations: 240.8 MB / 1.646 GB, free: 225 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe 2>&1) Environment - environmentSimulation: