Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002129/0.002129, allocations: 185.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001142/0.001141, allocations: 92.41 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5103/0.5103, allocations: 43.55 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.000463, allocations: 16 kB / 431.4 MB, free: 6.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1269, allocations: 58.86 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.703/8.83, allocations: 2.825 GB / 3.304 GB, free: 97.23 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/8.83, allocations: 78.78 kB / 3.304 GB, free: 97.23 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.816/11.65, allocations: 0.5782 GB / 3.882 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.284e-06/11.65, allocations: 3.938 kB / 3.882 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000182/11.65, allocations: 38.97 kB / 3.882 GB, free: 13.69 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01384/11.66, allocations: 3.053 MB / 3.885 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/11.66, allocations: 12.03 kB / 3.885 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006013/11.67, allocations: 0.5358 MB / 3.886 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005526/11.67, allocations: 1.452 MB / 3.887 GB, free: 8.578 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/11.67, allocations: 112.4 kB / 3.887 GB, free: 8.473 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005414/11.67, allocations: 130.1 kB / 3.887 GB, free: 8.352 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00831/11.68, allocations: 2.297 MB / 3.889 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-05/11.68, allocations: 4 kB / 3.889 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002787/11.68, allocations: 50.09 kB / 3.889 GB, free: 5.879 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/11.68, allocations: 110.2 kB / 3.89 GB, free: 5.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00826/11.69, allocations: 2.062 MB / 3.892 GB, free: 3.699 MB / 0.5105 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.02244/11.71, allocations: 9.79 MB / 3.901 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006395/11.72, allocations: 1.409 MB / 3.903 GB, free: 7.754 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4869/12.21, allocations: 24.42 MB / 3.926 GB, free: 36.57 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004664/12.21, allocations: 1.061 MB / 3.927 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 4.699e-06/12.21, allocations: 6.469 kB / 3.927 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.02185/12.23, allocations: 5.308 MB / 3.933 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/12.23, allocations: 272.2 kB / 3.933 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/12.23, allocations: 1.041 MB / 3.934 GB, free: 35.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003321/12.24, allocations: 45.58 kB / 3.934 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005752/12.24, allocations: 0.6108 MB / 3.935 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005019/12.24, allocations: 365.5 kB / 3.935 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/12.24, allocations: 24.62 kB / 3.935 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001089/12.24, allocations: 359.2 kB / 3.935 GB, free: 34.62 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/12.24, allocations: 0.6975 MB / 3.936 GB, free: 34.62 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002392/12.24, allocations: 0.982 MB / 3.937 GB, free: 34.31 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002444/12.24, allocations: 0.8381 MB / 3.938 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/12.24, allocations: 0 / 3.938 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006135/12.25, allocations: 1.96 MB / 3.94 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005818/12.25, allocations: 2.73 MB / 3.942 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.97e-05/12.25, allocations: 12.94 kB / 3.942 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000821/12.25, allocations: 142.5 kB / 3.942 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/12.25, allocations: 314.7 kB / 3.943 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009457/12.25, allocations: 1.253 MB / 3.944 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/12.26, allocations: 163.6 kB / 3.944 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/12.26, allocations: 63.66 kB / 3.944 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/12.26, allocations: 4.406 kB / 3.944 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005869/12.26, allocations: 1.865 MB / 3.946 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.71e-05/12.26, allocations: 12.02 kB / 3.946 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000723/12.26, allocations: 141.1 kB / 3.946 GB, free: 30.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/12.27, allocations: 312.6 kB / 3.946 GB, free: 30.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008865/12.27, allocations: 1.247 MB / 3.948 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/12.27, allocations: 159.4 kB / 3.948 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/12.27, allocations: 62.14 kB / 3.948 GB, free: 29.11 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.001341/12.27, allocations: 0.5341 MB / 3.948 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/12.27, allocations: 132.7 kB / 3.948 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009892/12.28, allocations: 4.82 MB / 3.953 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.388e-05/12.28, allocations: 59.84 kB / 3.953 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/12.28, allocations: 5.297 kB / 3.953 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008082/12.29, allocations: 4.039 MB / 3.957 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/12.3, allocations: 6.874 MB / 3.964 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/12.3, allocations: 3.188 kB / 3.964 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002046/12.31, allocations: 250.8 kB / 3.964 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/12.31, allocations: 193.5 kB / 3.964 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002497/12.31, allocations: 37.94 kB / 3.964 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00088/12.31, allocations: 1.296 MB / 3.966 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/12.31, allocations: 0 / 3.966 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009684/12.32, allocations: 4.447 MB / 3.97 GB, free: 25.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/12.32, allocations: 0.5532 MB / 3.971 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004174/12.32, allocations: 38.23 kB / 3.971 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001943/12.32, allocations: 122.8 kB / 3.971 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/12.32, allocations: 90.95 kB / 3.971 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/12.32, allocations: 48.95 kB / 3.971 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002157/12.33, allocations: 0.9929 MB / 3.972 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.392e-06/12.33, allocations: 0.875 kB / 3.972 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01072/12.34, allocations: 2.213 MB / 3.974 GB, free: 25.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01428/12.35, allocations: 2.379 MB / 3.976 GB, free: 25.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009009/12.36, allocations: 3.237 MB / 3.979 GB, free: 25.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/12.36, allocations: 1.469 kB / 3.979 GB, free: 25.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003328/12.36, allocations: 1.491 MB / 3.981 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005813/12.37, allocations: 0.6368 MB / 3.982 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/12.38, allocations: 5.739 MB / 3.987 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/12.38, allocations: 1.704 MB / 3.989 GB, free: 22.08 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009371/12.38, allocations: 136 kB / 3.989 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of SimCode: time 1.312e-06/12.38, allocations: 0 / 3.989 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of Templates: time 0.1266/12.51, allocations: 69.63 MB / 4.057 GB, free: 17.4 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)