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.001634/0.001634, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.724/1.724, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001128/0.001128, allocations: 95.45 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2813/0.2813, allocations: 45.14 MB / 383.7 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.063e-05, allocations: 4 kB / 453.3 MB, free: 75.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1619, allocations: 63.25 MB / 0.5045 GB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.717/7.879, allocations: 2.827 GB / 3.331 GB, free: 90.43 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/7.88, allocations: 80.7 kB / 3.331 GB, free: 90.36 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.955/10.83, allocations: 0.7447 GB / 4.076 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.643e-06/10.83, allocations: 0 / 4.076 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000103/10.83, allocations: 29.23 kB / 4.076 GB, free: 47.8 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.009794/10.84, allocations: 2.773 MB / 4.079 GB, free: 46.78 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/10.84, allocations: 11.73 kB / 4.079 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003161/10.85, allocations: 484.4 kB / 4.079 GB, free: 46.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002416/10.85, allocations: 1.13 MB / 4.081 GB, free: 46.39 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/10.85, allocations: 108.9 kB / 4.081 GB, free: 46.32 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/10.85, allocations: 68.58 kB / 4.081 GB, free: 46.32 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001993/10.85, allocations: 1.337 MB / 4.082 GB, free: 46.32 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/10.85, allocations: 1.464 MB / 4.083 GB, free: 45.98 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.986e-05/10.85, allocations: 8.562 kB / 4.083 GB, free: 45.98 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/10.85, allocations: 3.594 kB / 4.083 GB, free: 45.98 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.479e-05/10.85, allocations: 79.23 kB / 4.084 GB, free: 45.97 MB / 0.5573 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.2568/11.11, allocations: 149.2 MB / 4.229 GB, free: 27.26 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/11.11, allocations: 0.9168 MB / 4.23 GB, free: 27.04 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006842/11.11, allocations: 378.3 kB / 4.23 GB, free: 27.03 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03479/11.15, allocations: 18.54 MB / 4.249 GB, free: 30.32 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/11.15, allocations: 0.4988 MB / 4.249 GB, free: 30.21 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=66): time 5.651e-06/11.15, allocations: 0 / 4.249 GB, free: 30.21 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70): time 0.01103/11.16, allocations: 3.128 MB / 4.252 GB, free: 29.45 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001922/11.16, allocations: 341.8 kB / 4.252 GB, free: 29.04 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/11.16, allocations: 0.8465 MB / 4.253 GB, free: 28.88 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001221/11.16, allocations: 25.7 kB / 4.253 GB, free: 28.84 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005507/11.16, allocations: 0.6251 MB / 4.254 GB, free: 28.53 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002583/11.16, allocations: 247.3 kB / 4.254 GB, free: 28.37 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.983e-05/11.16, allocations: 3.75 kB / 4.254 GB, free: 28.37 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001945/11.16, allocations: 363.6 kB / 4.254 GB, free: 28.06 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000798/11.16, allocations: 462.4 kB / 4.255 GB, free: 28.06 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/11.17, allocations: 0.924 MB / 4.256 GB, free: 27.49 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003818/11.17, allocations: 1.076 MB / 4.257 GB, free: 27.45 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/11.17, allocations: 3.938 kB / 4.257 GB, free: 27.45 MB / 0.6511 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005487/11.17, allocations: 2.111 MB / 4.259 GB, free: 27.32 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.002098/11.18, allocations: 5.408 MB / 4.264 GB, free: 21.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.814e-05/11.18, allocations: 16.22 kB / 4.264 GB, free: 21.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00195/11.18, allocations: 0.5956 MB / 4.265 GB, free: 21.63 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/11.18, allocations: 254.1 kB / 4.265 GB, free: 21.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/11.18, allocations: 1.613 MB / 4.267 GB, free: 21.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/11.18, allocations: 125.4 kB / 4.267 GB, free: 21.07 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/11.18, allocations: 78.16 kB / 4.267 GB, free: 21.07 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/11.18, allocations: 3.875 kB / 4.267 GB, free: 21.07 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004654/11.19, allocations: 1.756 MB / 4.269 GB, free: 21.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/11.19, allocations: 15.41 kB / 4.269 GB, free: 21.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/11.19, allocations: 331.5 kB / 4.269 GB, free: 21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009828/11.19, allocations: 286.3 kB / 4.269 GB, free: 21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/11.19, allocations: 1.032 MB / 4.27 GB, free: 20.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/11.19, allocations: 103.8 kB / 4.27 GB, free: 20.46 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/11.19, allocations: 65.94 kB / 4.27 GB, free: 20.46 MB / 0.6511 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($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,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete 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.0004682/11.19, allocations: 161.4 kB / 4.27 GB, free: 20.34 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002608/11.2, allocations: 1.049 MB / 4.271 GB, free: 20.21 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/11.2, allocations: 109.8 kB / 4.272 GB, free: 20.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003881/11.2, allocations: 2.897 MB / 4.274 GB, free: 19.79 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.001e-05/11.2, allocations: 36.58 kB / 4.274 GB, free: 19.78 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/11.2, allocations: 3 kB / 4.274 GB, free: 19.78 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/11.2, allocations: 9.625 kB / 4.274 GB, free: 19.78 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006214/11.21, allocations: 4.563 MB / 4.279 GB, free: 17.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/11.21, allocations: 4 kB / 4.279 GB, free: 17.35 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005481/11.21, allocations: 140.5 kB / 4.279 GB, free: 17.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004587/11.21, allocations: 1.522 MB / 4.281 GB, free: 16.27 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/11.21, allocations: 18.8 kB / 4.281 GB, free: 16.26 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002712/11.22, allocations: 2.267 MB / 4.283 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/11.22, allocations: 0 / 4.283 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004687/11.22, allocations: 3.333 MB / 4.286 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008509/11.22, allocations: 354.8 kB / 4.286 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/11.22, allocations: 4 kB / 4.286 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/11.22, allocations: 65.2 kB / 4.286 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/11.22, allocations: 58.17 kB / 4.286 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-05/11.22, allocations: 37.59 kB / 4.287 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001099/11.22, allocations: 0.6078 MB / 4.287 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.01e-07/11.22, allocations: 0 / 4.287 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009292/11.23, allocations: 1.935 MB / 4.289 GB, free: 10.22 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01688/11.25, allocations: 6.1 MB / 4.295 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.004353/11.25, allocations: 2.087 MB / 4.297 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/11.26, allocations: 4 kB / 4.297 GB, free: 4.754 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/11.26, allocations: 0.8051 MB / 4.298 GB, free: 4.363 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/11.26, allocations: 468.6 kB / 4.298 GB, free: 4.117 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/11.27, allocations: 3.188 MB / 4.301 GB, free: 1.73 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/11.27, allocations: 1.347 MB / 4.303 GB, free: 0.625 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.002968/11.27, allocations: 1.226 MB / 4.304 GB, free: 0 / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3324/11.61, allocations: 0.5632 MB / 4.304 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of SimCode: time 2.354e-06/11.61, allocations: 2.438 kB / 4.304 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/11.73, allocations: 69.5 MB / 4.372 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000236/11.73, allocations: 192.3 kB / 4.372 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.329/16.06, allocations: 0 / 4.372 GB, free: 136.3 MB / 0.6511 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