Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.00242/0.00242, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.102/2.102, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001119/0.001118, allocations: 82.66 kB / 267.5 MB, free: 14.11 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.391/0.391, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.435e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1185, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.534/8.653, allocations: 2.833 GB / 3.306 GB, free: 6.348 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/8.653, allocations: 79.12 kB / 3.306 GB, free: 6.312 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.942/11.6, allocations: 0.4914 GB / 3.798 GB, free: 61.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.814e-06/11.6, allocations: 0 / 3.798 GB, free: 61.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000185/11.6, allocations: 47.48 kB / 3.798 GB, free: 61.73 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.01551/11.61, allocations: 2.983 MB / 3.8 GB, free: 60.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/11.61, allocations: 9.562 kB / 3.8 GB, free: 60.5 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001302/11.61, allocations: 286.6 kB / 3.801 GB, free: 60.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007735/11.62, allocations: 0.7044 MB / 3.801 GB, free: 60.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006717/11.63, allocations: 1.588 MB / 3.803 GB, free: 59.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003216/11.63, allocations: 163.3 kB / 3.803 GB, free: 59.97 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/11.63, allocations: 177.6 kB / 3.803 GB, free: 59.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/11.64, allocations: 3.535 MB / 3.807 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.098e-05/11.64, allocations: 7.219 kB / 3.807 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000426/11.64, allocations: 74.91 kB / 3.807 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002387/11.64, allocations: 175.5 kB / 3.807 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01146/11.65, allocations: 3.333 MB / 3.81 GB, free: 59.49 MB / 0.5105 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.03116/11.68, allocations: 14.13 MB / 3.824 GB, free: 51.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007281/11.69, allocations: 2.149 MB / 3.826 GB, free: 50.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002799/11.69, allocations: 1.083 MB / 3.827 GB, free: 50.16 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1993/11.89, allocations: 63.64 MB / 3.889 GB, free: 23.92 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006164/11.9, allocations: 1.69 MB / 3.891 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=154): time 5.721e-06/11.9, allocations: 0 / 3.891 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.02937/11.93, allocations: 8.151 MB / 3.899 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001958/11.93, allocations: 274.3 kB / 3.899 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/11.93, allocations: 1.177 MB / 3.9 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006809/11.93, allocations: 57.7 kB / 3.9 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009136/11.93, allocations: 0.8134 MB / 3.901 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001173/11.93, allocations: 0.6052 MB / 3.902 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002886/11.93, allocations: 45.31 kB / 3.902 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002823/11.94, allocations: 399 kB / 3.902 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003151/11.94, allocations: 1.138 MB / 3.903 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004268/11.94, allocations: 1.702 MB / 3.905 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004246/11.95, allocations: 1.382 MB / 3.906 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.351e-05/11.95, allocations: 4 kB / 3.906 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01249/11.96, allocations: 3.894 MB / 3.91 GB, free: 5.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003213/11.96, allocations: 6.276 MB / 3.916 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.025e-05/11.96, allocations: 16 kB / 3.916 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02762/11.99, allocations: 3.466 MB / 3.92 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/11.99, allocations: 332.1 kB / 3.92 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/12, allocations: 3.816 MB / 3.924 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004429/12.01, allocations: 272.7 kB / 3.924 GB, free: 7.953 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005093/12.01, allocations: 107.4 kB / 3.924 GB, free: 7.859 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/12.01, allocations: 5.031 kB / 3.924 GB, free: 7.855 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01121/12.02, allocations: 3.587 MB / 3.928 GB, free: 4.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-05/12.02, allocations: 16 kB / 3.928 GB, free: 4.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01459/12.03, allocations: 2.185 MB / 3.93 GB, free: 3.039 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/12.04, allocations: 362.4 kB / 3.93 GB, free: 2.734 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007221/12.05, allocations: 3.099 MB / 3.933 GB, free: 32 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4008/12.45, allocations: 277.2 kB / 3.933 GB, free: 90.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007149/12.45, allocations: 101.1 kB / 3.934 GB, free: 90.53 MB / 0.5417 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.0008886/12.45, allocations: 242.1 kB / 3.934 GB, free: 90.42 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006177/12.45, allocations: 163 kB / 3.934 GB, free: 90.42 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/12.46, allocations: 6.755 MB / 3.941 GB, free: 90.04 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/12.46, allocations: 83.17 kB / 3.941 GB, free: 90.04 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/12.46, allocations: 6.5 kB / 3.941 GB, free: 90.04 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01234/12.48, allocations: 5.435 MB / 3.946 GB, free: 89.31 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02349/12.5, allocations: 9.474 MB / 3.955 GB, free: 88.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.131e-05/12.5, allocations: 3.375 kB / 3.955 GB, free: 88.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003931/12.5, allocations: 437 kB / 3.956 GB, free: 88.83 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002468/12.51, allocations: 447.1 kB / 3.956 GB, free: 88.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005874/12.51, allocations: 65.06 kB / 3.956 GB, free: 88.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/12.51, allocations: 3.208 MB / 3.959 GB, free: 86.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/12.51, allocations: 1.312 kB / 3.959 GB, free: 86.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/12.52, allocations: 6.741 MB / 3.966 GB, free: 85.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002544/12.53, allocations: 0.7768 MB / 3.967 GB, free: 85.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008204/12.53, allocations: 48.45 kB / 3.967 GB, free: 85.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003756/12.53, allocations: 211.8 kB / 3.967 GB, free: 85.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008317/12.53, allocations: 187.1 kB / 3.967 GB, free: 85.33 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/12.53, allocations: 69.83 kB / 3.967 GB, free: 85.33 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00285/12.54, allocations: 1.219 MB / 3.968 GB, free: 85.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.62e-07/12.54, allocations: 2.5 kB / 3.968 GB, free: 85.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01203/12.55, allocations: 2.368 MB / 3.971 GB, free: 85.21 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 () * 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.02668/12.57, allocations: 9.55 MB / 3.98 GB, free: 83.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01419/12.59, allocations: 5.075 MB / 3.985 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/12.59, allocations: 2.344 kB / 3.985 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005644/12.59, allocations: 2.268 MB / 3.987 GB, free: 83.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007456/12.6, allocations: 0.7972 MB / 3.988 GB, free: 83.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/12.62, allocations: 6.873 MB / 3.995 GB, free: 82.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002337/12.63, allocations: 2.054 MB / 3.997 GB, free: 81.65 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/12.63, allocations: 1.153 MB / 3.998 GB, free: 81.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.383e-06/12.63, allocations: 0 / 3.998 GB, free: 81.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.689/17.32, allocations: 99.96 MB / 4.095 GB, free: 48.29 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat