Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001582/0.001582, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008006/0.0008007, allocations: 90.62 kB / 261.8 MB, free: 1.684 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.2236/0.2236, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.309e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 58.86 MB / 477.2 MB, free: 1.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.719/8.857, allocations: 2.841 GB / 3.307 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/8.857, allocations: 84.05 kB / 3.307 GB, free: 115 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.473/12.33, allocations: 0.7964 GB / 4.104 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.723e-06/12.33, allocations: 2.969 kB / 4.104 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001713/12.33, allocations: 64.64 kB / 4.104 GB, free: 40.27 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01488/12.35, allocations: 3.653 MB / 4.108 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/12.35, allocations: 10.47 kB / 4.108 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006186/12.35, allocations: 0.7866 MB / 4.108 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006512/12.36, allocations: 1.994 MB / 4.11 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/12.36, allocations: 84.69 kB / 4.11 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/12.36, allocations: 110.8 kB / 4.11 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005214/12.36, allocations: 2.556 MB / 4.113 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004026/12.37, allocations: 2.541 MB / 4.115 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.124e-05/12.37, allocations: 11.94 kB / 4.115 GB, free: 37.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002107/12.37, allocations: 3.688 kB / 4.115 GB, free: 37.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/12.37, allocations: 149.2 kB / 4.116 GB, free: 37.4 MB / 0.5261 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.6657/13.04, allocations: 124.5 MB / 4.237 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/13.04, allocations: 1.452 MB / 4.239 GB, free: 54.07 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/13.04, allocations: 0.977 MB / 4.24 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02939/13.07, allocations: 17.07 MB / 4.256 GB, free: 43.46 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002024/13.07, allocations: 1.176 MB / 4.257 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001356/13.07, allocations: 141.6 kB / 4.257 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 3.997e-06/13.07, allocations: 0 / 4.257 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.03327/13.1, allocations: 8.905 MB / 4.266 GB, free: 41.88 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/13.1, allocations: 363.5 kB / 4.267 GB, free: 41.47 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/13.11, allocations: 1.024 MB / 4.268 GB, free: 41.31 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002786/13.11, allocations: 25.7 kB / 4.268 GB, free: 41.28 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007937/13.11, allocations: 0.9156 MB / 4.268 GB, free: 40.97 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005386/13.11, allocations: 0.507 MB / 4.269 GB, free: 40.71 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/13.11, allocations: 7.125 kB / 4.269 GB, free: 40.71 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000119/13.11, allocations: 379.7 kB / 4.269 GB, free: 40.4 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/13.11, allocations: 0.9113 MB / 4.27 GB, free: 40.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/13.11, allocations: 1.301 MB / 4.271 GB, free: 40.02 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007836/13.12, allocations: 1.83 MB / 4.273 GB, free: 40 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.816e-05/13.12, allocations: 2.969 kB / 4.273 GB, free: 40 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01235/13.13, allocations: 3.541 MB / 4.277 GB, free: 39.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009524/13.13, allocations: 3.789 MB / 4.28 GB, free: 35.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/13.13, allocations: 7.719 kB / 4.28 GB, free: 35.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001933/13.13, allocations: 499.6 kB / 4.281 GB, free: 35.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/13.14, allocations: 447.1 kB / 4.281 GB, free: 35.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/13.14, allocations: 2.807 MB / 4.284 GB, free: 33.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003174/13.14, allocations: 267.2 kB / 4.284 GB, free: 33.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003616/13.14, allocations: 94.41 kB / 4.284 GB, free: 33.72 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/13.14, allocations: 6.844 kB / 4.284 GB, free: 33.72 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01028/13.15, allocations: 3.019 MB / 4.287 GB, free: 33.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/13.15, allocations: 12.88 kB / 4.287 GB, free: 33.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/13.15, allocations: 187.9 kB / 4.288 GB, free: 33.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/13.15, allocations: 463.5 kB / 4.288 GB, free: 33.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/13.16, allocations: 1.885 MB / 4.29 GB, free: 32.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003019/13.16, allocations: 234.5 kB / 4.29 GB, free: 32.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/13.16, allocations: 98.05 kB / 4.29 GB, free: 32.01 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008712/13.16, allocations: 235.9 kB / 4.29 GB, free: 31.83 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01306/13.17, allocations: 2.976 MB / 4.293 GB, free: 31.63 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/13.17, allocations: 181.3 kB / 4.293 GB, free: 31.54 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01362/13.19, allocations: 6.768 MB / 4.3 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.769e-05/13.19, allocations: 69.89 kB / 4.3 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/13.19, allocations: 3.75 kB / 4.3 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.011/13.2, allocations: 5.91 MB / 4.306 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/13.22, allocations: 10.05 MB / 4.316 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/13.22, allocations: 6.844 kB / 4.316 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/13.22, allocations: 318.9 kB / 4.316 GB, free: 29.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/13.22, allocations: 1.22 MB / 4.317 GB, free: 29.18 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001963/13.22, allocations: 44.56 kB / 4.317 GB, free: 29.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/13.22, allocations: 3.396 MB / 4.321 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/13.22, allocations: 10.36 kB / 4.321 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01341/13.24, allocations: 7.196 MB / 4.328 GB, free: 25.89 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/13.24, allocations: 0.6665 MB / 4.328 GB, free: 25.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005518/13.24, allocations: 24.61 kB / 4.328 GB, free: 25.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/13.24, allocations: 147.2 kB / 4.328 GB, free: 25.59 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003436/13.24, allocations: 143.8 kB / 4.329 GB, free: 25.58 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000179/13.24, allocations: 76.16 kB / 4.329 GB, free: 25.58 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002056/13.24, allocations: 1.005 MB / 4.33 GB, free: 25.47 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.11e-07/13.24, allocations: 0 / 4.33 GB, free: 25.47 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01267/13.26, allocations: 2.465 MB / 4.332 GB, free: 25.36 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02725/13.28, allocations: 11.63 MB / 4.343 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006621/13.29, allocations: 4.332 MB / 4.348 GB, free: 21.69 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/13.29, allocations: 0 / 4.348 GB, free: 21.69 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002633/13.29, allocations: 2.137 MB / 4.35 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/13.3, allocations: 0.7245 MB / 4.35 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/13.31, allocations: 6.317 MB / 4.357 GB, free: 19.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/13.31, allocations: 2.092 MB / 4.359 GB, free: 19.19 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004761/13.32, allocations: 2.524 MB / 4.361 GB, free: 19.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/13.32, allocations: 1.098 MB / 4.362 GB, free: 19.08 MB / 0.5573 GB Notification: Performance of SimCode: time 3.246e-06/13.32, allocations: 0 / 4.362 GB, free: 19.08 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5316/13.85, allocations: 94.83 MB / 4.455 GB, free: 85.93 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/13.85, allocations: 182.3 kB / 4.455 GB, free: 85.74 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.365/19.21, allocations: 0 / 4.455 GB, free: 85.74 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat