Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 198.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 97.83 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4567/0.4567, allocations: 45.23 MB / 394.6 MB, free: 31.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003366, allocations: 4 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4605/0.4609, allocations: 63.26 MB / 0.5193 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.93/8.391, allocations: 2.83 GB / 3.349 GB, free: 56.22 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/8.392, allocations: 84.62 kB / 3.35 GB, free: 56.18 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.793/10.19, allocations: 472.2 MB / 3.811 GB, free: 25.51 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.777e-06/10.19, allocations: 0 / 3.811 GB, free: 25.51 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001032/10.19, allocations: 26.28 kB / 3.811 GB, free: 25.49 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01387/10.2, allocations: 2.266 MB / 3.813 GB, free: 23.18 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.362e-05/10.2, allocations: 12.03 kB / 3.813 GB, free: 23.17 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008298/10.2, allocations: 136.5 kB / 3.813 GB, free: 23.04 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00342/10.2, allocations: 363 kB / 3.813 GB, free: 22.68 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00326/10.21, allocations: 0.907 MB / 3.814 GB, free: 21.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/10.21, allocations: 64.42 kB / 3.814 GB, free: 21.68 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003393/10.21, allocations: 78.66 kB / 3.814 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003879/10.21, allocations: 1.484 MB / 3.816 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.096e-05/10.21, allocations: 0 / 3.816 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/10.21, allocations: 39.12 kB / 3.816 GB, free: 20 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.755e-05/10.21, allocations: 57.97 kB / 3.816 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003097/10.21, allocations: 1.342 MB / 3.817 GB, free: 18.6 MB / 0.5417 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.007728/10.22, allocations: 6.561 MB / 3.824 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/10.23, allocations: 1.01 MB / 3.825 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5442/10.77, allocations: 35.28 MB / 3.859 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/10.77, allocations: 46.95 kB / 3.859 GB, free: 43.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 3.526e-06/10.77, allocations: 2.625 kB / 3.859 GB, free: 43.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.009564/10.78, allocations: 3.347 MB / 3.862 GB, free: 42.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.825e-05/10.78, allocations: 188.9 kB / 3.863 GB, free: 42.38 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/10.78, allocations: 0.6482 MB / 3.863 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.761e-05/10.78, allocations: 39.61 kB / 3.863 GB, free: 42.22 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/10.78, allocations: 408.5 kB / 3.864 GB, free: 42.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/10.78, allocations: 213.5 kB / 3.864 GB, free: 41.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/10.78, allocations: 12.41 kB / 3.864 GB, free: 41.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001888/10.78, allocations: 398.2 kB / 3.864 GB, free: 41.64 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/10.78, allocations: 420.4 kB / 3.865 GB, free: 41.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/10.78, allocations: 0.6257 MB / 3.865 GB, free: 41.41 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/10.78, allocations: 488 kB / 3.866 GB, free: 41.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/10.78, allocations: 2.5 kB / 3.866 GB, free: 41.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003154/10.79, allocations: 1.366 MB / 3.867 GB, free: 41.31 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007073/10.79, allocations: 2.273 MB / 3.869 GB, free: 38.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/10.79, allocations: 6.281 kB / 3.869 GB, free: 38.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003455/10.79, allocations: 0.6973 MB / 3.87 GB, free: 38.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005678/10.79, allocations: 160.1 kB / 3.87 GB, free: 38.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/10.79, allocations: 1.298 MB / 3.871 GB, free: 38.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/10.8, allocations: 113.2 kB / 3.872 GB, free: 38.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.926e-05/10.8, allocations: 38.45 kB / 3.872 GB, free: 38.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/10.8, allocations: 4.219 kB / 3.872 GB, free: 38.41 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00295/10.8, allocations: 1.232 MB / 3.873 GB, free: 38.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/10.8, allocations: 5 kB / 3.873 GB, free: 38.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/10.8, allocations: 440.3 kB / 3.873 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/10.8, allocations: 168 kB / 3.873 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/10.8, allocations: 1.108 MB / 3.874 GB, free: 37.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/10.8, allocations: 104.6 kB / 3.875 GB, free: 37.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.378e-05/10.8, allocations: 42.45 kB / 3.875 GB, free: 37.85 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007524/10.8, allocations: 370 kB / 3.875 GB, free: 37.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/10.8, allocations: 85.28 kB / 3.875 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005171/10.81, allocations: 3.35 MB / 3.878 GB, free: 37.32 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-05/10.81, allocations: 39.56 kB / 3.878 GB, free: 37.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/10.81, allocations: 0.875 kB / 3.878 GB, free: 37.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004782/10.81, allocations: 2.796 MB / 3.881 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009419/10.82, allocations: 4.597 MB / 3.886 GB, free: 36.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/10.82, allocations: 3.969 kB / 3.886 GB, free: 36.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007216/10.83, allocations: 175 kB / 3.886 GB, free: 36.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004961/10.83, allocations: 98 kB / 3.886 GB, free: 36.39 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.567e-05/10.83, allocations: 21 kB / 3.886 GB, free: 36.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004504/10.83, allocations: 0.6517 MB / 3.886 GB, free: 35.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/10.83, allocations: 0 / 3.886 GB, free: 35.87 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/10.83, allocations: 2.96 MB / 3.889 GB, free: 35.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/10.83, allocations: 459 kB / 3.89 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004558/10.83, allocations: 27.33 kB / 3.89 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/10.83, allocations: 79.44 kB / 3.89 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/10.83, allocations: 67.05 kB / 3.89 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.368e-05/10.83, allocations: 26.02 kB / 3.89 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001726/10.84, allocations: 0.8011 MB / 3.891 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.81e-07/10.84, allocations: 0 / 3.891 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009711/10.85, allocations: 1.756 MB / 3.892 GB, free: 35.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0188/10.86, allocations: 5.525 MB / 3.898 GB, free: 33.95 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004891/10.87, allocations: 1.872 MB / 3.9 GB, free: 33.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/10.87, allocations: 2.938 kB / 3.9 GB, free: 33.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001564/10.87, allocations: 0.8992 MB / 3.901 GB, free: 33.91 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/10.87, allocations: 483.8 kB / 3.901 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/10.89, allocations: 8.923 MB / 3.91 GB, free: 27.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/10.89, allocations: 1.341 MB / 3.911 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002149/10.89, allocations: 0.9018 MB / 3.912 GB, free: 27.26 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009074/10.9, allocations: 0.5703 MB / 3.913 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of SimCode: time 1.393e-06/10.9, allocations: 0 / 3.913 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/11.02, allocations: 66.38 MB / 3.977 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002473/11.02, allocations: 262.5 kB / 3.978 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.096/16.12, allocations: 0 / 3.978 GB, free: 23.7 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat