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.001565/0.001565, allocations: 182.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.979/1.979, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001103/0.001103, allocations: 93.92 kB / 267.5 MB, free: 14.05 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.2739/0.2739, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.65e-05, allocations: 8 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1147, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.64/8.755, allocations: 2.825 GB / 3.298 GB, free: 88.76 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/8.755, allocations: 93.62 kB / 3.298 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.258/12.01, allocations: 0.5766 GB / 3.874 GB, free: 42.14 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.214e-06/12.01, allocations: 3.688 kB / 3.874 GB, free: 42.14 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001986/12.01, allocations: 46.92 kB / 3.874 GB, free: 42.14 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.01304/12.03, allocations: 2.853 MB / 3.877 GB, free: 40.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/12.03, allocations: 7.469 kB / 3.877 GB, free: 40.66 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005758/12.03, allocations: 0.5405 MB / 3.878 GB, free: 40.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005658/12.04, allocations: 1.429 MB / 3.879 GB, free: 40.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/12.04, allocations: 114.4 kB / 3.879 GB, free: 40.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000561/12.04, allocations: 126.5 kB / 3.879 GB, free: 40.19 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007286/12.05, allocations: 2.288 MB / 3.882 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.519e-05/12.05, allocations: 5.844 kB / 3.882 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000263/12.05, allocations: 54.47 kB / 3.882 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002027/12.05, allocations: 101 kB / 3.882 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006697/12.05, allocations: 1.97 MB / 3.884 GB, free: 39.78 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.01989/12.07, allocations: 9.801 MB / 3.893 GB, free: 33.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004637/12.08, allocations: 1.338 MB / 3.895 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/12.08, allocations: 0.6349 MB / 3.895 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07696/12.16, allocations: 24.52 MB / 3.919 GB, free: 34.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003883/12.16, allocations: 1.06 MB / 3.92 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 5.461e-06/12.16, allocations: 2.812 kB / 3.92 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01758/12.18, allocations: 4.476 MB / 3.925 GB, free: 33.63 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/12.18, allocations: 272.6 kB / 3.925 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002186/12.18, allocations: 1.027 MB / 3.926 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003758/12.18, allocations: 43.08 kB / 3.926 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000633/12.18, allocations: 0.6167 MB / 3.926 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005913/12.18, allocations: 362.4 kB / 3.927 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/12.18, allocations: 23.5 kB / 3.927 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001968/12.18, allocations: 358.8 kB / 3.927 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/12.18, allocations: 0.6188 MB / 3.928 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/12.19, allocations: 0.9089 MB / 3.929 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/12.19, allocations: 0.7578 MB / 3.929 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/12.19, allocations: 0 / 3.929 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004751/12.19, allocations: 1.798 MB / 3.931 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001227/12.19, allocations: 2.743 MB / 3.934 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-05/12.19, allocations: 11.03 kB / 3.934 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007563/12.2, allocations: 133.3 kB / 3.934 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/12.2, allocations: 322 kB / 3.934 GB, free: 28.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/12.2, allocations: 1.249 MB / 3.936 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/12.2, allocations: 157.5 kB / 3.936 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002641/12.2, allocations: 68.3 kB / 3.936 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/12.2, allocations: 9.062 kB / 3.936 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00457/12.21, allocations: 1.702 MB / 3.937 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.389e-05/12.21, allocations: 7.656 kB / 3.937 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000634/12.21, allocations: 131 kB / 3.938 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/12.21, allocations: 314.4 kB / 3.938 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/12.21, allocations: 1.254 MB / 3.939 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/12.21, allocations: 151.7 kB / 3.939 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/12.21, allocations: 63.48 kB / 3.939 GB, free: 25.65 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 () * 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.0005672/12.21, allocations: 221.2 kB / 3.939 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004781/12.21, allocations: 140.7 kB / 3.94 GB, free: 25.38 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008457/12.22, allocations: 4.729 MB / 3.944 GB, free: 23.24 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.537e-05/12.22, allocations: 51.72 kB / 3.944 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/12.22, allocations: 0 / 3.944 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006492/12.23, allocations: 3.972 MB / 3.948 GB, free: 21.39 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/12.24, allocations: 6.772 MB / 3.955 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/12.24, allocations: 3.953 kB / 3.955 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/12.24, allocations: 245.8 kB / 3.955 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/12.25, allocations: 184 kB / 3.955 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003579/12.25, allocations: 37.23 kB / 3.955 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/12.25, allocations: 1.281 MB / 3.956 GB, free: 17.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/12.25, allocations: 0 / 3.956 GB, free: 17.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008918/12.26, allocations: 4.223 MB / 3.961 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/12.26, allocations: 0.5577 MB / 3.961 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/12.26, allocations: 43.75 kB / 3.961 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002203/12.26, allocations: 121.9 kB / 3.961 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003731/12.26, allocations: 93.52 kB / 3.961 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001733/12.26, allocations: 43.47 kB / 3.961 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002204/12.26, allocations: 0.9799 MB / 3.962 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/12.26, allocations: 0 / 3.962 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01027/12.27, allocations: 2.209 MB / 3.965 GB, free: 10.53 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) * 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.01383/12.29, allocations: 2.391 MB / 3.967 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008787/12.3, allocations: 3.031 MB / 3.97 GB, free: 5.848 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/12.3, allocations: 4 kB / 3.97 GB, free: 5.844 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003456/12.3, allocations: 1.42 MB / 3.971 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005973/12.31, allocations: 0.6368 MB / 3.972 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/12.32, allocations: 3.859 MB / 3.976 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002108/12.32, allocations: 1.704 MB / 3.977 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000971/12.32, allocations: 142.1 kB / 3.977 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of SimCode: time 1.322e-06/12.32, allocations: 0 / 3.977 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of Templates: time 0.582/12.9, allocations: 69.3 MB / 4.045 GB, free: 58.82 MB / 0.5417 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)