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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001502/0.001502, 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.098/2.098, 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: 98.59 kB / 262.1 MB, free: 13.86 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.2895/0.2895, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.571e-05/2.583e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4044, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.789/9.194, allocations: 2.824 GB / 3.29 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/9.194, allocations: 77.88 kB / 3.29 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.231/12.43, allocations: 0.5714 GB / 3.862 GB, free: 43.16 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.655e-06/12.43, allocations: 2.625 kB / 3.862 GB, free: 43.16 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001932/12.43, allocations: 45.47 kB / 3.862 GB, free: 43.15 MB / 0.5108 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.01349/12.44, allocations: 2.857 MB / 3.865 GB, free: 41.71 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/12.44, allocations: 11.31 kB / 3.865 GB, free: 41.71 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005803/12.44, allocations: 0.5375 MB / 3.865 GB, free: 41.62 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005849/12.45, allocations: 1.425 MB / 3.866 GB, free: 41.26 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/12.45, allocations: 61.42 kB / 3.867 GB, free: 41.26 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003949/12.45, allocations: 76.98 kB / 3.867 GB, free: 41.26 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004019/12.46, allocations: 1.561 MB / 3.868 GB, free: 41.25 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004135/12.46, allocations: 1.784 MB / 3.87 GB, free: 40.87 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/12.46, allocations: 0 / 3.87 GB, free: 40.87 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002177/12.46, allocations: 7.75 kB / 3.87 GB, free: 40.87 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002094/12.46, allocations: 96.45 kB / 3.87 GB, free: 40.87 MB / 0.5108 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.2786/12.74, allocations: 88.66 MB / 3.957 GB, free: 17.63 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/12.74, allocations: 0.9314 MB / 3.957 GB, free: 17.6 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/12.74, allocations: 0.5634 MB / 3.958 GB, free: 17.59 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05666/12.8, allocations: 16.91 MB / 3.975 GB, free: 22.59 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00175/12.8, allocations: 0.7329 MB / 3.975 GB, free: 22.46 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=88): time 4.8e-06/12.8, allocations: 0.6562 kB / 3.975 GB, free: 22.46 MB / 0.5577 GB Notification: Performance of matching and sorting (n=96): time 0.01905/12.82, allocations: 4.766 MB / 3.98 GB, free: 21.25 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/12.82, allocations: 378.5 kB / 3.98 GB, free: 20.81 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/12.82, allocations: 0.7937 MB / 3.981 GB, free: 20.66 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0003936/12.82, allocations: 25.7 kB / 3.981 GB, free: 20.63 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.000665/12.82, allocations: 0.6822 MB / 3.982 GB, free: 20.24 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004657/12.82, allocations: 321.3 kB / 3.982 GB, free: 20.03 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/12.82, allocations: 3.562 kB / 3.982 GB, free: 20.03 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0001783/12.82, allocations: 362.1 kB / 3.982 GB, free: 19.72 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/12.83, allocations: 0.6046 MB / 3.983 GB, free: 19.72 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/12.83, allocations: 0.8894 MB / 3.984 GB, free: 19.4 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/12.84, allocations: 1.759 MB / 3.986 GB, free: 19.36 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-05/12.84, allocations: 3.094 kB / 3.986 GB, free: 19.36 MB / 0.5577 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.01617/12.86, allocations: 2.736 MB / 3.988 GB, free: 19.22 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.001064/12.86, allocations: 2.734 MB / 3.991 GB, free: 16.36 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-05/12.86, allocations: 9.797 kB / 3.991 GB, free: 16.36 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005554/12.86, allocations: 125.3 kB / 3.991 GB, free: 16.34 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/12.86, allocations: 317.4 kB / 3.991 GB, free: 16.34 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/12.86, allocations: 1.262 MB / 3.993 GB, free: 15.3 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002864/12.86, allocations: 175.7 kB / 3.993 GB, free: 15.27 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/12.86, allocations: 62.16 kB / 3.993 GB, free: 15.27 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/12.86, allocations: 7.781 kB / 3.993 GB, free: 15.27 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01451/12.88, allocations: 2.541 MB / 3.995 GB, free: 15.19 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.609e-05/12.88, allocations: 12.11 kB / 3.995 GB, free: 15.19 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/12.88, allocations: 130.9 kB / 3.995 GB, free: 15.17 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00241/12.88, allocations: 311 kB / 3.996 GB, free: 15.17 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/12.88, allocations: 1.263 MB / 3.997 GB, free: 14.12 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/12.89, allocations: 146 kB / 3.997 GB, free: 14.11 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/12.89, allocations: 64.12 kB / 3.997 GB, free: 14.11 MB / 0.5577 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,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,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.0005574/12.89, allocations: 176.6 kB / 3.997 GB, free: 13.96 MB / 0.5577 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005313/12.89, allocations: 1.476 MB / 3.999 GB, free: 13.83 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004585/12.89, allocations: 123.8 kB / 3.999 GB, free: 13.77 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008111/12.9, allocations: 3.811 MB / 4.003 GB, free: 13.36 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.882e-05/12.9, allocations: 40.8 kB / 4.003 GB, free: 13.36 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/12.9, allocations: 7.312 kB / 4.003 GB, free: 13.36 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006301/12.91, allocations: 3.015 MB / 4.006 GB, free: 12.98 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/12.92, allocations: 5.346 MB / 4.011 GB, free: 12.52 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/12.92, allocations: 3.938 kB / 4.011 GB, free: 12.51 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/12.92, allocations: 198.7 kB / 4.011 GB, free: 12.51 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000737/12.92, allocations: 175.2 kB / 4.011 GB, free: 12.48 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/12.92, allocations: 23.94 kB / 4.011 GB, free: 12.48 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/12.92, allocations: 1.348 MB / 4.013 GB, free: 27.44 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/12.92, allocations: 0 / 4.013 GB, free: 27.44 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007851/12.93, allocations: 3.69 MB / 4.016 GB, free: 25.65 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/12.93, allocations: 0.4924 MB / 4.017 GB, free: 25.3 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/12.93, allocations: 13.94 kB / 4.017 GB, free: 25.29 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/12.93, allocations: 97.64 kB / 4.017 GB, free: 25.22 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/12.93, allocations: 78.97 kB / 4.017 GB, free: 25.18 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/12.93, allocations: 41.05 kB / 4.017 GB, free: 25.16 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.001647/12.94, allocations: 0.8495 MB / 4.018 GB, free: 24.64 MB / 0.5733 GB Notification: Performance of sort global known variables: time 5.51e-07/12.94, allocations: 0 / 4.018 GB, free: 24.64 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.009823/12.95, allocations: 2.132 MB / 4.02 GB, free: 22.65 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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 (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.02208/12.97, allocations: 6.875 MB / 4.026 GB, free: 17.79 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.006426/12.97, allocations: 2.784 MB / 4.029 GB, free: 16.14 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/12.97, allocations: 8.062 kB / 4.029 GB, free: 16.13 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.00238/12.98, allocations: 1.206 MB / 4.03 GB, free: 15.51 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004849/12.98, allocations: 0.516 MB / 4.031 GB, free: 15.22 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/13, allocations: 4.411 MB / 4.035 GB, free: 11.92 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/13, allocations: 1.615 MB / 4.037 GB, free: 10.65 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/13, allocations: 0.7591 MB / 4.037 GB, free: 10.54 MB / 0.5733 GB Notification: Performance of SimCode: time 1.442e-06/13, allocations: 2.719 kB / 4.037 GB, free: 10.54 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.229/18.23, allocations: 75.03 MB / 4.111 GB, free: 94.8 MB / 0.5733 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)