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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicTwoPhaseFlowRiser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicTwoPhaseFlowRiser",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.8181/0.8181, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.346e-05, allocations: 7.938 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1713, allocations: 31.99 MB / 236.9 MB, free: 5.398 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.545/1.717, allocations: 297.1 MB / 0.5214 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4733/2.19, allocations: 191.8 MB / 0.7087 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007547/2.191, allocations: 17.75 kB / 0.7087 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000671/2.192, allocations: 239.9 kB / 0.7089 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00131/2.193, allocations: 0.7116 MB / 0.7096 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02454/2.217, allocations: 10.07 MB / 0.7195 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007553/2.225, allocations: 11.43 MB / 0.7306 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004554/2.23, allocations: 3.548 MB / 0.7341 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005175/2.235, allocations: 3.327 MB / 0.7373 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00699/2.242, allocations: 4.379 MB / 0.7416 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001498/2.243, allocations: 371 kB / 0.742 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03523/2.279, allocations: 21.09 MB / 0.7626 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.004174/2.283, allocations: 2.518 MB / 0.765 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.006477/2.289, allocations: 3.301 MB / 0.7682 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03124/2.32, allocations: 18.16 MB / 0.786 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/2.321, allocations: 0 / 0.786 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.134e-06/2.321, allocations: 4 kB / 0.786 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001836/2.321, allocations: 0 / 0.786 GB, free: 13.46 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.0352/2.356, allocations: 9.522 MB / 0.7953 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/2.356, allocations: 12.03 kB / 0.7953 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002182/2.358, allocations: 0.8316 MB / 0.7961 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/2.36, allocations: 0.5832 MB / 0.7967 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004518/2.364, allocations: 2.407 MB / 0.799 GB, free: 1.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002394/2.367, allocations: 1.915 MB / 0.8009 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/2.368, allocations: 460 kB / 0.8013 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02793/2.396, allocations: 12.34 MB / 0.8134 GB, free: 2.074 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.137e-05/2.396, allocations: 0 / 0.8134 GB, free: 2.074 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007658/2.397, allocations: 187.9 kB / 0.8136 GB, free: 1.895 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/2.397, allocations: 174.4 kB / 0.8137 GB, free: 1.727 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04309/2.44, allocations: 18.01 MB / 0.8313 GB, free: 15.7 MB / 0.6544 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.07198/2.512, allocations: 39.1 MB / 0.8695 GB, free: 6.805 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03994/2.552, allocations: 14.2 MB / 0.8834 GB, free: 8.473 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02332/2.576, allocations: 9.667 MB / 0.8928 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09793/2.674, allocations: 53.81 MB / 0.9453 GB, free: 2.141 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001446/2.674, allocations: 112.3 kB / 0.9455 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1220): time 1.749e-05/2.674, allocations: 4 kB / 0.9455 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1220): time 0.3531/3.027, allocations: 46.18 MB / 0.9905 GB, free: 428.8 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.717e-05/3.027, allocations: 131.6 kB / 0.9907 GB, free: 428.8 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002072/3.029, allocations: 1.37 MB / 0.992 GB, free: 428.6 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.002121/3.031, allocations: 146.5 kB / 0.9922 GB, free: 428.6 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006407/3.032, allocations: 0.8103 MB / 0.9929 GB, free: 428.4 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.004936/3.037, allocations: 4.03 MB / 0.9969 GB, free: 425.7 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002584/3.04, allocations: 0.7154 MB / 0.9976 GB, free: 425.7 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 5.993e-05/3.04, allocations: 301.1 kB / 0.9979 GB, free: 425.4 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02087/3.061, allocations: 8.258 MB / 1.006 GB, free: 425.4 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02066/3.081, allocations: 9.092 MB / 1.015 GB, free: 424.9 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04022/3.122, allocations: 17.34 MB / 1.032 GB, free: 416.9 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.578e-05/3.122, allocations: 0 / 1.032 GB, free: 416.9 MB / 0.795 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.06151/3.183, allocations: 24.15 MB / 1.055 GB, free: 392.6 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.757e-05/3.183, allocations: 8 kB / 1.055 GB, free: 392.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/3.183, allocations: 30.17 kB / 1.055 GB, free: 392.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06622/3.25, allocations: 26.15 MB / 1.081 GB, free: 366.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/3.262, allocations: 2.103 MB / 1.083 GB, free: 364.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04734/3.31, allocations: 45.72 MB / 1.128 GB, free: 315.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01137/3.321, allocations: 2.025 MB / 1.13 GB, free: 313.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002312/3.323, allocations: 344.5 kB / 1.13 GB, free: 313.4 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.004573/3.328, allocations: 1.474 MB / 1.131 GB, free: 311.9 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/3.329, allocations: 466.1 kB / 1.132 GB, free: 311.5 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05984/3.389, allocations: 26.47 MB / 1.158 GB, free: 284.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05392/3.443, allocations: 23.15 MB / 1.18 GB, free: 261.6 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.315e-05/3.443, allocations: 12 kB / 1.18 GB, free: 261.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001847/3.443, allocations: 47.81 kB / 1.18 GB, free: 261.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1151/3.558, allocations: 42.81 MB / 1.222 GB, free: 218.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001609/3.558, allocations: 19.98 kB / 1.222 GB, free: 218.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01343/3.572, allocations: 2.606 MB / 1.225 GB, free: 215.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03739/3.609, allocations: 8.745 MB / 1.233 GB, free: 207.1 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002512/3.612, allocations: 315.6 kB / 1.234 GB, free: 206.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04122/3.653, allocations: 56.62 MB / 1.289 GB, free: 146 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/3.653, allocations: 3.938 kB / 1.289 GB, free: 146 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09743/3.751, allocations: 36.73 MB / 1.325 GB, free: 109.1 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005778/3.756, allocations: 2.025 MB / 1.327 GB, free: 107 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002986/3.759, allocations: 183.9 kB / 1.327 GB, free: 106.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01125/3.771, allocations: 1.55 MB / 1.328 GB, free: 105.3 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002991/3.774, allocations: 0.7249 MB / 1.329 GB, free: 104.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00184/3.776, allocations: 352.7 kB / 1.329 GB, free: 104.2 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001097/3.777, allocations: 0.9613 MB / 1.33 GB, free: 103.2 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/3.777, allocations: 0 / 1.33 GB, free: 103.2 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01063/3.787, allocations: 3.813 MB / 1.334 GB, free: 99.58 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.1136/3.901, allocations: 39.9 MB / 1.373 GB, free: 59.98 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.04751/3.948, allocations: 24.5 MB / 1.397 GB, free: 34.67 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/3.948, allocations: 0 / 1.397 GB, free: 34.67 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.02639/3.975, allocations: 14.97 MB / 1.412 GB, free: 19.19 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01323/3.988, allocations: 1.969 MB / 1.413 GB, free: 17.32 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4392/4.427, allocations: 108.1 MB / 1.519 GB, free: 366.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005248/4.433, allocations: 3.927 MB / 1.523 GB, free: 362.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.009532/4.442, allocations: 2.048 MB / 1.525 GB, free: 360.8 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006274/4.449, allocations: 2.581 MB / 1.527 GB, free: 358.2 MB / 0.795 GB Notification: Performance of SimCode: time 1.362e-06/4.449, allocations: 0 / 1.527 GB, free: 358.2 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3481/4.797, allocations: 299.4 MB / 1.82 GB, free: 60.88 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/4.797, allocations: 264.5 kB / 1.82 GB, free: 60.58 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/17.23, allocations: 0 / 1.82 GB, free: 60.58 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicTwoPhaseFlowRiser_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicTwoPhaseFlowRiser.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe 2>&1)