Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_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.001249/0.001249, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.433/1.433, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001039/0.001039, allocations: 93.67 kB / 267.1 MB, free: 9.289 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.365/0.365, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.604e-05/4.63e-05, allocations: 4 kB / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 58.85 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.477/7.605, allocations: 2.825 GB / 3.298 GB, free: 3.809 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/7.606, allocations: 84.09 kB / 3.298 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.841/10.45, allocations: 0.5767 GB / 3.874 GB, free: 29.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.877e-06/10.45, allocations: 0 / 3.874 GB, free: 29.6 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003068/10.45, allocations: 48.73 kB / 3.875 GB, free: 29.59 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.01549/10.46, allocations: 2.859 MB / 3.877 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.206e-05/10.46, allocations: 7.875 kB / 3.877 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001164/10.46, allocations: 193.1 kB / 3.878 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004936/10.47, allocations: 0.5397 MB / 3.878 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006031/10.47, allocations: 1.431 MB / 3.879 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002416/10.47, allocations: 119.4 kB / 3.88 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008124/10.48, allocations: 122.4 kB / 3.88 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007512/10.48, allocations: 2.278 MB / 3.882 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/10.48, allocations: 11.92 kB / 3.882 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005729/10.48, allocations: 53.47 kB / 3.882 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002088/10.48, allocations: 94.27 kB / 3.882 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005094/10.49, allocations: 1.976 MB / 3.884 GB, free: 21.91 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.01668/10.51, allocations: 9.799 MB / 3.894 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003165/10.51, allocations: 1.351 MB / 3.895 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009403/10.51, allocations: 0.6279 MB / 3.895 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5725/11.08, allocations: 24.51 MB / 3.919 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003938/11.09, allocations: 1.054 MB / 3.92 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 6.001e-06/11.09, allocations: 1.25 kB / 3.92 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01402/11.1, allocations: 4.471 MB / 3.925 GB, free: 52.12 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/11.1, allocations: 276.6 kB / 3.925 GB, free: 51.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/11.1, allocations: 1.019 MB / 3.926 GB, free: 51.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001548/11.1, allocations: 45.86 kB / 3.926 GB, free: 51.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006175/11.1, allocations: 0.6433 MB / 3.927 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/11.1, allocations: 362.4 kB / 3.927 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/11.1, allocations: 24.56 kB / 3.927 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001232/11.1, allocations: 356.8 kB / 3.927 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009551/11.11, allocations: 0.6154 MB / 3.928 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/11.11, allocations: 0.9173 MB / 3.929 GB, free: 50.62 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/11.11, allocations: 0.7544 MB / 3.93 GB, free: 50.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/11.11, allocations: 8.359 kB / 3.93 GB, free: 50.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003612/11.11, allocations: 1.881 MB / 3.932 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008561/11.11, allocations: 2.76 MB / 3.934 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.633e-05/11.11, allocations: 8.516 kB / 3.934 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006032/11.11, allocations: 133.7 kB / 3.934 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/11.11, allocations: 314.9 kB / 3.935 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007831/11.11, allocations: 1.253 MB / 3.936 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/11.12, allocations: 152 kB / 3.936 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/11.12, allocations: 70.38 kB / 3.936 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/11.12, allocations: 2.875 kB / 3.936 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002974/11.12, allocations: 1.709 MB / 3.938 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/11.12, allocations: 14.45 kB / 3.938 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004135/11.12, allocations: 134.6 kB / 3.938 GB, free: 46.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/11.12, allocations: 304.7 kB / 3.938 GB, free: 46.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006824/11.12, allocations: 1.256 MB / 3.939 GB, free: 45.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/11.12, allocations: 155 kB / 3.94 GB, free: 45.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/11.12, allocations: 61.2 kB / 3.94 GB, free: 45.38 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.0005425/11.12, allocations: 213.5 kB / 3.94 GB, free: 45.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/11.13, allocations: 145.9 kB / 3.94 GB, free: 45.17 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00666/11.13, allocations: 4.732 MB / 3.945 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.689e-05/11.13, allocations: 54.94 kB / 3.945 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/11.13, allocations: 4.5 kB / 3.945 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004818/11.14, allocations: 3.959 MB / 3.949 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/11.15, allocations: 6.773 MB / 3.955 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/11.15, allocations: 6.75 kB / 3.955 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/11.15, allocations: 249.9 kB / 3.955 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006561/11.15, allocations: 173.8 kB / 3.956 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/11.15, allocations: 38.89 kB / 3.956 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007624/11.15, allocations: 1.299 MB / 3.957 GB, free: 42.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/11.15, allocations: 2.438 kB / 3.957 GB, free: 42.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00642/11.16, allocations: 4.226 MB / 3.961 GB, free: 42.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/11.16, allocations: 0.5542 MB / 3.962 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002998/11.16, allocations: 33.53 kB / 3.962 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/11.16, allocations: 126.7 kB / 3.962 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/11.16, allocations: 94.12 kB / 3.962 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/11.16, allocations: 42.73 kB / 3.962 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001663/11.16, allocations: 0.9781 MB / 3.963 GB, free: 41.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/11.16, allocations: 3.906 kB / 3.963 GB, free: 41.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01592/11.18, allocations: 2.208 MB / 3.965 GB, free: 41.87 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.02759/11.2, allocations: 7.05 MB / 3.972 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009649/11.21, allocations: 3.081 MB / 3.975 GB, free: 40.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/11.21, allocations: 2.844 kB / 3.975 GB, free: 40.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003245/11.22, allocations: 1.421 MB / 3.976 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005398/11.22, allocations: 0.6421 MB / 3.977 GB, free: 40.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/11.25, allocations: 4.907 MB / 3.982 GB, free: 39.54 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002917/11.25, allocations: 1.73 MB / 3.983 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005427/11.26, allocations: 1.736 MB / 3.985 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/11.26, allocations: 0.8322 MB / 3.986 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of SimCode: time 3.978e-06/11.26, allocations: 0 / 3.986 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1902/11.45, allocations: 89.41 MB / 4.073 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002965/11.45, allocations: 218.8 kB / 4.073 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.964/17.41, allocations: 3.938 kB / 4.073 GB, free: 27.16 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat