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.001474/0.001473, allocations: 178.8 kB / 8.363 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 92.17 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2993/0.2993, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.983e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.406, allocations: 58.85 MB / 477.2 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.903/9.309, allocations: 2.824 GB / 3.29 GB, free: 102.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/9.31, allocations: 83.78 kB / 3.29 GB, free: 102.4 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.329/11.64, allocations: 461.5 MB / 3.74 GB, free: 46.38 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.744e-06/11.64, allocations: 0 / 3.74 GB, free: 46.38 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0001009/11.64, allocations: 25.38 kB / 3.74 GB, free: 46.37 MB / 0.4952 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.009943/11.65, allocations: 2.155 MB / 3.743 GB, free: 45.13 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/11.65, allocations: 11.25 kB / 3.743 GB, free: 45.13 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003817/11.65, allocations: 381 kB / 3.743 GB, free: 45.05 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003173/11.66, allocations: 0.8785 MB / 3.744 GB, free: 44.57 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-05/11.66, allocations: 33.47 kB / 3.744 GB, free: 44.56 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/11.66, allocations: 47 kB / 3.744 GB, free: 44.56 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002268/11.66, allocations: 0.9262 MB / 3.745 GB, free: 44.23 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/11.66, allocations: 1.086 MB / 3.746 GB, free: 43.68 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.083e-05/11.66, allocations: 7.781 kB / 3.746 GB, free: 43.67 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/11.66, allocations: 3.875 kB / 3.746 GB, free: 43.67 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/11.66, allocations: 56.69 kB / 3.746 GB, free: 43.66 MB / 0.4952 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.7203/12.38, allocations: 101.2 MB / 3.845 GB, free: 75.82 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/12.38, allocations: 479.9 kB / 3.845 GB, free: 75.79 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/12.38, allocations: 272.6 kB / 3.845 GB, free: 75.79 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05567/12.44, allocations: 16.77 MB / 3.862 GB, free: 65.47 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/12.44, allocations: 39.19 kB / 3.862 GB, free: 65.43 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=42): time 5.28e-06/12.44, allocations: 0.9375 kB / 3.862 GB, free: 65.43 MB / 0.5265 GB Notification: Performance of matching and sorting (n=46): time 0.01132/12.45, allocations: 2.277 MB / 3.864 GB, free: 65.07 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/12.45, allocations: 133.3 kB / 3.864 GB, free: 64.91 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/12.45, allocations: 0.5655 MB / 3.865 GB, free: 64.79 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0001284/12.45, allocations: 25.7 kB / 3.865 GB, free: 64.76 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/12.45, allocations: 0.4932 MB / 3.865 GB, free: 64.49 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/12.45, allocations: 157.9 kB / 3.865 GB, free: 64.41 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.539e-05/12.45, allocations: 0 / 3.865 GB, free: 64.41 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 9.239e-05/12.45, allocations: 338.8 kB / 3.866 GB, free: 64.1 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007263/12.45, allocations: 327.9 kB / 3.866 GB, free: 64.1 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008821/12.45, allocations: 0.5229 MB / 3.867 GB, free: 63.87 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006863/12.46, allocations: 0.9506 MB / 3.868 GB, free: 63.87 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/12.46, allocations: 0 / 3.868 GB, free: 63.87 MB / 0.5265 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.008885/12.47, allocations: 1.641 MB / 3.869 GB, free: 63.8 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.000532/12.47, allocations: 2.264 MB / 3.871 GB, free: 61.45 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/12.47, allocations: 7.062 kB / 3.871 GB, free: 61.45 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002815/12.47, allocations: 480 kB / 3.872 GB, free: 61.44 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/12.48, allocations: 162.3 kB / 3.872 GB, free: 61.44 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/12.48, allocations: 1.352 MB / 3.873 GB, free: 60.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/12.48, allocations: 120.5 kB / 3.873 GB, free: 60.91 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/12.48, allocations: 36.78 kB / 3.873 GB, free: 60.91 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/12.48, allocations: 9.812 kB / 3.873 GB, free: 60.91 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008538/12.49, allocations: 1.475 MB / 3.875 GB, free: 60.89 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/12.49, allocations: 9.453 kB / 3.875 GB, free: 60.89 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/12.49, allocations: 369.8 kB / 3.875 GB, free: 60.88 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/12.49, allocations: 175.3 kB / 3.875 GB, free: 60.88 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/12.49, allocations: 1.07 MB / 3.876 GB, free: 60.35 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/12.5, allocations: 96.73 kB / 3.877 GB, free: 60.34 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/12.5, allocations: 41.73 kB / 3.877 GB, free: 60.34 MB / 0.5265 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,pipe.statesFM[2].phase,sink.medium.phase,source.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.000324/12.5, allocations: 127.5 kB / 3.877 GB, free: 60.23 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002951/12.5, allocations: 0.7386 MB / 3.877 GB, free: 60.15 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/12.5, allocations: 68.06 kB / 3.877 GB, free: 60.11 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004182/12.5, allocations: 1.863 MB / 3.879 GB, free: 59.96 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/12.5, allocations: 27.84 kB / 3.879 GB, free: 59.96 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/12.5, allocations: 2.75 kB / 3.879 GB, free: 59.96 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00331/12.51, allocations: 1.782 MB / 3.881 GB, free: 59.54 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006571/12.51, allocations: 2.849 MB / 3.884 GB, free: 59.17 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/12.51, allocations: 3.938 kB / 3.884 GB, free: 59.17 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000927/12.51, allocations: 114.7 kB / 3.884 GB, free: 59.17 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004336/12.51, allocations: 89.2 kB / 3.884 GB, free: 59.16 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.068e-05/12.51, allocations: 15.03 kB / 3.884 GB, free: 59.16 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005515/12.52, allocations: 0.6705 MB / 3.885 GB, free: 58.64 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/12.52, allocations: 7.062 kB / 3.885 GB, free: 58.64 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004278/12.52, allocations: 1.979 MB / 3.887 GB, free: 58.3 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007876/12.52, allocations: 257.3 kB / 3.887 GB, free: 58.15 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/12.52, allocations: 5.375 kB / 3.887 GB, free: 58.15 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/12.52, allocations: 61.55 kB / 3.887 GB, free: 58.15 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/12.52, allocations: 42.69 kB / 3.887 GB, free: 58.15 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.97e-05/12.52, allocations: 22.23 kB / 3.887 GB, free: 58.15 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.0008047/12.52, allocations: 428 kB / 3.887 GB, free: 58.06 MB / 0.5265 GB Notification: Performance of sort global known variables: time 6.51e-07/12.52, allocations: 0 / 3.887 GB, free: 58.06 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.008387/12.53, allocations: 1.637 MB / 3.889 GB, free: 58.06 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01746/12.55, allocations: 4.745 MB / 3.894 GB, free: 56.87 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.003396/12.55, allocations: 1.383 MB / 3.895 GB, free: 56.85 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/12.55, allocations: 0 / 3.895 GB, free: 56.85 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.001293/12.55, allocations: 0.5893 MB / 3.896 GB, free: 56.84 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/12.56, allocations: 321.5 kB / 3.896 GB, free: 56.83 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009671/12.57, allocations: 2.481 MB / 3.898 GB, free: 56.24 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007573/12.57, allocations: 1.16 MB / 3.899 GB, free: 55.54 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008614/12.57, allocations: 409.8 kB / 3.9 GB, free: 55.54 MB / 0.5265 GB Notification: Performance of SimCode: time 1.052e-06/12.57, allocations: 0 / 3.9 GB, free: 55.54 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.048/16.62, allocations: 46.9 MB / 3.946 GB, free: 51.47 MB / 0.5265 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