Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.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.TestDiffusion_DynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9236/0.9236, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.079e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2101, allocations: 31.97 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.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe): time 2.216/2.426, allocations: 299.1 MB / 0.5233 GB, free: 5.805 MB / 414.2 MB Notification: Performance of NFInst.instExpressions: time 0.2376/2.664, allocations: 194.5 MB / 0.7133 GB, free: 3.73 MB / 0.592 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002478/2.666, allocations: 31.81 kB / 0.7133 GB, free: 3.699 MB / 0.592 GB Notification: Performance of NFTyping.typeComponents: time 0.001734/2.668, allocations: 385.9 kB / 0.7137 GB, free: 3.32 MB / 0.592 GB Notification: Performance of NFTyping.typeBindings: time 0.004243/2.672, allocations: 1.232 MB / 0.7149 GB, free: 2.082 MB / 0.592 GB Notification: Performance of NFTyping.typeClassSections: time 0.4895/3.162, allocations: 10.81 MB / 0.7254 GB, free: 8.32 MB / 0.592 GB Notification: Performance of NFFlatten.flatten: time 0.02045/3.182, allocations: 20.43 MB / 0.7454 GB, free: 8.262 MB / 0.592 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01397/3.196, allocations: 6.103 MB / 0.7513 GB, free: 7.918 MB / 0.592 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01546/3.212, allocations: 5.877 MB / 0.7571 GB, free: 7.051 MB / 0.592 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01757/3.229, allocations: 7.769 MB / 0.7647 GB, free: 5.105 MB / 0.592 GB Notification: Performance of NFPackage.collectConstants: time 0.00717/3.237, allocations: 0.6438 MB / 0.7653 GB, free: 5.105 MB / 0.592 GB Notification: Performance of NFFlatten.collectFunctions: time 0.063/3.3, allocations: 22.35 MB / 0.7871 GB, free: 11.62 MB / 0.6077 GB Notification: Performance of NFScalarize.scalarize: time 0.01098/3.311, allocations: 4.34 MB / 0.7914 GB, free: 8.633 MB / 0.6077 GB Notification: Performance of NFVerifyModel.verify: time 0.02267/3.333, allocations: 5.805 MB / 0.797 GB, free: 4.211 MB / 0.6077 GB Notification: Performance of NFConvertDAE.convert: time 0.06117/3.395, allocations: 25.2 MB / 0.8216 GB, free: 14.07 MB / 0.6389 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/3.395, allocations: 3.984 kB / 0.8216 GB, free: 14.06 MB / 0.6389 GB Notification: Performance of FrontEnd: time 3.276e-06/3.395, allocations: 0 / 0.8216 GB, free: 14.06 MB / 0.6389 GB Notification: Performance of Transformations before backend: time 0.0005594/3.395, allocations: 0 / 0.8216 GB, free: 14.06 MB / 0.6389 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.06475/3.46, allocations: 15.28 MB / 0.8366 GB, free: 14.7 MB / 0.6545 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/3.46, allocations: 8.031 kB / 0.8366 GB, free: 14.69 MB / 0.6545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006591/3.467, allocations: 1.072 MB / 0.8376 GB, free: 13.61 MB / 0.6545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0126/3.479, allocations: 4.108 MB / 0.8416 GB, free: 9.73 MB / 0.6545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.007196/3.486, allocations: 4.507 MB / 0.846 GB, free: 4.566 MB / 0.6545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006144/3.493, allocations: 0.75 MB / 0.8468 GB, free: 3.816 MB / 0.6545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06972/3.562, allocations: 22.71 MB / 0.8689 GB, free: 13.04 MB / 0.6858 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004458/3.563, allocations: 2.906 kB / 0.8689 GB, free: 13.04 MB / 0.6858 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005513/3.568, allocations: 324 kB / 0.8692 GB, free: 12.72 MB / 0.6858 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003746/3.569, allocations: 315.8 kB / 0.8695 GB, free: 12.41 MB / 0.6858 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08968/3.659, allocations: 33.85 MB / 0.9026 GB, free: 10.54 MB / 0.717 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.1744/3.833, allocations: 74.26 MB / 0.9751 GB, free: 12.92 MB / 0.7952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3281/4.161, allocations: 25.56 MB / 1 GB, free: 413.4 MB / 0.7952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04273/4.204, allocations: 17.75 MB / 1.017 GB, free: 413.1 MB / 0.7952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2986/4.503, allocations: 173.3 MB / 1.187 GB, free: 241 MB / 0.7952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003398/4.503, allocations: 169.1 kB / 1.187 GB, free: 240.8 MB / 0.7952 GB Notification: Performance of pre-optimization done (n=2307): time 6.189e-05/4.503, allocations: 0 / 1.187 GB, free: 240.8 MB / 0.7952 GB Notification: Performance of matching and sorting (n=2307): time 0.167/4.67, allocations: 60.76 MB / 1.246 GB, free: 179.7 MB / 0.7952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/4.67, allocations: 275 kB / 1.246 GB, free: 179.4 MB / 0.7952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002577/4.673, allocations: 1.971 MB / 1.248 GB, free: 177.4 MB / 0.7952 GB Notification: Performance of collectPreVariables (initialization): time 0.005382/4.678, allocations: 237.7 kB / 1.249 GB, free: 177.2 MB / 0.7952 GB Notification: Performance of collectInitialEqns (initialization): time 0.001016/4.679, allocations: 1.349 MB / 1.25 GB, free: 175.9 MB / 0.7952 GB Notification: Performance of collectInitialBindings (initialization): time 0.01203/4.691, allocations: 7.533 MB / 1.257 GB, free: 168.4 MB / 0.7952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006811/4.698, allocations: 1.314 MB / 1.258 GB, free: 167.1 MB / 0.7952 GB Notification: Performance of setup shared object (initialization): time 6.301e-05/4.698, allocations: 305.1 kB / 1.259 GB, free: 166.8 MB / 0.7952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03815/4.736, allocations: 15.28 MB / 1.274 GB, free: 151.5 MB / 0.7952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03992/4.776, allocations: 16.97 MB / 1.29 GB, free: 134.2 MB / 0.7952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07667/4.853, allocations: 32.29 MB / 1.322 GB, free: 101.5 MB / 0.7952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/4.853, allocations: 8 kB / 1.322 GB, free: 101.5 MB / 0.7952 GB Notification: Performance of matching and sorting (n=2410) (initialization): time 0.1236/4.977, allocations: 43.27 MB / 1.364 GB, free: 57.93 MB / 0.7952 GB Notification: Performance of prepare postOptimizeDAE: time 7.69e-05/4.977, allocations: 72.59 kB / 1.364 GB, free: 57.84 MB / 0.7952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002144/4.977, allocations: 67.97 kB / 1.364 GB, free: 57.78 MB / 0.7952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4221/5.399, allocations: 62.42 MB / 1.425 GB, free: 402.9 MB / 0.7952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01948/5.419, allocations: 3.506 MB / 1.429 GB, free: 402.9 MB / 0.7952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08069/5.5, allocations: 59.97 MB / 1.487 GB, free: 374.9 MB / 0.7952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02174/5.521, allocations: 3.812 MB / 1.491 GB, free: 374 MB / 0.7952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006499/5.528, allocations: 0.632 MB / 1.491 GB, free: 373.9 MB / 0.7952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 17 (sourceP1.C.ftype,dynamicTwoPhaseFlowPipe1.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.C.ftype,switchValve.C2.diff_on_1,dynamicTwoPhaseFlowPipe.fluid,sinkP.fluid,switchValve.fluid,nONL.yL.signal,echelon.yL.signal,sourceP.fluid1,dynamicTwoPhaseFlowPipe1.C1.diff_on_2,dynamicTwoPhaseFlowPipe1.C2.diff_on_1,dynamicTwoPhaseFlowPipe.C1.diff_on_2,sourceP.C.diff_on_2,dynamicTwoPhaseFlowPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (717): * Single equations (assignments): 671 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 22 * When equations: 0 * 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): 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): 2 systems {(32,313), (33,317)} Notification: Performance of prepare postOptimizeDAE: time 0.01462/5.543, allocations: 2.593 MB / 1.494 GB, free: 372.8 MB / 0.7952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005962/5.549, allocations: 0.8106 MB / 1.495 GB, free: 372.3 MB / 0.7952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1303/5.679, allocations: 52.05 MB / 1.546 GB, free: 330.5 MB / 0.7952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1102/5.789, allocations: 44.77 MB / 1.589 GB, free: 285.5 MB / 0.7952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-05/5.789, allocations: 8 kB / 1.589 GB, free: 285.5 MB / 0.7952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005731/5.79, allocations: 87.66 kB / 1.589 GB, free: 285.4 MB / 0.7952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2009/5.991, allocations: 82.09 MB / 1.67 GB, free: 202.7 MB / 0.7952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000363/5.991, allocations: 47.97 kB / 1.67 GB, free: 202.7 MB / 0.7952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01939/6.011, allocations: 3.982 MB / 1.674 GB, free: 198.7 MB / 0.7952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1534/6.164, allocations: 55.31 MB / 1.728 GB, free: 143.3 MB / 0.7952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00561/6.17, allocations: 0.5432 MB / 1.728 GB, free: 142.7 MB / 0.7952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06952/6.239, allocations: 57.66 MB / 1.784 GB, free: 82.26 MB / 0.7952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.778e-06/6.239, allocations: 4 kB / 1.784 GB, free: 82.25 MB / 0.7952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3741/6.613, allocations: 45.26 MB / 1.829 GB, free: 382 MB / 0.7952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01245/6.626, allocations: 3.67 MB / 1.832 GB, free: 381.8 MB / 0.7952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006723/6.633, allocations: 295.6 kB / 1.832 GB, free: 381.8 MB / 0.7952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02352/6.656, allocations: 2.951 MB / 1.835 GB, free: 381.8 MB / 0.7952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007615/6.664, allocations: 1.136 MB / 1.836 GB, free: 381.7 MB / 0.7952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006323/6.67, allocations: 0.6551 MB / 1.837 GB, free: 381.7 MB / 0.7952 GB Notification: Performance of sorting global known variables: time 0.002071/6.672, allocations: 1.447 MB / 1.839 GB, free: 381.6 MB / 0.7952 GB Notification: Performance of sort global known variables: time 2.4e-07/6.672, allocations: 0 / 1.839 GB, free: 381.6 MB / 0.7952 GB Notification: Performance of remove unused functions: time 0.02455/6.697, allocations: 5.677 MB / 1.844 GB, free: 381.5 MB / 0.7952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 2 (echelon.yL.signal,nONL.yL.signal) * Number of discrete states: 2 (echelon.yL.signal,nONL.yL.signal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1091): * Single equations (assignments): 1047 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * 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): 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): 2 systems {(32,315), (33,318)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01555/6.713, allocations: 3.068 MB / 1.847 GB, free: 381.3 MB / 0.7952 GB Notification: Performance of simCode: created initialization part: time 0.09949/6.812, allocations: 45.36 MB / 1.891 GB, free: 365.5 MB / 0.7952 GB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/6.812, allocations: 0 / 1.891 GB, free: 365.5 MB / 0.7952 GB Notification: Performance of simCode: created simulation system equations: time 0.0545/6.867, allocations: 24.34 MB / 1.915 GB, free: 344.3 MB / 0.7952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03124/6.898, allocations: 3.697 MB / 1.919 GB, free: 340.8 MB / 0.7952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1335/7.032, allocations: 52.88 MB / 1.97 GB, free: 287.9 MB / 0.7952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007956/7.04, allocations: 6.499 MB / 1.977 GB, free: 281.4 MB / 0.7952 GB Notification: Performance of simCode: alias equations: time 0.0186/7.058, allocations: 3.357 MB / 1.98 GB, free: 278.2 MB / 0.7952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009083/7.067, allocations: 0.9281 MB / 1.981 GB, free: 277.3 MB / 0.7952 GB Notification: Performance of SimCode: time 1.453e-06/7.067, allocations: 0 / 1.981 GB, free: 277.3 MB / 0.7952 GB Notification: Performance of Templates: time 0.8542/7.922, allocations: 407.6 MB / 2.379 GB, free: 218.8 MB / 0.7952 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe 2>&1) Environment - environmentSimulation: