Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 193.9 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008951/0.000895, allocations: 96.95 kB / 296.1 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.412/0.412, allocations: 44.82 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003047, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.448/0.4483, allocations: 62.96 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.759/7.208, allocations: 2.839 GB / 3.356 GB, free: 147.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/7.208, allocations: 77.78 kB / 3.356 GB, free: 147 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.814/9.022, allocations: 481 MB / 3.826 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.935e-06/9.022, allocations: 0 / 3.826 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001125/9.022, allocations: 43.69 kB / 3.826 GB, free: 50.02 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01265/9.035, allocations: 3.174 MB / 3.829 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/9.035, allocations: 10 kB / 3.829 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00552/9.041, allocations: 0.7191 MB / 3.83 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02674/9.067, allocations: 15.91 MB / 3.845 GB, free: 44.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/9.068, allocations: 171.4 kB / 3.845 GB, free: 44.33 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005378/9.068, allocations: 178.6 kB / 3.845 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006724/9.075, allocations: 3.589 MB / 3.849 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.904e-05/9.075, allocations: 11.53 kB / 3.849 GB, free: 42.81 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/9.075, allocations: 78.97 kB / 3.849 GB, free: 42.76 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001614/9.075, allocations: 170.8 kB / 3.849 GB, free: 42.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006778/9.082, allocations: 3.522 MB / 3.853 GB, free: 41.67 MB / 0.5417 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.01627/9.098, allocations: 14.09 MB / 3.866 GB, free: 31.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004834/9.103, allocations: 2.291 MB / 3.869 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/9.105, allocations: 1.201 MB / 3.87 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5607/9.666, allocations: 70.85 MB / 3.939 GB, free: 61.24 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005509/9.672, allocations: 1.732 MB / 3.941 GB, free: 61.12 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 7.534e-06/9.672, allocations: 0 / 3.941 GB, free: 61.12 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02886/9.7, allocations: 9.465 MB / 3.95 GB, free: 59.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/9.701, allocations: 282.8 kB / 3.95 GB, free: 59.47 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/9.703, allocations: 1.325 MB / 3.951 GB, free: 59.31 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006069/9.704, allocations: 55.83 kB / 3.952 GB, free: 59.28 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009059/9.705, allocations: 0.8163 MB / 3.952 GB, free: 58.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000977/9.706, allocations: 0.6096 MB / 3.953 GB, free: 58.66 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003924/9.706, allocations: 41.62 kB / 3.953 GB, free: 58.66 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002422/9.706, allocations: 392 kB / 3.953 GB, free: 58.36 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002873/9.709, allocations: 1.281 MB / 3.955 GB, free: 58.35 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/9.712, allocations: 1.842 MB / 3.956 GB, free: 57.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005895/9.718, allocations: 3.133 MB / 3.959 GB, free: 57.13 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.749e-05/9.718, allocations: 5.094 kB / 3.959 GB, free: 57.13 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01064/9.729, allocations: 4.335 MB / 3.964 GB, free: 56.96 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004237/9.729, allocations: 0.5694 MB / 3.964 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.642e-05/9.729, allocations: 18.78 kB / 3.964 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01586/9.745, allocations: 3.673 MB / 3.968 GB, free: 56.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/9.747, allocations: 332.9 kB / 3.968 GB, free: 56.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008818/9.756, allocations: 4.053 MB / 3.972 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003097/9.759, allocations: 279.7 kB / 3.972 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005655/9.76, allocations: 107 kB / 3.972 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/9.76, allocations: 3.594 kB / 3.972 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0108/9.771, allocations: 3.936 MB / 3.976 GB, free: 55.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.664e-05/9.771, allocations: 16.31 kB / 3.976 GB, free: 55.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009866/9.781, allocations: 2.434 MB / 3.979 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/9.782, allocations: 364 kB / 3.979 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005837/9.788, allocations: 3.344 MB / 3.982 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/9.792, allocations: 263.5 kB / 3.983 GB, free: 55.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007065/9.793, allocations: 103.3 kB / 3.983 GB, free: 55.01 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.002829/9.795, allocations: 0.6977 MB / 3.983 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000935/9.796, allocations: 168.6 kB / 3.984 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/9.808, allocations: 6.854 MB / 3.99 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.908e-05/9.808, allocations: 74.61 kB / 3.99 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.96e-05/9.808, allocations: 3.125 kB / 3.99 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008177/9.817, allocations: 5.502 MB / 3.996 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/9.831, allocations: 9.571 MB / 4.005 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/9.831, allocations: 7.062 kB / 4.005 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/9.833, allocations: 436 kB / 4.005 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001651/9.834, allocations: 474 kB / 4.006 GB, free: 52.92 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/9.835, allocations: 64.2 kB / 4.006 GB, free: 52.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/9.836, allocations: 3.218 MB / 4.009 GB, free: 50.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/9.836, allocations: 5.938 kB / 4.009 GB, free: 50.32 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009535/9.846, allocations: 7.048 MB / 4.016 GB, free: 48.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/9.847, allocations: 0.7692 MB / 4.017 GB, free: 47.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000624/9.848, allocations: 58.89 kB / 4.017 GB, free: 47.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/9.85, allocations: 216.1 kB / 4.017 GB, free: 47.89 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/9.85, allocations: 181.2 kB / 4.017 GB, free: 47.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/9.851, allocations: 64.92 kB / 4.017 GB, free: 47.86 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002208/9.853, allocations: 1.239 MB / 4.018 GB, free: 47.39 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.5e-07/9.853, allocations: 3.719 kB / 4.018 GB, free: 47.39 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01015/9.863, allocations: 2.325 MB / 4.021 GB, free: 47.15 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01076/9.874, allocations: 1.956 MB / 4.023 GB, free: 46.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01152/9.885, allocations: 5.485 MB / 4.028 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/9.885, allocations: 0 / 4.028 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00378/9.889, allocations: 2.368 MB / 4.03 GB, free: 44.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005233/9.894, allocations: 0.8007 MB / 4.031 GB, free: 44.13 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/9.907, allocations: 8.249 MB / 4.039 GB, free: 40.16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/9.909, allocations: 1.993 MB / 4.041 GB, free: 39.31 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009112/9.91, allocations: 171.1 kB / 4.041 GB, free: 39.29 MB / 0.5573 GB Notification: Performance of SimCode: time 7.31e-07/9.91, allocations: 2.812 kB / 4.041 GB, free: 39.29 MB / 0.5573 GB Notification: Performance of Templates: time 0.1135/10.02, allocations: 87 MB / 4.126 GB, free: 14.3 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)