Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",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.002367/0.002367, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.125/2.125, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001213/0.001212, allocations: 92.16 kB / 270.9 MB, free: 8.355 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.5325/0.5325, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004948/0.0004949, allocations: 16 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1413, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.001/9.142, allocations: 2.824 GB / 3.303 GB, free: 90.76 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/9.143, allocations: 80.59 kB / 3.303 GB, free: 90.72 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.338/11.48, allocations: 467.3 MB / 3.76 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.274e-06/11.48, allocations: 0 / 3.76 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.424e-05/11.48, allocations: 23.08 kB / 3.76 GB, free: 33.91 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01047/11.49, allocations: 2.268 MB / 3.762 GB, free: 32.58 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/11.49, allocations: 12 kB / 3.762 GB, free: 32.58 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004148/11.49, allocations: 126.3 kB / 3.762 GB, free: 32.47 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003754/11.5, allocations: 366.7 kB / 3.762 GB, free: 32.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003213/11.5, allocations: 0.9049 MB / 3.763 GB, free: 31.43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.35e-05/11.5, allocations: 68.03 kB / 3.763 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/11.5, allocations: 77.19 kB / 3.763 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004866/11.5, allocations: 1.478 MB / 3.765 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.273e-05/11.5, allocations: 7.938 kB / 3.765 GB, free: 30.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/11.5, allocations: 36.61 kB / 3.765 GB, free: 29.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/11.5, allocations: 52.23 kB / 3.765 GB, free: 29.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005221/11.51, allocations: 1.347 MB / 3.766 GB, free: 28.86 MB / 0.5105 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.01215/11.52, allocations: 6.554 MB / 3.773 GB, free: 22.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00446/11.53, allocations: 1.028 MB / 3.774 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5096/12.04, allocations: 32.01 MB / 3.805 GB, free: 40.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.108e-05/12.04, allocations: 45.39 kB / 3.805 GB, free: 40.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 4.158e-06/12.04, allocations: 0 / 3.805 GB, free: 40.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.01467/12.05, allocations: 3.349 MB / 3.808 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/12.05, allocations: 186.6 kB / 3.808 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/12.05, allocations: 0.6473 MB / 3.809 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002433/12.05, allocations: 38.17 kB / 3.809 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003532/12.05, allocations: 429.9 kB / 3.809 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000313/12.05, allocations: 209 kB / 3.81 GB, free: 39.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/12.05, allocations: 19.53 kB / 3.81 GB, free: 39.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001093/12.05, allocations: 340.8 kB / 3.81 GB, free: 38.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/12.06, allocations: 419.2 kB / 3.81 GB, free: 38.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/12.06, allocations: 0.623 MB / 3.811 GB, free: 38.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/12.06, allocations: 491.1 kB / 3.811 GB, free: 38.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/12.06, allocations: 3.312 kB / 3.811 GB, free: 38.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004418/12.06, allocations: 1.314 MB / 3.813 GB, free: 38.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005955/12.06, allocations: 2.277 MB / 3.815 GB, free: 36.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/12.06, allocations: 8.188 kB / 3.815 GB, free: 36.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005807/12.07, allocations: 0.6966 MB / 3.816 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/12.07, allocations: 157.5 kB / 3.816 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/12.07, allocations: 1.304 MB / 3.817 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/12.08, allocations: 103.3 kB / 3.817 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/12.08, allocations: 41.5 kB / 3.817 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/12.08, allocations: 3.125 kB / 3.817 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004549/12.08, allocations: 1.231 MB / 3.818 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/12.08, allocations: 8.891 kB / 3.818 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/12.08, allocations: 420.2 kB / 3.819 GB, free: 35.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/12.09, allocations: 169.1 kB / 3.819 GB, free: 35.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/12.09, allocations: 1.099 MB / 3.82 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/12.09, allocations: 106.8 kB / 3.82 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/12.09, allocations: 38.2 kB / 3.82 GB, free: 35.14 MB / 0.5105 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.000822/12.09, allocations: 366.7 kB / 3.821 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003563/12.09, allocations: 90.55 kB / 3.821 GB, free: 34.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006618/12.1, allocations: 3.349 MB / 3.824 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-05/12.1, allocations: 38.48 kB / 3.824 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/12.1, allocations: 3.875 kB / 3.824 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005128/12.1, allocations: 2.793 MB / 3.827 GB, free: 34.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009239/12.11, allocations: 4.597 MB / 3.831 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/12.11, allocations: 1.969 kB / 3.831 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/12.11, allocations: 176.6 kB / 3.831 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/12.11, allocations: 100 kB / 3.831 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-05/12.11, allocations: 21.28 kB / 3.831 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005066/12.11, allocations: 0.6508 MB / 3.832 GB, free: 33.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/12.11, allocations: 0 / 3.832 GB, free: 33.17 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006747/12.12, allocations: 2.963 MB / 3.835 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/12.12, allocations: 454.6 kB / 3.835 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004069/12.12, allocations: 20.02 kB / 3.835 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/12.12, allocations: 92.02 kB / 3.835 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/12.12, allocations: 63.86 kB / 3.836 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.382e-05/12.12, allocations: 25.22 kB / 3.836 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001691/12.13, allocations: 0.7988 MB / 3.836 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/12.13, allocations: 2.375 kB / 3.836 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008999/12.14, allocations: 1.733 MB / 3.838 GB, free: 32.39 MB / 0.5105 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.01969/12.16, allocations: 5.519 MB / 3.843 GB, free: 31.14 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00611/12.16, allocations: 1.868 MB / 3.845 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/12.16, allocations: 0.9688 kB / 3.845 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002496/12.16, allocations: 0.9085 MB / 3.846 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004838/12.17, allocations: 475.1 kB / 3.847 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/12.18, allocations: 8.93 MB / 3.855 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/12.19, allocations: 1.331 MB / 3.857 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/12.19, allocations: 0.5679 MB / 3.857 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of SimCode: time 1.482e-06/12.19, allocations: 3.094 kB / 3.857 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.279/16.47, allocations: 50.91 MB / 3.907 GB, free: 20.59 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat