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.001244/0.001244, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000875/0.0008753, allocations: 87.56 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.175/0.175, allocations: 45.13 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.555e-05/2.565e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.0926, allocations: 63.25 MB / 0.5115 GB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.825/5.918, allocations: 2.83 GB / 3.342 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/5.918, allocations: 79.89 kB / 3.342 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.995/7.914, allocations: 471 MB / 3.802 GB, free: 64.15 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.353e-06/7.914, allocations: 1.062 kB / 3.802 GB, free: 64.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.321e-05/7.914, allocations: 27.16 kB / 3.802 GB, free: 64.15 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.007054/7.921, allocations: 2.156 MB / 3.804 GB, free: 63.38 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/7.921, allocations: 9.656 kB / 3.804 GB, free: 63.38 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/7.921, allocations: 133.8 kB / 3.804 GB, free: 63.34 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002256/7.923, allocations: 368.4 kB / 3.804 GB, free: 63.29 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/7.925, allocations: 0.8848 MB / 3.805 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-05/7.925, allocations: 73.06 kB / 3.805 GB, free: 63.04 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/7.925, allocations: 79.75 kB / 3.805 GB, free: 63.04 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/7.928, allocations: 1.462 MB / 3.807 GB, free: 62.76 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/7.928, allocations: 3.938 kB / 3.807 GB, free: 62.76 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.696e-05/7.928, allocations: 38.64 kB / 3.807 GB, free: 62.76 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.024e-05/7.929, allocations: 57.81 kB / 3.807 GB, free: 62.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/7.931, allocations: 1.249 MB / 3.808 GB, free: 62.75 MB / 0.5417 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.006985/7.938, allocations: 6.559 MB / 3.814 GB, free: 58.61 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002073/7.94, allocations: 0.9349 MB / 3.815 GB, free: 58.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005914/7.941, allocations: 389.1 kB / 3.816 GB, free: 58.52 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05524/7.996, allocations: 35.38 MB / 3.85 GB, free: 35.71 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/7.996, allocations: 38.25 kB / 3.85 GB, free: 35.67 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 2.696e-06/7.996, allocations: 2.562 kB / 3.85 GB, free: 35.67 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.009181/8.005, allocations: 2.819 MB / 3.853 GB, free: 35.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/8.005, allocations: 195.6 kB / 3.853 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009705/8.006, allocations: 0.6388 MB / 3.854 GB, free: 34.72 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.951e-05/8.007, allocations: 37.14 kB / 3.854 GB, free: 34.69 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/8.007, allocations: 406.6 kB / 3.854 GB, free: 34.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/8.007, allocations: 222.2 kB / 3.854 GB, free: 34.42 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/8.007, allocations: 18.94 kB / 3.855 GB, free: 34.42 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001375/8.007, allocations: 385.8 kB / 3.855 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000532/8.008, allocations: 347.5 kB / 3.855 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/8.008, allocations: 0.5477 MB / 3.856 GB, free: 33.87 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006188/8.009, allocations: 419.5 kB / 3.856 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/8.009, allocations: 0 / 3.856 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00179/8.011, allocations: 1.205 MB / 3.857 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005059/8.011, allocations: 2.271 MB / 3.86 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/8.011, allocations: 7.188 kB / 3.86 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/8.014, allocations: 0.6552 MB / 3.86 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/8.015, allocations: 161.5 kB / 3.86 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/8.016, allocations: 1.255 MB / 3.862 GB, free: 30.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000954/8.017, allocations: 108.2 kB / 3.862 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.844e-05/8.017, allocations: 41.06 kB / 3.862 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/8.017, allocations: 3.344 kB / 3.862 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001741/8.019, allocations: 1.077 MB / 3.863 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/8.019, allocations: 3.969 kB / 3.863 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/8.02, allocations: 396.4 kB / 3.863 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/8.021, allocations: 172.8 kB / 3.863 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008535/8.022, allocations: 1.063 MB / 3.864 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008446/8.022, allocations: 106.2 kB / 3.864 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/8.023, allocations: 36 kB / 3.864 GB, free: 30.3 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 () * 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.000217/8.023, allocations: 154.5 kB / 3.865 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/8.023, allocations: 81.25 kB / 3.865 GB, free: 30.16 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/8.027, allocations: 3.241 MB / 3.868 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.15e-05/8.027, allocations: 35.97 kB / 3.868 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/8.027, allocations: 10.5 kB / 3.868 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002455/8.029, allocations: 2.692 MB / 3.871 GB, free: 29.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005769/8.035, allocations: 4.473 MB / 3.875 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/8.035, allocations: 3.953 kB / 3.875 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000655/8.036, allocations: 182.2 kB / 3.875 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003454/8.036, allocations: 91.66 kB / 3.875 GB, free: 28.81 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/8.036, allocations: 21.44 kB / 3.875 GB, free: 28.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003608/8.036, allocations: 0.6442 MB / 3.876 GB, free: 28.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/8.036, allocations: 0 / 3.876 GB, free: 28.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/8.04, allocations: 2.746 MB / 3.879 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007925/8.04, allocations: 458.1 kB / 3.879 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/8.041, allocations: 19.33 kB / 3.879 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008994/8.041, allocations: 92.75 kB / 3.879 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/8.042, allocations: 58.92 kB / 3.879 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.311e-05/8.042, allocations: 25.53 kB / 3.879 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001044/8.043, allocations: 0.7876 MB / 3.88 GB, free: 27.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.162e-06/8.043, allocations: 0 / 3.88 GB, free: 27.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008039/8.051, allocations: 1.76 MB / 3.882 GB, free: 27.21 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 () * 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.01433/8.065, allocations: 5.316 MB / 3.887 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002996/8.068, allocations: 1.68 MB / 3.888 GB, free: 25.74 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/8.068, allocations: 0 / 3.888 GB, free: 25.74 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001158/8.069, allocations: 0.8363 MB / 3.889 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/8.072, allocations: 482.2 kB / 3.89 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/8.083, allocations: 3.208 MB / 3.893 GB, free: 24.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/8.084, allocations: 1.342 MB / 3.894 GB, free: 24.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002499/8.087, allocations: 0.9778 MB / 3.895 GB, free: 24.07 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008886/8.087, allocations: 0.5546 MB / 3.896 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of SimCode: time 1.473e-06/8.087, allocations: 0 / 3.896 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1196/8.207, allocations: 70.43 MB / 3.964 GB, free: 8.676 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/8.207, allocations: 236.8 kB / 3.965 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.859/12.07, allocations: 0 / 3.965 GB, free: 8.363 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