Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.2 MB / 245 MB, free: 7.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 95.62 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4511/0.4511, allocations: 45.24 MB / 394.7 MB, free: 31.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003056, allocations: 8 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5216/0.5219, allocations: 63.25 MB / 0.5193 GB, free: 43.64 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.764/8.286, allocations: 2.839 GB / 3.358 GB, free: 148 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/8.286, allocations: 87.8 kB / 3.358 GB, free: 148 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.024/10.31, allocations: 0.4979 GB / 3.856 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.018e-06/10.31, allocations: 3.75 kB / 3.856 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002179/10.31, allocations: 49.62 kB / 3.856 GB, free: 43.26 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.0185/10.33, allocations: 3.191 MB / 3.859 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/10.33, allocations: 7.594 kB / 3.859 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001816/10.33, allocations: 288.6 kB / 3.86 GB, free: 41.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006344/10.34, allocations: 0.7118 MB / 3.86 GB, free: 41.26 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00628/10.34, allocations: 1.59 MB / 3.862 GB, free: 40.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003104/10.34, allocations: 167.5 kB / 3.862 GB, free: 40.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/10.35, allocations: 180.7 kB / 3.862 GB, free: 40.37 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/10.36, allocations: 3.584 MB / 3.866 GB, free: 38.93 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/10.36, allocations: 11.69 kB / 3.866 GB, free: 38.92 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007173/10.36, allocations: 75.75 kB / 3.866 GB, free: 38.87 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002481/10.36, allocations: 172.5 kB / 3.866 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009442/10.37, allocations: 3.516 MB / 3.87 GB, free: 37.81 MB / 0.5417 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.0278/10.39, allocations: 14.13 MB / 3.883 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005664/10.4, allocations: 2.278 MB / 3.886 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5773/10.98, allocations: 70.43 MB / 3.954 GB, free: 50.57 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004343/10.98, allocations: 1.724 MB / 3.956 GB, free: 50.45 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 4.308e-06/10.98, allocations: 0 / 3.956 GB, free: 50.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.0194/11, allocations: 9.453 MB / 3.965 GB, free: 49.09 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/11, allocations: 281.4 kB / 3.965 GB, free: 48.78 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/11, allocations: 1.192 MB / 3.967 GB, free: 48.62 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000175/11, allocations: 57.11 kB / 3.967 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006109/11, allocations: 0.8243 MB / 3.968 GB, free: 48.28 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004894/11, allocations: 0.6006 MB / 3.968 GB, free: 47.98 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/11, allocations: 42.12 kB / 3.968 GB, free: 47.98 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001177/11, allocations: 393.4 kB / 3.969 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/11.01, allocations: 1.286 MB / 3.97 GB, free: 47.66 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/11.01, allocations: 1.83 MB / 3.972 GB, free: 47.04 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/11.01, allocations: 1.511 MB / 3.973 GB, free: 47.02 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/11.01, allocations: 7.781 kB / 3.973 GB, free: 47.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007792/11.02, allocations: 4.334 MB / 3.977 GB, free: 46.85 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001392/11.02, allocations: 6.272 MB / 3.983 GB, free: 40.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/11.02, allocations: 18.36 kB / 3.983 GB, free: 40.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0162/11.04, allocations: 3.672 MB / 3.987 GB, free: 40.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/11.04, allocations: 331.2 kB / 3.987 GB, free: 40.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006907/11.05, allocations: 4.064 MB / 3.991 GB, free: 39.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002821/11.05, allocations: 271.1 kB / 3.992 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/11.05, allocations: 105.8 kB / 3.992 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/11.05, allocations: 6.625 kB / 3.992 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009226/11.06, allocations: 3.938 MB / 3.996 GB, free: 39.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.672e-05/11.06, allocations: 16.69 kB / 3.996 GB, free: 39.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/11.07, allocations: 2.429 MB / 3.998 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00195/11.07, allocations: 364.5 kB / 3.998 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00594/11.08, allocations: 3.345 MB / 4.002 GB, free: 39.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/11.08, allocations: 269.3 kB / 4.002 GB, free: 39.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003917/11.08, allocations: 103.5 kB / 4.002 GB, free: 39.04 MB / 0.5573 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.001986/11.08, allocations: 0.6976 MB / 4.003 GB, free: 38.85 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006442/11.08, allocations: 168.2 kB / 4.003 GB, free: 38.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/11.09, allocations: 6.86 MB / 4.009 GB, free: 38.28 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.989e-05/11.09, allocations: 77.44 kB / 4.009 GB, free: 38.28 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/11.09, allocations: 3.312 kB / 4.009 GB, free: 38.28 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007826/11.1, allocations: 5.5 MB / 4.015 GB, free: 37.58 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/11.12, allocations: 9.571 MB / 4.024 GB, free: 36.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/11.12, allocations: 0 / 4.024 GB, free: 36.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/11.12, allocations: 444.9 kB / 4.025 GB, free: 36.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/11.12, allocations: 474 kB / 4.025 GB, free: 36.91 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002208/11.12, allocations: 63.89 kB / 4.025 GB, free: 36.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/11.12, allocations: 3.207 MB / 4.028 GB, free: 34.31 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/11.12, allocations: 15.92 kB / 4.028 GB, free: 34.31 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/11.13, allocations: 7.131 MB / 4.035 GB, free: 33.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/11.14, allocations: 0.7686 MB / 4.036 GB, free: 33.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00075/11.14, allocations: 48.77 kB / 4.036 GB, free: 33.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002442/11.14, allocations: 216.7 kB / 4.036 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000434/11.14, allocations: 186.6 kB / 4.036 GB, free: 33.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/11.14, allocations: 66.28 kB / 4.036 GB, free: 33.12 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002565/11.14, allocations: 1.244 MB / 4.038 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.81e-07/11.14, allocations: 0 / 4.038 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01218/11.16, allocations: 2.387 MB / 4.04 GB, free: 32.39 MB / 0.5573 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.02355/11.18, allocations: 9.95 MB / 4.05 GB, free: 28.37 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01251/11.19, allocations: 5.497 MB / 4.055 GB, free: 26.67 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/11.19, allocations: 0 / 4.055 GB, free: 26.67 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004283/11.2, allocations: 2.369 MB / 4.057 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004714/11.2, allocations: 0.7881 MB / 4.058 GB, free: 25.61 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0311/11.23, allocations: 21.2 MB / 4.079 GB, free: 8.949 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003205/11.24, allocations: 2.049 MB / 4.081 GB, free: 8.07 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005074/11.24, allocations: 1.456 MB / 4.082 GB, free: 7.992 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/11.24, allocations: 1.145 MB / 4.083 GB, free: 7.062 MB / 0.5573 GB Notification: Performance of SimCode: time 1.874e-06/11.24, allocations: 0 / 4.083 GB, free: 7.062 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6297/11.87, allocations: 109.3 MB / 4.19 GB, free: 77.18 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/11.87, allocations: 268 kB / 4.19 GB, free: 76.82 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/18.83, allocations: 3.625 kB / 4.19 GB, free: 76.82 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat