Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002161/0.00216, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 91.42 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2974/0.2974, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.637e-05/1.66e-05, allocations: 224 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4279, allocations: 58.86 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.608/9.036, allocations: 2.821 GB / 3.287 GB, free: 104.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/9.037, allocations: 78.14 kB / 3.287 GB, free: 104.4 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.615/12.65, allocations: 0.7376 GB / 4.025 GB, free: 12.98 MB / 0.5265 GB Notification: Performance of FrontEnd: time 5.05e-06/12.65, allocations: 0 / 4.025 GB, free: 12.98 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002136/12.65, allocations: 39.61 kB / 4.025 GB, free: 12.94 MB / 0.5265 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01513/12.67, allocations: 2.747 MB / 4.027 GB, free: 10.16 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/12.67, allocations: 8.031 kB / 4.027 GB, free: 10.15 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005241/12.67, allocations: 480 kB / 4.028 GB, free: 9.68 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004771/12.68, allocations: 1.126 MB / 4.029 GB, free: 8.531 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002474/12.68, allocations: 114.1 kB / 4.029 GB, free: 8.406 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004595/12.68, allocations: 55.91 kB / 4.029 GB, free: 8.352 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004272/12.68, allocations: 1.339 MB / 4.03 GB, free: 7.012 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004344/12.69, allocations: 1.467 MB / 4.032 GB, free: 5.43 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.992e-05/12.69, allocations: 7.938 kB / 4.032 GB, free: 5.422 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/12.69, allocations: 4 kB / 4.032 GB, free: 5.418 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/12.69, allocations: 81.95 kB / 4.032 GB, free: 5.34 MB / 0.5265 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.8612/13.55, allocations: 135.2 MB / 4.164 GB, free: 19.4 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/13.55, allocations: 0.9241 MB / 4.165 GB, free: 19.18 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007829/13.55, allocations: 372.4 kB / 4.165 GB, free: 19.17 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05336/13.61, allocations: 16.69 MB / 4.182 GB, free: 24.39 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/13.61, allocations: 0.4957 MB / 4.182 GB, free: 24.28 MB / 0.589 GB Notification: Performance of pre-optimization done (n=66): time 3.957e-06/13.61, allocations: 1.031 kB / 4.182 GB, free: 24.28 MB / 0.589 GB Notification: Performance of matching and sorting (n=70): time 0.01292/13.62, allocations: 3.12 MB / 4.185 GB, free: 23.58 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002094/13.62, allocations: 355.6 kB / 4.185 GB, free: 23.17 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/13.62, allocations: 0.8379 MB / 4.186 GB, free: 23.02 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0002055/13.62, allocations: 33.08 kB / 4.186 GB, free: 22.98 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005889/13.62, allocations: 0.6368 MB / 4.187 GB, free: 22.66 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.00032/13.62, allocations: 242.5 kB / 4.187 GB, free: 22.54 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/13.62, allocations: 0 / 4.187 GB, free: 22.54 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0001765/13.62, allocations: 359.8 kB / 4.187 GB, free: 22.22 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/13.62, allocations: 465.4 kB / 4.188 GB, free: 22.22 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/13.63, allocations: 0.9222 MB / 4.189 GB, free: 21.65 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/13.64, allocations: 1.65 MB / 4.19 GB, free: 21.6 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.229e-05/13.64, allocations: 3.906 kB / 4.19 GB, free: 21.6 MB / 0.589 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.0157/13.65, allocations: 2.631 MB / 4.193 GB, free: 21.49 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.002434/13.66, allocations: 5.408 MB / 4.198 GB, free: 15.82 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-05/13.66, allocations: 11.75 kB / 4.198 GB, free: 15.82 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005876/13.66, allocations: 0.7035 MB / 4.199 GB, free: 15.8 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/13.66, allocations: 257 kB / 4.199 GB, free: 15.79 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004182/13.67, allocations: 1.619 MB / 4.201 GB, free: 15.25 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/13.67, allocations: 126.3 kB / 4.201 GB, free: 15.23 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004184/13.67, allocations: 66.67 kB / 4.201 GB, free: 15.23 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/13.67, allocations: 6.5 kB / 4.201 GB, free: 15.23 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01491/13.69, allocations: 2.329 MB / 4.203 GB, free: 15.18 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.017e-05/13.69, allocations: 11.81 kB / 4.203 GB, free: 15.18 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/13.69, allocations: 334.2 kB / 4.204 GB, free: 15.16 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/13.69, allocations: 278.7 kB / 4.204 GB, free: 15.16 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/13.69, allocations: 1.042 MB / 4.205 GB, free: 14.62 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00219/13.69, allocations: 106 kB / 4.205 GB, free: 14.61 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/13.7, allocations: 66.03 kB / 4.205 GB, free: 14.61 MB / 0.589 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006112/13.7, allocations: 156.8 kB / 4.205 GB, free: 14.5 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/13.7, allocations: 114 kB / 4.205 GB, free: 14.45 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006595/13.7, allocations: 2.898 MB / 4.208 GB, free: 14.21 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.117e-05/13.7, allocations: 32.31 kB / 4.208 GB, free: 14.21 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/13.7, allocations: 3.719 kB / 4.208 GB, free: 14.21 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.369e-05/13.7, allocations: 5.906 kB / 4.208 GB, free: 14.21 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/13.71, allocations: 4.579 MB / 4.213 GB, free: 13.53 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/13.71, allocations: 2.297 kB / 4.213 GB, free: 13.53 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/13.71, allocations: 129.3 kB / 4.213 GB, free: 13.52 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008032/13.72, allocations: 1.521 MB / 4.214 GB, free: 13.45 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002519/13.72, allocations: 16.77 kB / 4.214 GB, free: 13.45 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003482/13.73, allocations: 2.27 MB / 4.216 GB, free: 12.38 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/13.73, allocations: 0 / 4.216 GB, free: 12.38 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00708/13.73, allocations: 3.326 MB / 4.22 GB, free: 11.98 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/13.73, allocations: 347.3 kB / 4.22 GB, free: 11.81 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003124/13.73, allocations: 3.531 kB / 4.22 GB, free: 11.81 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/13.74, allocations: 81.52 kB / 4.22 GB, free: 11.8 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/13.74, allocations: 58.09 kB / 4.22 GB, free: 11.8 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-05/13.74, allocations: 33.22 kB / 4.22 GB, free: 11.79 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.001337/13.74, allocations: 0.6073 MB / 4.221 GB, free: 11.68 MB / 0.589 GB Notification: Performance of sort global known variables: time 4.91e-07/13.74, allocations: 0 / 4.221 GB, free: 11.68 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01021/13.75, allocations: 1.921 MB / 4.223 GB, free: 11.68 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01446/13.76, allocations: 2.508 MB / 4.225 GB, free: 11.35 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.005708/13.77, allocations: 2.061 MB / 4.227 GB, free: 11.3 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/13.77, allocations: 0 / 4.227 GB, free: 11.3 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.001732/13.77, allocations: 0.8062 MB / 4.228 GB, free: 11.3 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004422/13.77, allocations: 466.4 kB / 4.228 GB, free: 11.27 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005753/13.78, allocations: 2.375 MB / 4.231 GB, free: 9.754 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/13.78, allocations: 1.339 MB / 4.232 GB, free: 8.652 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006828/13.78, allocations: 104.8 kB / 4.232 GB, free: 8.562 MB / 0.589 GB Notification: Performance of SimCode: time 1.393e-06/13.78, allocations: 0 / 4.232 GB, free: 8.562 MB / 0.589 GB Notification: Performance of Templates: time 0.5423/14.33, allocations: 55.17 MB / 4.286 GB, free: 108.6 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)