Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 177.3 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 87.77 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3635/0.3635, allocations: 44.22 MB / 387.5 MB, free: 39.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 8 kB / 460 MB, free: 1.672 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4049, allocations: 61.9 MB / 0.5096 GB, free: 37.76 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.588/6.993, allocations: 2.831 GB / 3.34 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/6.993, allocations: 85.8 kB / 3.34 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.188/10.18, allocations: 0.8796 GB / 4.22 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.536e-06/10.18, allocations: 0 / 4.22 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003709/10.18, allocations: 61.38 kB / 4.22 GB, free: 41.52 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01818/10.2, allocations: 4.094 MB / 4.224 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/10.2, allocations: 11.03 kB / 4.224 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001764/10.2, allocations: 280.6 kB / 4.224 GB, free: 39.4 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006593/10.21, allocations: 0.7781 MB / 4.225 GB, free: 39.27 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007952/10.22, allocations: 1.966 MB / 4.227 GB, free: 38.83 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/10.22, allocations: 167.3 kB / 4.227 GB, free: 38.82 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/10.22, allocations: 179.8 kB / 4.227 GB, free: 38.82 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/10.23, allocations: 3.317 MB / 4.231 GB, free: 38.36 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000174/10.23, allocations: 6.75 kB / 4.231 GB, free: 38.36 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001162/10.23, allocations: 86.17 kB / 4.231 GB, free: 38.36 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003603/10.23, allocations: 148 kB / 4.231 GB, free: 38.35 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01299/10.24, allocations: 3.033 MB / 4.234 GB, free: 38.34 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.03298/10.28, allocations: 14.23 MB / 4.248 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004969/10.28, allocations: 2.07 MB / 4.25 GB, free: 29.72 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04179/10.32, allocations: 24.54 MB / 4.274 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004643/10.33, allocations: 1.59 MB / 4.275 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001801/10.33, allocations: 173.5 kB / 4.275 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=146): time 1.074e-05/10.33, allocations: 0 / 4.275 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158): time 0.02407/10.35, allocations: 8.402 MB / 4.284 GB, free: 28.69 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/10.35, allocations: 255.6 kB / 4.284 GB, free: 28.41 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/10.36, allocations: 1.411 MB / 4.285 GB, free: 27.89 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003009/10.36, allocations: 59.61 kB / 4.285 GB, free: 27.83 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009672/10.36, allocations: 0.89 MB / 4.286 GB, free: 27.14 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006364/10.36, allocations: 0.5246 MB / 4.287 GB, free: 26.73 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/10.36, allocations: 31.31 kB / 4.287 GB, free: 26.71 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002544/10.36, allocations: 376.3 kB / 4.287 GB, free: 26.38 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/10.36, allocations: 1.035 MB / 4.288 GB, free: 26.04 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/10.36, allocations: 1.414 MB / 4.289 GB, free: 25.25 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/10.37, allocations: 1.246 MB / 4.291 GB, free: 24.73 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/10.37, allocations: 0 / 4.291 GB, free: 24.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.006919/10.37, allocations: 3.215 MB / 4.294 GB, free: 23.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001766/10.37, allocations: 3.845 MB / 4.298 GB, free: 19.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/10.37, allocations: 7.875 kB / 4.298 GB, free: 19.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002995/10.38, allocations: 0.6173 MB / 4.298 GB, free: 19.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/10.38, allocations: 427.9 kB / 4.299 GB, free: 19.19 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002399/10.38, allocations: 2.83 MB / 4.301 GB, free: 16.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002976/10.39, allocations: 236 kB / 4.302 GB, free: 16.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006431/10.39, allocations: 97.78 kB / 4.302 GB, free: 16.74 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/10.39, allocations: 8.188 kB / 4.302 GB, free: 16.74 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006721/10.39, allocations: 2.807 MB / 4.304 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/10.39, allocations: 12 kB / 4.304 GB, free: 15.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007148/10.39, allocations: 207.2 kB / 4.305 GB, free: 15.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/10.4, allocations: 451.8 kB / 4.305 GB, free: 14.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/10.4, allocations: 1.885 MB / 4.307 GB, free: 12.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/10.4, allocations: 231.6 kB / 4.307 GB, free: 12.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004043/10.4, allocations: 86.98 kB / 4.307 GB, free: 12.72 MB / 0.573 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.002165/10.4, allocations: 0.7068 MB / 4.308 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/10.4, allocations: 201.6 kB / 4.308 GB, free: 11.87 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01366/10.42, allocations: 7.565 MB / 4.315 GB, free: 5.191 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/10.42, allocations: 78.52 kB / 4.316 GB, free: 5.145 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.157e-05/10.42, allocations: 0 / 4.316 GB, free: 5.145 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01066/10.43, allocations: 6.646 MB / 4.322 GB, free: 15.14 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02047/10.45, allocations: 10.51 MB / 4.332 GB, free: 6.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/10.45, allocations: 4 kB / 4.332 GB, free: 6.133 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/10.45, allocations: 337.9 kB / 4.333 GB, free: 5.859 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003624/10.45, allocations: 1.355 MB / 4.334 GB, free: 4.715 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005163/10.45, allocations: 64.75 kB / 4.334 GB, free: 4.664 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003267/10.46, allocations: 3.479 MB / 4.337 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/10.46, allocations: 0 / 4.337 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4578/10.92, allocations: 7.568 MB / 4.345 GB, free: 71.92 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002261/10.92, allocations: 0.7351 MB / 4.346 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005321/10.92, allocations: 49.94 kB / 4.346 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/10.92, allocations: 190.6 kB / 4.346 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/10.92, allocations: 137 kB / 4.346 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/10.92, allocations: 69.92 kB / 4.346 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002282/10.92, allocations: 1.283 MB / 4.347 GB, free: 71.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/10.92, allocations: 2.875 kB / 4.347 GB, free: 71.68 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01335/10.94, allocations: 2.731 MB / 4.35 GB, free: 71.68 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02242/10.96, allocations: 10.2 MB / 4.36 GB, free: 70.58 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009275/10.97, allocations: 4.854 MB / 4.365 GB, free: 70.27 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/10.97, allocations: 1.344 kB / 4.365 GB, free: 70.27 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003798/10.97, allocations: 2.32 MB / 4.367 GB, free: 70.12 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005383/10.98, allocations: 0.9626 MB / 4.368 GB, free: 70.11 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02664/11, allocations: 16.7 MB / 4.384 GB, free: 59.61 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002463/11.01, allocations: 2.179 MB / 4.386 GB, free: 58.85 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005651/11.01, allocations: 2.219 MB / 4.388 GB, free: 58.82 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001906/11.01, allocations: 1.225 MB / 4.39 GB, free: 58.82 MB / 0.5886 GB Notification: Performance of SimCode: time 1.049e-05/11.01, allocations: 0 / 4.39 GB, free: 58.82 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1964/11.21, allocations: 112.2 MB / 4.499 GB, free: 45.31 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/11.21, allocations: 259.6 kB / 4.499 GB, free: 44.96 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/18.03, allocations: 0 / 4.499 GB, free: 44.96 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat