Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.598/1.598, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008729/0.0008729, allocations: 106.9 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3816/0.3816, allocations: 45.23 MB / 394.7 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002616, allocations: 12.2 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3602, allocations: 63.25 MB / 0.5193 GB, free: 43.69 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.84/7.201, allocations: 2.828 GB / 3.347 GB, free: 79.85 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/7.201, allocations: 86.17 kB / 3.347 GB, free: 79.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.25/10.45, allocations: 0.7535 GB / 4.101 GB, free: 38.93 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.033e-06/10.45, allocations: 0 / 4.101 GB, free: 38.93 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001327/10.45, allocations: 35.72 kB / 4.101 GB, free: 38.93 MB / 0.5573 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.01087/10.46, allocations: 2.93 MB / 4.103 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/10.46, allocations: 8.844 kB / 4.103 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005348/10.46, allocations: 155.8 kB / 4.104 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003453/10.47, allocations: 484 kB / 4.104 GB, free: 37.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/10.47, allocations: 1.142 MB / 4.105 GB, free: 37.38 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/10.47, allocations: 143.5 kB / 4.105 GB, free: 37.32 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/10.47, allocations: 101 kB / 4.105 GB, free: 37.31 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004064/10.47, allocations: 1.891 MB / 4.107 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/10.47, allocations: 5.938 kB / 4.107 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/10.47, allocations: 45.5 kB / 4.107 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/10.47, allocations: 75.61 kB / 4.107 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004303/10.48, allocations: 1.778 MB / 4.109 GB, free: 36.96 MB / 0.5573 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.01245/10.49, allocations: 8.532 MB / 4.117 GB, free: 32.07 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003446/10.49, allocations: 1.408 MB / 4.119 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1279/10.62, allocations: 70.25 MB / 4.187 GB, free: 17.58 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003006/10.63, allocations: 0.8898 MB / 4.188 GB, free: 33.44 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=82): time 3.266e-06/10.63, allocations: 7.125 kB / 4.188 GB, free: 33.44 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86): time 0.01117/10.64, allocations: 4.629 MB / 4.193 GB, free: 32.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002229/10.64, allocations: 399 kB / 4.193 GB, free: 31.74 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/10.64, allocations: 0.9342 MB / 4.194 GB, free: 31.58 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.874e-05/10.64, allocations: 40.58 kB / 4.194 GB, free: 31.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/10.64, allocations: 0.5599 MB / 4.195 GB, free: 31.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/10.64, allocations: 309 kB / 4.195 GB, free: 31.11 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.77e-05/10.64, allocations: 26.31 kB / 4.195 GB, free: 31.11 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001447/10.64, allocations: 362.3 kB / 4.195 GB, free: 30.79 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/10.64, allocations: 0.5348 MB / 4.196 GB, free: 30.79 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/10.64, allocations: 1.006 MB / 4.197 GB, free: 30.21 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/10.64, allocations: 0.6972 MB / 4.198 GB, free: 30.18 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/10.64, allocations: 5.906 kB / 4.198 GB, free: 30.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003546/10.65, allocations: 1.936 MB / 4.199 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.002402/10.65, allocations: 5.401 MB / 4.205 GB, free: 24.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/10.65, allocations: 13.78 kB / 4.205 GB, free: 24.37 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005897/10.65, allocations: 1.136 MB / 4.206 GB, free: 24.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/10.66, allocations: 241.4 kB / 4.206 GB, free: 24.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/10.66, allocations: 1.506 MB / 4.208 GB, free: 23.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/10.66, allocations: 129.6 kB / 4.208 GB, free: 23.76 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/10.66, allocations: 70.16 kB / 4.208 GB, free: 23.76 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/10.66, allocations: 3.75 kB / 4.208 GB, free: 23.76 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002966/10.66, allocations: 1.677 MB / 4.209 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/10.66, allocations: 19.34 kB / 4.209 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/10.66, allocations: 386.2 kB / 4.21 GB, free: 23.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009699/10.66, allocations: 277.8 kB / 4.21 GB, free: 23.69 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/10.67, allocations: 1.061 MB / 4.211 GB, free: 23.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/10.67, allocations: 126.5 kB / 4.211 GB, free: 23.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/10.67, allocations: 71.62 kB / 4.211 GB, free: 23.14 MB / 0.6042 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.0009875/10.67, allocations: 467.7 kB / 4.212 GB, free: 22.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/10.67, allocations: 130.4 kB / 4.212 GB, free: 22.88 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/10.67, allocations: 4.059 MB / 4.216 GB, free: 22.44 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/10.67, allocations: 42.77 kB / 4.216 GB, free: 22.44 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/10.67, allocations: 3.938 kB / 4.216 GB, free: 22.44 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/10.67, allocations: 3.969 kB / 4.216 GB, free: 22.44 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006131/10.68, allocations: 5.553 MB / 4.221 GB, free: 21.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/10.68, allocations: 2.062 kB / 4.221 GB, free: 21.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006652/10.68, allocations: 176.9 kB / 4.221 GB, free: 21.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00617/10.69, allocations: 1.556 MB / 4.223 GB, free: 21.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000172/10.69, allocations: 27.7 kB / 4.223 GB, free: 21.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/10.69, allocations: 2.096 MB / 4.225 GB, free: 20.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/10.69, allocations: 2.125 kB / 4.225 GB, free: 20.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004788/10.69, allocations: 3.995 MB / 4.229 GB, free: 20.04 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/10.69, allocations: 0.5246 MB / 4.229 GB, free: 19.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/10.69, allocations: 25.34 kB / 4.229 GB, free: 19.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009122/10.7, allocations: 104.2 kB / 4.23 GB, free: 19.78 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/10.7, allocations: 81.33 kB / 4.23 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-05/10.7, allocations: 38.61 kB / 4.23 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001408/10.7, allocations: 1.051 MB / 4.231 GB, free: 19.66 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.5e-07/10.7, allocations: 0 / 4.231 GB, free: 19.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008407/10.71, allocations: 2.083 MB / 4.233 GB, free: 19.35 MB / 0.6042 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.01602/10.72, allocations: 6.807 MB / 4.239 GB, free: 17.31 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005018/10.73, allocations: 2.475 MB / 4.242 GB, free: 17.24 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/10.73, allocations: 0 / 4.242 GB, free: 17.24 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001484/10.73, allocations: 1.051 MB / 4.243 GB, free: 17.22 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/10.73, allocations: 0.6326 MB / 4.243 GB, free: 17.19 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/10.75, allocations: 15.43 MB / 4.259 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009276/10.75, allocations: 1.475 MB / 4.26 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002114/10.75, allocations: 0.9865 MB / 4.261 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007381/10.75, allocations: 0.7141 MB / 4.262 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of SimCode: time 9.02e-07/10.75, allocations: 0 / 4.262 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4964/11.25, allocations: 83.61 MB / 4.343 GB, free: 98.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/11.25, allocations: 268 kB / 4.344 GB, free: 98.24 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.781/16.03, allocations: 0 / 4.344 GB, free: 98.24 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat