Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",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.002342/0.002341, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.00114/0.00114, allocations: 104.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5926/0.5926, allocations: 43.55 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004659/0.0004658, allocations: 20 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1322, allocations: 58.83 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.83/8.963, allocations: 2.822 GB / 3.301 GB, free: 3.578 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/8.963, allocations: 80.53 kB / 3.301 GB, free: 3.539 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.076/13.04, allocations: 0.7464 GB / 4.047 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.053e-06/13.04, allocations: 0 / 4.047 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001442/13.04, allocations: 35.48 kB / 4.047 GB, free: 27.27 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01393/13.05, allocations: 2.917 MB / 4.05 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/13.05, allocations: 11.31 kB / 4.05 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006646/13.05, allocations: 160.3 kB / 4.05 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004932/13.06, allocations: 474.2 kB / 4.051 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004048/13.06, allocations: 1.144 MB / 4.052 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/13.06, allocations: 144.7 kB / 4.052 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/13.06, allocations: 98.09 kB / 4.052 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006179/13.07, allocations: 1.888 MB / 4.054 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-05/13.07, allocations: 7.875 kB / 4.054 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/13.07, allocations: 42.06 kB / 4.054 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001512/13.07, allocations: 76.2 kB / 4.054 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006467/13.08, allocations: 1.779 MB / 4.056 GB, free: 23.14 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.01746/13.09, allocations: 8.544 MB / 4.064 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005178/13.1, allocations: 1.396 MB / 4.065 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.651/13.75, allocations: 63.26 MB / 4.127 GB, free: 59.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004018/13.75, allocations: 0.8909 MB / 4.128 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=82): time 5.19e-06/13.75, allocations: 0 / 4.128 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=86): time 0.02092/13.78, allocations: 4.625 MB / 4.133 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/13.78, allocations: 403.3 kB / 4.133 GB, free: 57.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002096/13.78, allocations: 0.9369 MB / 4.134 GB, free: 57.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003282/13.78, allocations: 43.08 kB / 4.134 GB, free: 57.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005464/13.78, allocations: 0.564 MB / 4.134 GB, free: 57.04 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/13.78, allocations: 300.8 kB / 4.135 GB, free: 56.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/13.78, allocations: 26.59 kB / 4.135 GB, free: 56.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001234/13.78, allocations: 359.4 kB / 4.135 GB, free: 56.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/13.78, allocations: 0.5359 MB / 4.136 GB, free: 56.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/13.78, allocations: 1.008 MB / 4.137 GB, free: 56.02 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/13.79, allocations: 0.7015 MB / 4.137 GB, free: 56.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.717e-05/13.79, allocations: 6.719 kB / 4.137 GB, free: 56.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006351/13.79, allocations: 1.869 MB / 4.139 GB, free: 55.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001311/13.79, allocations: 5.408 MB / 4.144 GB, free: 50.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-05/13.79, allocations: 13.23 kB / 4.144 GB, free: 50.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/13.81, allocations: 1.132 MB / 4.145 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/13.81, allocations: 250.7 kB / 4.146 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/13.81, allocations: 1.491 MB / 4.147 GB, free: 49.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002749/13.81, allocations: 129.2 kB / 4.147 GB, free: 49.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004551/13.81, allocations: 73.39 kB / 4.147 GB, free: 49.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/13.81, allocations: 2.594 kB / 4.147 GB, free: 49.76 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006469/13.82, allocations: 1.685 MB / 4.149 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.716e-05/13.82, allocations: 11.53 kB / 4.149 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/13.82, allocations: 372.4 kB / 4.149 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/13.83, allocations: 282.3 kB / 4.15 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/13.83, allocations: 1.055 MB / 4.151 GB, free: 49.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/13.83, allocations: 127.8 kB / 4.151 GB, free: 49.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002499/13.83, allocations: 69.38 kB / 4.151 GB, free: 49.18 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.001432/13.83, allocations: 476.3 kB / 4.151 GB, free: 49 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004713/13.83, allocations: 127.7 kB / 4.151 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008797/13.84, allocations: 4.056 MB / 4.155 GB, free: 48.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.993e-05/13.84, allocations: 45.5 kB / 4.155 GB, free: 48.59 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/13.84, allocations: 3.844 kB / 4.155 GB, free: 48.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.974e-05/13.84, allocations: 5.859 kB / 4.155 GB, free: 48.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/13.85, allocations: 5.542 MB / 4.161 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/13.85, allocations: 4.312 kB / 4.161 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/13.85, allocations: 174 kB / 4.161 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/13.87, allocations: 1.564 MB / 4.163 GB, free: 47.95 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000267/13.87, allocations: 25.97 kB / 4.163 GB, free: 47.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/13.87, allocations: 2.096 MB / 4.165 GB, free: 46.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/13.87, allocations: 2.969 kB / 4.165 GB, free: 46.89 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008539/13.88, allocations: 3.987 MB / 4.169 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/13.88, allocations: 0.5385 MB / 4.169 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000591/13.88, allocations: 23.58 kB / 4.169 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/13.88, allocations: 94.33 kB / 4.169 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/13.88, allocations: 82.33 kB / 4.169 GB, free: 46.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/13.88, allocations: 33.38 kB / 4.169 GB, free: 46.08 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002539/13.88, allocations: 1.055 MB / 4.17 GB, free: 45.97 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.92e-07/13.88, allocations: 2.188 kB / 4.17 GB, free: 45.97 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01126/13.9, allocations: 2.061 MB / 4.172 GB, free: 45.88 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02335/13.92, allocations: 6.799 MB / 4.179 GB, free: 44.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009387/13.93, allocations: 2.46 MB / 4.181 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/13.93, allocations: 3.625 kB / 4.181 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003175/13.93, allocations: 1.046 MB / 4.182 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006205/13.94, allocations: 0.6275 MB / 4.183 GB, free: 44.11 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/13.96, allocations: 15.47 MB / 4.198 GB, free: 32.11 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/13.96, allocations: 1.472 MB / 4.2 GB, free: 31.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001814/13.96, allocations: 0.7232 MB / 4.2 GB, free: 31.38 MB / 0.5417 GB Notification: Performance of SimCode: time 2.625e-06/13.96, allocations: 0 / 4.2 GB, free: 31.38 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.461/18.42, allocations: 65.53 MB / 4.264 GB, free: 26.78 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat