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.001001/0.001001, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008062/0.000806, allocations: 91.56 kB / 292.1 MB, free: 5.988 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1721/0.1721, allocations: 45.17 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.539e-05/2.543e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 63.24 MB / 0.5115 GB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.929/6.038, allocations: 2.839 GB / 3.35 GB, free: 2.945 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/6.038, allocations: 81.41 kB / 3.351 GB, free: 2.867 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.954/7.992, allocations: 0.4968 GB / 3.847 GB, free: 65.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.653e-06/7.992, allocations: 0 / 3.847 GB, free: 65.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001015/7.992, allocations: 45.92 kB / 3.847 GB, free: 65.54 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.01036/8.002, allocations: 2.995 MB / 3.85 GB, free: 64.38 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/8.002, allocations: 14.22 kB / 3.85 GB, free: 64.38 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005037/8.003, allocations: 281.5 kB / 3.851 GB, free: 64.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004598/8.007, allocations: 0.703 MB / 3.851 GB, free: 64.22 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003771/8.011, allocations: 1.582 MB / 3.853 GB, free: 63.86 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/8.011, allocations: 171.3 kB / 3.853 GB, free: 63.85 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/8.012, allocations: 181.8 kB / 3.853 GB, free: 63.85 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005697/8.017, allocations: 3.521 MB / 3.857 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/8.017, allocations: 12.09 kB / 3.857 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002125/8.018, allocations: 82.3 kB / 3.857 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/8.018, allocations: 178.7 kB / 3.857 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005314/8.023, allocations: 3.327 MB / 3.86 GB, free: 63.38 MB / 0.5417 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.01497/8.038, allocations: 14.13 MB / 3.874 GB, free: 55.62 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003792/8.042, allocations: 2.146 MB / 3.876 GB, free: 55.49 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/8.043, allocations: 1.076 MB / 3.877 GB, free: 55.44 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.119/8.162, allocations: 70.62 MB / 3.946 GB, free: 24.45 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005515/8.168, allocations: 1.693 MB / 3.948 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 9.758e-06/8.168, allocations: 0 / 3.948 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.01853/8.186, allocations: 8.154 MB / 3.956 GB, free: 22.23 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/8.187, allocations: 277.3 kB / 3.956 GB, free: 21.91 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/8.188, allocations: 1.189 MB / 3.957 GB, free: 21.41 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001701/8.188, allocations: 57.7 kB / 3.957 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006383/8.189, allocations: 0.8281 MB / 3.958 GB, free: 20.59 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/8.19, allocations: 0.5933 MB / 3.959 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/8.19, allocations: 48 kB / 3.959 GB, free: 20.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000195/8.19, allocations: 390.7 kB / 3.959 GB, free: 19.64 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/8.192, allocations: 1.147 MB / 3.96 GB, free: 18.63 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/8.194, allocations: 1.694 MB / 3.962 GB, free: 16.87 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/8.195, allocations: 1.376 MB / 3.963 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/8.195, allocations: 4 kB / 3.963 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00518/8.201, allocations: 3.983 MB / 3.967 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002562/8.203, allocations: 6.272 MB / 3.973 GB, free: 5.574 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/8.203, allocations: 16 kB / 3.973 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/8.217, allocations: 3.464 MB / 3.976 GB, free: 2.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/8.218, allocations: 337.1 kB / 3.977 GB, free: 2.668 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007486/8.225, allocations: 4.02 MB / 3.981 GB, free: 15.92 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/8.228, allocations: 273.6 kB / 3.981 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/8.228, allocations: 110.5 kB / 3.981 GB, free: 15.61 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/8.228, allocations: 4 kB / 3.981 GB, free: 15.61 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006085/8.234, allocations: 3.583 MB / 3.985 GB, free: 12.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.273e-05/8.234, allocations: 20.22 kB / 3.985 GB, free: 12.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007998/8.242, allocations: 2.253 MB / 3.987 GB, free: 10.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/8.243, allocations: 374.9 kB / 3.987 GB, free: 10.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003875/8.247, allocations: 3.099 MB / 3.99 GB, free: 7.871 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/8.25, allocations: 266.4 kB / 3.99 GB, free: 7.668 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002656/8.25, allocations: 105.5 kB / 3.991 GB, free: 7.57 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) 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 () * 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.000705/8.251, allocations: 232.9 kB / 3.991 GB, free: 7.363 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/8.251, allocations: 162 kB / 3.991 GB, free: 7.203 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009987/8.261, allocations: 6.766 MB / 3.998 GB, free: 1.27 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.677e-05/8.261, allocations: 76.27 kB / 3.998 GB, free: 1.223 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/8.261, allocations: 3.75 kB / 3.998 GB, free: 1.223 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3372/8.598, allocations: 5.473 MB / 4.003 GB, free: 94.11 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/8.611, allocations: 9.477 MB / 4.012 GB, free: 93.63 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/8.611, allocations: 5.469 kB / 4.012 GB, free: 93.63 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/8.612, allocations: 436.1 kB / 4.013 GB, free: 93.63 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/8.614, allocations: 446.5 kB / 4.013 GB, free: 93.59 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001613/8.614, allocations: 64.55 kB / 4.013 GB, free: 93.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/8.616, allocations: 3.212 MB / 4.016 GB, free: 91.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/8.616, allocations: 5.234 kB / 4.016 GB, free: 91.01 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009366/8.625, allocations: 6.738 MB / 4.023 GB, free: 90.56 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/8.627, allocations: 0.7751 MB / 4.024 GB, free: 90.39 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003245/8.627, allocations: 55.11 kB / 4.024 GB, free: 90.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/8.629, allocations: 207.7 kB / 4.024 GB, free: 90.38 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/8.629, allocations: 181.2 kB / 4.024 GB, free: 90.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/8.629, allocations: 69.08 kB / 4.024 GB, free: 90.38 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001626/8.631, allocations: 1.221 MB / 4.025 GB, free: 90.26 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.7e-07/8.631, allocations: 0 / 4.025 GB, free: 90.26 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009365/8.64, allocations: 2.379 MB / 4.028 GB, free: 90.26 MB / 0.573 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 () * 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.01444/8.655, allocations: 9.571 MB / 4.037 GB, free: 88.78 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006817/8.662, allocations: 5.114 MB / 4.042 GB, free: 88.68 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/8.662, allocations: 0 / 4.042 GB, free: 88.68 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002611/8.664, allocations: 2.278 MB / 4.044 GB, free: 88.66 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003739/8.668, allocations: 0.7979 MB / 4.045 GB, free: 88.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/8.682, allocations: 6.834 MB / 4.052 GB, free: 87.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/8.684, allocations: 2.056 MB / 4.054 GB, free: 86.76 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003412/8.687, allocations: 1.616 MB / 4.055 GB, free: 86.74 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/8.688, allocations: 1.132 MB / 4.056 GB, free: 86.73 MB / 0.573 GB Notification: Performance of SimCode: time 8.62e-07/8.688, allocations: 2.625 kB / 4.056 GB, free: 86.73 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1451/8.833, allocations: 112.3 MB / 4.166 GB, free: 50.65 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/8.834, allocations: 235.3 kB / 4.166 GB, free: 50.34 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.856/13.69, allocations: 0 / 4.166 GB, free: 50.34 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