Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0011/0.0011, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.548/1.548, allocations: 170.7 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001657/0.001658, allocations: 109.2 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1953/0.1953, allocations: 37.97 MB / 295.1 MB, free: 9.5 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.831e-05, allocations: 2.688 kB / 350 MB, free: 37.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 48.73 MB / 398.7 MB, free: 5.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.483/7.586, allocations: 2.545 GB / 2.934 GB, free: 59.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/7.586, allocations: 77.08 kB / 2.934 GB, free: 59.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.479/11.06, allocations: 0.769 GB / 3.703 GB, free: 27.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.713e-06/11.06, allocations: 0 / 3.703 GB, free: 27.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003358/11.07, allocations: 67.44 kB / 3.703 GB, free: 27.86 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.0163/11.08, allocations: 3.831 MB / 3.707 GB, free: 25.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/11.08, allocations: 7.531 kB / 3.707 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006678/11.09, allocations: 0.8106 MB / 3.708 GB, free: 25.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007611/11.1, allocations: 2.077 MB / 3.71 GB, free: 25.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/11.1, allocations: 94.62 kB / 3.71 GB, free: 25.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001234/11.1, allocations: 115.1 kB / 3.71 GB, free: 25.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005777/11.1, allocations: 2.869 MB / 3.713 GB, free: 25.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004712/11.11, allocations: 2.86 MB / 3.716 GB, free: 24.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.955e-05/11.11, allocations: 8.312 kB / 3.716 GB, free: 24.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/11.11, allocations: 5.875 kB / 3.716 GB, free: 24.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002026/11.11, allocations: 165.6 kB / 3.716 GB, free: 24.8 MB / 458.7 MB 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.232/11.34, allocations: 108.8 MB / 3.822 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/11.34, allocations: 1.585 MB / 3.823 GB, free: 16.19 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/11.34, allocations: 0.9649 MB / 3.824 GB, free: 16.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03319/11.38, allocations: 17.52 MB / 3.842 GB, free: 17.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002319/11.38, allocations: 1.216 MB / 3.843 GB, free: 17.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001528/11.38, allocations: 171.9 kB / 3.843 GB, free: 16.89 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 6.773e-06/11.38, allocations: 0 / 3.843 GB, free: 16.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160): time 0.02243/11.4, allocations: 7.917 MB / 3.851 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002611/11.4, allocations: 0.5057 MB / 3.851 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/11.41, allocations: 1.186 MB / 3.852 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002727/11.41, allocations: 29.7 kB / 3.852 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009251/11.41, allocations: 1.042 MB / 3.853 GB, free: 9.602 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005707/11.41, allocations: 0.5256 MB / 3.854 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/11.41, allocations: 0 / 3.854 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001873/11.41, allocations: 387.4 kB / 3.854 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/11.41, allocations: 1.029 MB / 3.855 GB, free: 8.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/11.41, allocations: 1.488 MB / 3.857 GB, free: 7.211 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/11.42, allocations: 2.844 MB / 3.859 GB, free: 5.672 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.04e-05/11.42, allocations: 4 kB / 3.859 GB, free: 5.668 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0168/11.44, allocations: 4.741 MB / 3.864 GB, free: 2.91 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.3449/11.79, allocations: 4.517 MB / 3.868 GB, free: 86.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/11.79, allocations: 15.33 kB / 3.869 GB, free: 86.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00358/11.79, allocations: 0.8031 MB / 3.869 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/11.79, allocations: 475.6 kB / 3.87 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/11.79, allocations: 3.321 MB / 3.873 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002833/11.8, allocations: 230.4 kB / 3.873 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/11.8, allocations: 107.2 kB / 3.873 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/11.8, allocations: 5 kB / 3.873 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01457/11.81, allocations: 4.23 MB / 3.877 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.398e-05/11.81, allocations: 13.03 kB / 3.877 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/11.81, allocations: 348.1 kB / 3.878 GB, free: 84.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/11.82, allocations: 495.3 kB / 3.878 GB, free: 84.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/11.82, allocations: 3.995 MB / 3.882 GB, free: 81.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002542/11.82, allocations: 204.6 kB / 3.882 GB, free: 81.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002867/11.82, allocations: 104.6 kB / 3.882 GB, free: 81.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007042/11.82, allocations: 230 kB / 3.883 GB, free: 81.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004246/11.82, allocations: 191.5 kB / 3.883 GB, free: 81.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009961/11.83, allocations: 6.718 MB / 3.889 GB, free: 81.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-05/11.83, allocations: 70.81 kB / 3.889 GB, free: 81.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/11.83, allocations: 0 / 3.889 GB, free: 81.35 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006982/11.84, allocations: 5.682 MB / 3.895 GB, free: 80.61 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/11.85, allocations: 9.041 MB / 3.904 GB, free: 80.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/11.85, allocations: 0 / 3.904 GB, free: 80.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/11.85, allocations: 299.4 kB / 3.904 GB, free: 80.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003575/11.86, allocations: 2.373 MB / 3.906 GB, free: 80.04 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000208/11.86, allocations: 41.48 kB / 3.907 GB, free: 80.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003455/11.86, allocations: 4.405 MB / 3.911 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/11.86, allocations: 6.625 kB / 3.911 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009452/11.87, allocations: 7.116 MB / 3.918 GB, free: 77.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/11.87, allocations: 0.687 MB / 3.918 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003604/11.87, allocations: 20.48 kB / 3.918 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/11.88, allocations: 153.9 kB / 3.919 GB, free: 77.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/11.88, allocations: 125.5 kB / 3.919 GB, free: 77.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/11.88, allocations: 70.5 kB / 3.919 GB, free: 77.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001525/11.88, allocations: 1.075 MB / 3.92 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.3e-07/11.88, allocations: 0 / 3.92 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01084/11.89, allocations: 2.678 MB / 3.922 GB, free: 76.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01231/11.9, allocations: 2.998 MB / 3.925 GB, free: 76.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007923/11.91, allocations: 4.937 MB / 3.93 GB, free: 76.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/11.91, allocations: 0 / 3.93 GB, free: 76.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00313/11.91, allocations: 2.048 MB / 3.932 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004396/11.92, allocations: 0.7764 MB / 3.933 GB, free: 75.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008935/11.92, allocations: 5.339 MB / 3.938 GB, free: 74.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/11.93, allocations: 2.205 MB / 3.94 GB, free: 74.08 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00476/11.93, allocations: 2.427 MB / 3.943 GB, free: 74.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/11.93, allocations: 144.5 kB / 3.943 GB, free: 74.04 MB / 0.5105 GB Notification: Performance of SimCode: time 9.72e-07/11.93, allocations: 1.203 kB / 3.943 GB, free: 74.04 MB / 0.5105 GB Notification: Performance of Templates: time 0.1067/12.04, allocations: 75.52 MB / 4.017 GB, free: 57 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)