Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.002066/0.002066, allocations: 183.6 kB / 15.76 MB, free: 6.367 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.023/2.023, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001135/0.001135, allocations: 90.89 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2237/0.2237, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003607, allocations: 11.98 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1304, allocations: 58.86 MB / 490.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.845/6.975, allocations: 2.833 GB / 3.312 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/6.975, allocations: 80.45 kB / 3.312 GB, free: 4.602 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.098/9.073, allocations: 0.4925 GB / 3.805 GB, free: 60.48 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.034e-06/9.074, allocations: 0 / 3.805 GB, free: 60.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001141/9.074, allocations: 41.8 kB / 3.805 GB, free: 60.48 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01284/9.087, allocations: 3.192 MB / 3.808 GB, free: 59.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/9.087, allocations: 7.906 kB / 3.808 GB, free: 59.16 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009365/9.088, allocations: 284.7 kB / 3.808 GB, free: 59.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005097/9.093, allocations: 0.7171 MB / 3.809 GB, free: 59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004623/9.097, allocations: 1.585 MB / 3.81 GB, free: 58.63 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/9.097, allocations: 168.4 kB / 3.81 GB, free: 58.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004093/9.098, allocations: 184.8 kB / 3.811 GB, free: 58.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006728/9.105, allocations: 3.574 MB / 3.814 GB, free: 58.17 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/9.105, allocations: 14.42 kB / 3.814 GB, free: 58.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002368/9.105, allocations: 74.67 kB / 3.814 GB, free: 58.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/9.105, allocations: 172.3 kB / 3.814 GB, free: 58.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006909/9.112, allocations: 3.518 MB / 3.818 GB, free: 58.15 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.02207/9.134, allocations: 14.13 MB / 3.832 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005168/9.139, allocations: 2.274 MB / 3.834 GB, free: 49.17 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1135/9.253, allocations: 63.43 MB / 3.896 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005122/9.258, allocations: 1.728 MB / 3.897 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=154): time 8.576e-06/9.258, allocations: 0 / 3.897 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.02547/9.284, allocations: 9.448 MB / 3.907 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/9.284, allocations: 282.3 kB / 3.907 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/9.286, allocations: 1.193 MB / 3.908 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004925/9.287, allocations: 57.7 kB / 3.908 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009699/9.288, allocations: 0.8181 MB / 3.909 GB, free: 10.08 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009651/9.289, allocations: 0.6094 MB / 3.91 GB, free: 9.523 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/9.289, allocations: 44.12 kB / 3.91 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002557/9.289, allocations: 399.3 kB / 3.91 GB, free: 9.113 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002774/9.292, allocations: 1.282 MB / 3.911 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003145/9.295, allocations: 1.833 MB / 3.913 GB, free: 6.242 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/9.298, allocations: 1.505 MB / 3.914 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.439e-05/9.298, allocations: 8 kB / 3.915 GB, free: 4.934 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009749/9.308, allocations: 4.328 MB / 3.919 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00338/9.312, allocations: 6.272 MB / 3.925 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.629e-05/9.312, allocations: 19.95 kB / 3.925 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01648/9.328, allocations: 3.668 MB / 3.928 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/9.33, allocations: 336.3 kB / 3.929 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008723/9.339, allocations: 4.049 MB / 3.933 GB, free: 4.043 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003434/9.342, allocations: 279 kB / 3.933 GB, free: 3.832 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006354/9.343, allocations: 107.5 kB / 3.933 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/9.343, allocations: 4 kB / 3.933 GB, free: 3.73 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009738/9.353, allocations: 3.934 MB / 3.937 GB, free: 388 kB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.028e-05/9.353, allocations: 19.61 kB / 3.937 GB, free: 372 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3897/9.742, allocations: 2.511 MB / 3.939 GB, free: 89.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/9.744, allocations: 368.6 kB / 3.94 GB, free: 89.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00491/9.749, allocations: 3.341 MB / 3.943 GB, free: 88.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002816/9.752, allocations: 260.6 kB / 3.943 GB, free: 88.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/9.752, allocations: 102.5 kB / 3.943 GB, free: 88.95 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001787/9.754, allocations: 0.6975 MB / 3.944 GB, free: 88.76 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004451/9.754, allocations: 170.4 kB / 3.944 GB, free: 88.76 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/9.766, allocations: 6.844 MB / 3.951 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001116/9.766, allocations: 77.19 kB / 3.951 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/9.766, allocations: 1.844 kB / 3.951 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009328/9.775, allocations: 5.513 MB / 3.956 GB, free: 87.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01461/9.79, allocations: 9.566 MB / 3.966 GB, free: 87.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/9.79, allocations: 0 / 3.966 GB, free: 87.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/9.792, allocations: 441.2 kB / 3.966 GB, free: 87.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/9.794, allocations: 476.7 kB / 3.967 GB, free: 87.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/9.794, allocations: 63.45 kB / 3.967 GB, free: 87.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/9.795, allocations: 3.217 MB / 3.97 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/9.795, allocations: 3.719 kB / 3.97 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00919/9.804, allocations: 7.126 MB / 3.977 GB, free: 84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001958/9.806, allocations: 0.7841 MB / 3.978 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003021/9.807, allocations: 49.36 kB / 3.978 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/9.808, allocations: 209.8 kB / 3.978 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/9.809, allocations: 184.6 kB / 3.978 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/9.809, allocations: 68.23 kB / 3.978 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001711/9.81, allocations: 1.24 MB / 3.979 GB, free: 83.64 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/9.81, allocations: 2 kB / 3.979 GB, free: 83.64 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01054/9.821, allocations: 2.36 MB / 3.982 GB, free: 83.64 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02151/9.842, allocations: 9.928 MB / 3.991 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01103/9.854, allocations: 5.487 MB / 3.997 GB, free: 82.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/9.854, allocations: 0 / 3.997 GB, free: 82.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004063/9.858, allocations: 2.373 MB / 3.999 GB, free: 82.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/9.862, allocations: 0.8038 MB / 4 GB, free: 81.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/9.883, allocations: 21.18 MB / 4.02 GB, free: 66.91 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/9.885, allocations: 2.054 MB / 4.022 GB, free: 66.17 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003451/9.888, allocations: 1.449 MB / 4.024 GB, free: 66.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/9.89, allocations: 1.151 MB / 4.025 GB, free: 65.36 MB / 0.5417 GB Notification: Performance of SimCode: time 1.402e-06/9.89, allocations: 0 / 4.025 GB, free: 65.36 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1686/10.06, allocations: 107.1 MB / 4.129 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/10.06, allocations: 268.3 kB / 4.13 GB, free: 16.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.075/16.13, allocations: 0 / 4.13 GB, free: 16.91 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat