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.001358/0.001358, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007809/0.0007809, allocations: 99.52 kB / 281.6 MB, free: 5.328 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.295/0.295, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.844e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.705/8.819, allocations: 2.828 GB / 3.323 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/8.82, allocations: 84.62 kB / 3.323 GB, free: 69.38 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.006/10.83, allocations: 466.7 MB / 3.779 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.194e-06/10.83, allocations: 4 kB / 3.779 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.826e-05/10.83, allocations: 24 kB / 3.779 GB, free: 38.8 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.009516/10.84, allocations: 2.148 MB / 3.781 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/10.84, allocations: 11.98 kB / 3.781 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002621/10.84, allocations: 375.7 kB / 3.782 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002158/10.84, allocations: 0.8878 MB / 3.782 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.703e-05/10.84, allocations: 39.75 kB / 3.782 GB, free: 35.72 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/10.84, allocations: 44 kB / 3.783 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00149/10.84, allocations: 0.9183 MB / 3.783 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/10.84, allocations: 1.086 MB / 3.784 GB, free: 33.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/10.84, allocations: 8 kB / 3.784 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.53e-05/10.84, allocations: 0 / 3.784 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.089e-05/10.84, allocations: 64.92 kB / 3.785 GB, free: 33.79 MB / 0.5261 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.6763/11.52, allocations: 101.2 MB / 3.883 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008244/11.52, allocations: 474.4 kB / 3.884 GB, free: 31.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/11.52, allocations: 278.8 kB / 3.884 GB, free: 31.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03132/11.55, allocations: 16.77 MB / 3.901 GB, free: 36.17 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.396e-05/11.55, allocations: 44.11 kB / 3.901 GB, free: 36.13 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 3.597e-06/11.55, allocations: 0 / 3.901 GB, free: 36.13 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.007142/11.56, allocations: 2.285 MB / 3.903 GB, free: 35.75 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.837e-05/11.56, allocations: 132.3 kB / 3.903 GB, free: 35.59 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007886/11.56, allocations: 0.5594 MB / 3.903 GB, free: 35.46 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.291e-05/11.56, allocations: 25.7 kB / 3.903 GB, free: 35.43 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/11.56, allocations: 479.2 kB / 3.904 GB, free: 35.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000132/11.56, allocations: 154.2 kB / 3.904 GB, free: 35.15 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.506e-05/11.56, allocations: 0 / 3.904 GB, free: 35.15 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001749/11.56, allocations: 380.9 kB / 3.904 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004571/11.56, allocations: 327.8 kB / 3.905 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/11.56, allocations: 0.5145 MB / 3.905 GB, free: 34.6 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/11.56, allocations: 0.6094 MB / 3.906 GB, free: 34.59 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/11.56, allocations: 4 kB / 3.906 GB, free: 34.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002932/11.57, allocations: 1.332 MB / 3.907 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009388/11.57, allocations: 2.269 MB / 3.909 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/11.57, allocations: 4.562 kB / 3.909 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/11.57, allocations: 486.3 kB / 3.91 GB, free: 32.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005786/11.57, allocations: 161.9 kB / 3.91 GB, free: 32.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/11.57, allocations: 1.359 MB / 3.911 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/11.57, allocations: 120.5 kB / 3.911 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.273e-05/11.57, allocations: 41.98 kB / 3.911 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/11.57, allocations: 3.938 kB / 3.911 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002698/11.58, allocations: 1.131 MB / 3.913 GB, free: 31.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/11.58, allocations: 10.97 kB / 3.913 GB, free: 31.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/11.58, allocations: 384.5 kB / 3.913 GB, free: 31.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/11.58, allocations: 168.9 kB / 3.913 GB, free: 31.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/11.58, allocations: 1.074 MB / 3.914 GB, free: 30.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/11.58, allocations: 97.73 kB / 3.914 GB, free: 30.96 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.677e-05/11.58, allocations: 37.97 kB / 3.914 GB, free: 30.96 MB / 0.5573 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.000328/11.58, allocations: 132.1 kB / 3.914 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001922/11.58, allocations: 0.7374 MB / 3.915 GB, free: 30.76 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/11.58, allocations: 70.38 kB / 3.915 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/11.59, allocations: 1.871 MB / 3.917 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.501e-05/11.59, allocations: 25.28 kB / 3.917 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/11.59, allocations: 4 kB / 3.917 GB, free: 30.56 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002158/11.59, allocations: 1.784 MB / 3.919 GB, free: 30.13 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/11.59, allocations: 2.847 MB / 3.922 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/11.59, allocations: 3.625 kB / 3.922 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/11.59, allocations: 119.3 kB / 3.922 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002576/11.59, allocations: 93.33 kB / 3.922 GB, free: 29.75 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/11.59, allocations: 7.875 kB / 3.922 GB, free: 29.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004827/11.59, allocations: 0.671 MB / 3.922 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/11.59, allocations: 6.688 kB / 3.922 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/11.6, allocations: 1.97 MB / 3.924 GB, free: 28.89 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/11.6, allocations: 261 kB / 3.925 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/11.6, allocations: 3.062 kB / 3.925 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/11.6, allocations: 66.03 kB / 3.925 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/11.6, allocations: 46.64 kB / 3.925 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/11.6, allocations: 17.44 kB / 3.925 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005762/11.6, allocations: 427.4 kB / 3.925 GB, free: 28.64 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.81e-07/11.6, allocations: 0 / 3.925 GB, free: 28.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007647/11.61, allocations: 1.636 MB / 3.927 GB, free: 28.64 MB / 0.5573 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.01493/11.62, allocations: 4.763 MB / 3.931 GB, free: 27.36 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003152/11.62, allocations: 1.404 MB / 3.933 GB, free: 27.33 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/11.62, allocations: 4.188 kB / 3.933 GB, free: 27.32 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009942/11.63, allocations: 0.5827 MB / 3.933 GB, free: 27.32 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/11.63, allocations: 319.3 kB / 3.934 GB, free: 27.31 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009518/11.64, allocations: 2.463 MB / 3.936 GB, free: 26.69 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/11.64, allocations: 1.183 MB / 3.937 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002222/11.64, allocations: 1.073 MB / 3.938 GB, free: 25.94 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006401/11.64, allocations: 397.1 kB / 3.939 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of SimCode: time 1.793e-06/11.64, allocations: 0 / 3.939 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/11.76, allocations: 53.83 MB / 3.991 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/11.76, allocations: 183.2 kB / 3.991 GB, free: 14.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.934/15.69, allocations: 4 kB / 3.991 GB, free: 14.59 MB / 0.5573 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