Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002325/0.002324, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00144/0.00144, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2716/0.2716, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.316e-05/3.329e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1185, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.375/8.494, allocations: 2.833 GB / 3.306 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/8.494, allocations: 82.61 kB / 3.306 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.794/11.29, allocations: 0.4914 GB / 3.797 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.583e-06/11.29, allocations: 0 / 3.797 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001559/11.29, allocations: 37 kB / 3.797 GB, free: 59.46 MB / 0.5105 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.01488/11.3, allocations: 2.986 MB / 3.8 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/11.3, allocations: 11.52 kB / 3.8 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007388/11.31, allocations: 0.7149 MB / 3.801 GB, free: 58.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006326/11.32, allocations: 1.568 MB / 3.803 GB, free: 57.85 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/11.32, allocations: 169.1 kB / 3.803 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007315/11.32, allocations: 181.6 kB / 3.803 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/11.33, allocations: 3.526 MB / 3.806 GB, free: 57.39 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.439e-05/11.33, allocations: 9.312 kB / 3.806 GB, free: 57.39 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003946/11.33, allocations: 69.95 kB / 3.806 GB, free: 57.39 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/11.33, allocations: 180 kB / 3.807 GB, free: 57.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/11.34, allocations: 3.328 MB / 3.81 GB, free: 57.37 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.02888/11.37, allocations: 14.13 MB / 3.824 GB, free: 49.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00731/11.38, allocations: 2.151 MB / 3.826 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002776/11.38, allocations: 1.081 MB / 3.827 GB, free: 48.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1986/11.58, allocations: 63.65 MB / 3.889 GB, free: 23.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005748/11.58, allocations: 1.689 MB / 3.891 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=154): time 4.929e-06/11.58, allocations: 0 / 3.891 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.02756/11.61, allocations: 8.147 MB / 3.899 GB, free: 18.06 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002074/11.61, allocations: 282.1 kB / 3.899 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/11.61, allocations: 1.178 MB / 3.9 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006278/11.62, allocations: 65.58 kB / 3.9 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007529/11.62, allocations: 0.8057 MB / 3.901 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007319/11.62, allocations: 0.6075 MB / 3.901 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/11.62, allocations: 40 kB / 3.902 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002327/11.62, allocations: 396.1 kB / 3.902 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/11.62, allocations: 1.143 MB / 3.903 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003189/11.62, allocations: 1.695 MB / 3.905 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/11.63, allocations: 1.38 MB / 3.906 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/11.63, allocations: 7.938 kB / 3.906 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009805/11.64, allocations: 3.899 MB / 3.91 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002926/11.64, allocations: 6.282 MB / 3.916 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.717e-05/11.64, allocations: 16 kB / 3.916 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0365/11.68, allocations: 4.074 MB / 3.92 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/11.68, allocations: 333.4 kB / 3.92 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/11.69, allocations: 3.814 MB / 3.924 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004274/11.69, allocations: 271.2 kB / 3.924 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005492/11.69, allocations: 107.1 kB / 3.924 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/11.69, allocations: 4 kB / 3.924 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01104/11.7, allocations: 3.583 MB / 3.928 GB, free: 8.586 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.201e-05/11.7, allocations: 16 kB / 3.928 GB, free: 8.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/11.72, allocations: 2.181 MB / 3.93 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/11.72, allocations: 366.2 kB / 3.93 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007137/11.73, allocations: 3.1 MB / 3.933 GB, free: 3.875 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003406/11.73, allocations: 262.8 kB / 3.934 GB, free: 3.672 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000373/11.73, allocations: 105 kB / 3.934 GB, free: 3.578 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) 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 () * 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.0008502/11.73, allocations: 236.2 kB / 3.934 GB, free: 3.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005928/11.73, allocations: 164.8 kB / 3.934 GB, free: 3.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4102/12.14, allocations: 6.763 MB / 3.941 GB, free: 87.34 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-05/12.14, allocations: 75.34 kB / 3.941 GB, free: 87.34 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/12.14, allocations: 6.312 kB / 3.941 GB, free: 87.34 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01103/12.16, allocations: 5.44 MB / 3.946 GB, free: 86.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/12.18, allocations: 9.463 MB / 3.955 GB, free: 86.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-05/12.18, allocations: 2.188 kB / 3.955 GB, free: 86.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004192/12.18, allocations: 439.3 kB / 3.956 GB, free: 86.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/12.19, allocations: 445.3 kB / 3.956 GB, free: 86.09 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006659/12.19, allocations: 62.77 kB / 3.956 GB, free: 86.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/12.19, allocations: 3.22 MB / 3.959 GB, free: 83.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/12.19, allocations: 0 / 3.959 GB, free: 83.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/12.2, allocations: 6.741 MB / 3.966 GB, free: 83.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002506/12.21, allocations: 0.7726 MB / 3.967 GB, free: 82.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000809/12.21, allocations: 53.06 kB / 3.967 GB, free: 82.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003314/12.21, allocations: 212 kB / 3.967 GB, free: 82.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006629/12.21, allocations: 184.7 kB / 3.967 GB, free: 82.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/12.21, allocations: 66.06 kB / 3.967 GB, free: 82.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002576/12.21, allocations: 1.226 MB / 3.968 GB, free: 82.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.01e-07/12.21, allocations: 0 / 3.968 GB, free: 82.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01134/12.23, allocations: 2.363 MB / 3.971 GB, free: 82.73 MB / 0.5417 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 () * 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.01262/12.24, allocations: 2.009 MB / 3.973 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01436/12.25, allocations: 5.085 MB / 3.978 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/12.25, allocations: 3.281 kB / 3.978 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006117/12.26, allocations: 2.27 MB / 3.98 GB, free: 82.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007248/12.27, allocations: 0.781 MB / 3.981 GB, free: 82.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/12.28, allocations: 5.768 MB / 3.986 GB, free: 81.46 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/12.28, allocations: 2.044 MB / 3.988 GB, free: 80.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/12.28, allocations: 168.8 kB / 3.988 GB, free: 80.72 MB / 0.5417 GB Notification: Performance of SimCode: time 1.323e-06/12.28, allocations: 0 / 3.988 GB, free: 80.72 MB / 0.5417 GB Notification: Performance of Templates: time 0.1502/12.43, allocations: 87.4 MB / 4.074 GB, free: 70.19 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)