Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 177.4 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 91.59 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4173/0.4173, allocations: 44.23 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4573/0.4577, allocations: 61.89 MB / 0.5096 GB, free: 38.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.151/7.608, allocations: 2.829 GB / 3.339 GB, free: 20.53 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/7.609, allocations: 83.94 kB / 3.339 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.125/9.734, allocations: 472.4 MB / 3.8 GB, free: 51.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.348e-06/9.734, allocations: 0.9688 kB / 3.8 GB, free: 51.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001205/9.734, allocations: 24.67 kB / 3.8 GB, free: 51.16 MB / 0.5261 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.01273/9.747, allocations: 2.264 MB / 3.802 GB, free: 50.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 8.235e-05/9.747, allocations: 10.47 kB / 3.802 GB, free: 50.29 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004777/9.747, allocations: 135.4 kB / 3.803 GB, free: 50.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002935/9.75, allocations: 371.6 kB / 3.803 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/9.753, allocations: 0.8964 MB / 3.804 GB, free: 49.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/9.753, allocations: 73.94 kB / 3.804 GB, free: 49.94 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/9.753, allocations: 74 kB / 3.804 GB, free: 49.94 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/9.756, allocations: 1.48 MB / 3.805 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/9.756, allocations: 6.25 kB / 3.805 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.852e-05/9.757, allocations: 34.03 kB / 3.805 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.626e-05/9.757, allocations: 61.42 kB / 3.806 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003145/9.76, allocations: 1.341 MB / 3.807 GB, free: 49.65 MB / 0.5261 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.009037/9.769, allocations: 6.566 MB / 3.813 GB, free: 45.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003002/9.772, allocations: 1.015 MB / 3.814 GB, free: 45.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06411/9.836, allocations: 32.02 MB / 3.846 GB, free: 25.99 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.949e-05/9.836, allocations: 41.19 kB / 3.846 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=57): time 5.54e-06/9.836, allocations: 0 / 3.846 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61): time 0.009405/9.846, allocations: 3.355 MB / 3.849 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00126/9.847, allocations: 188.4 kB / 3.849 GB, free: 41.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009669/9.848, allocations: 0.6503 MB / 3.85 GB, free: 40.99 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.619e-05/9.848, allocations: 36.64 kB / 3.85 GB, free: 40.96 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/9.848, allocations: 414.7 kB / 3.85 GB, free: 40.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/9.848, allocations: 215 kB / 3.85 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/9.848, allocations: 14.81 kB / 3.85 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002052/9.849, allocations: 392.3 kB / 3.851 GB, free: 40.32 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007693/9.849, allocations: 419.3 kB / 3.851 GB, free: 40.32 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008657/9.85, allocations: 0.6286 MB / 3.852 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008538/9.851, allocations: 490.7 kB / 3.852 GB, free: 40.05 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/9.851, allocations: 0 / 3.852 GB, free: 40.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002445/9.854, allocations: 1.369 MB / 3.853 GB, free: 39.94 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009686/9.855, allocations: 2.261 MB / 3.856 GB, free: 37.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/9.855, allocations: 14.94 kB / 3.856 GB, free: 37.56 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/9.858, allocations: 0.689 MB / 3.856 GB, free: 37.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/9.859, allocations: 163.8 kB / 3.857 GB, free: 37.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/9.86, allocations: 1.307 MB / 3.858 GB, free: 37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/9.861, allocations: 106.5 kB / 3.858 GB, free: 37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/9.861, allocations: 34.89 kB / 3.858 GB, free: 37 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/9.861, allocations: 12.64 kB / 3.858 GB, free: 36.99 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002531/9.864, allocations: 1.223 MB / 3.859 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/9.864, allocations: 10.28 kB / 3.859 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/9.866, allocations: 442.6 kB / 3.86 GB, free: 36.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005987/9.866, allocations: 163.4 kB / 3.86 GB, free: 36.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/9.868, allocations: 1.106 MB / 3.861 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/9.869, allocations: 105.8 kB / 3.861 GB, free: 36.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/9.869, allocations: 46.25 kB / 3.861 GB, free: 36.39 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.0008142/9.87, allocations: 372.6 kB / 3.861 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/9.87, allocations: 85.69 kB / 3.861 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004067/9.874, allocations: 3.339 MB / 3.865 GB, free: 35.76 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.238e-05/9.874, allocations: 37.91 kB / 3.865 GB, free: 35.76 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/9.874, allocations: 3.328 kB / 3.865 GB, free: 35.76 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003098/9.877, allocations: 2.797 MB / 3.867 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006159/9.883, allocations: 4.606 MB / 3.872 GB, free: 34.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/9.883, allocations: 0 / 3.872 GB, free: 34.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007011/9.884, allocations: 175.4 kB / 3.872 GB, free: 34.78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/9.884, allocations: 106.2 kB / 3.872 GB, free: 34.77 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.224e-05/9.885, allocations: 21.03 kB / 3.872 GB, free: 34.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004437/9.885, allocations: 0.6541 MB / 3.873 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/9.885, allocations: 0 / 3.873 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/9.889, allocations: 2.961 MB / 3.876 GB, free: 33.75 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009331/9.89, allocations: 463.8 kB / 3.876 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/9.89, allocations: 14.31 kB / 3.876 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007454/9.891, allocations: 96.98 kB / 3.876 GB, free: 33.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/9.891, allocations: 58.95 kB / 3.876 GB, free: 33.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/9.891, allocations: 28.08 kB / 3.876 GB, free: 33.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001073/9.892, allocations: 0.7999 MB / 3.877 GB, free: 33.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.4e-07/9.892, allocations: 0 / 3.877 GB, free: 33.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008304/9.9, allocations: 1.74 MB / 3.879 GB, free: 33.14 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.01617/9.917, allocations: 5.516 MB / 3.884 GB, free: 31.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003777/9.92, allocations: 1.876 MB / 3.886 GB, free: 31.57 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/9.92, allocations: 4.188 kB / 3.886 GB, free: 31.56 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001262/9.922, allocations: 0.8992 MB / 3.887 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/9.924, allocations: 472.3 kB / 3.887 GB, free: 31.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/9.937, allocations: 8.907 MB / 3.896 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008705/9.938, allocations: 1.343 MB / 3.897 GB, free: 24.54 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001637/9.94, allocations: 0.9075 MB / 3.898 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006306/9.94, allocations: 0.562 MB / 3.899 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.573e-06/9.94, allocations: 0 / 3.899 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/10.05, allocations: 66.27 MB / 3.964 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/10.05, allocations: 262.1 kB / 3.964 GB, free: 4.883 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.893/14.94, allocations: 0 / 3.964 GB, free: 4.883 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat