Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.0015/0.0015, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.894/1.894, allocations: 205.2 MB / 218.9 MB, free: 9.148 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.0008346/0.0008348, allocations: 87.86 kB / 267 MB, free: 9.273 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.406/0.406, allocations: 43.46 MB / 358.6 MB, free: 52.3 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.484e-05/5.496e-05, allocations: 7.938 kB / 425.4 MB, free: 8.785 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1392, allocations: 58.86 MB / 484.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.935/9.074, allocations: 2.825 GB / 3.298 GB, free: 61.63 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/9.074, allocations: 80.73 kB / 3.298 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.562/12.64, allocations: 0.7996 GB / 4.098 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.473e-06/12.64, allocations: 0 / 4.098 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002097/12.64, allocations: 74.52 kB / 4.098 GB, free: 34.72 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01772/12.65, allocations: 3.966 MB / 4.102 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.798e-05/12.65, allocations: 14 kB / 4.102 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001715/12.66, allocations: 294.8 kB / 4.102 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007359/12.66, allocations: 0.8369 MB / 4.103 GB, free: 32.14 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006346/12.67, allocations: 2.09 MB / 4.105 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/12.67, allocations: 175.5 kB / 4.105 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009803/12.67, allocations: 202.5 kB / 4.105 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008178/12.68, allocations: 3.725 MB / 4.109 GB, free: 29.45 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.953e-05/12.68, allocations: 6.969 kB / 4.109 GB, free: 29.44 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003368/12.68, allocations: 85.88 kB / 4.109 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002029/12.68, allocations: 163 kB / 4.109 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006924/12.69, allocations: 3.434 MB / 4.112 GB, free: 28.25 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.02058/12.71, allocations: 14.94 MB / 4.127 GB, free: 17.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004295/12.71, allocations: 2.16 MB / 4.129 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/12.71, allocations: 1.088 MB / 4.13 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04756/12.76, allocations: 24.61 MB / 4.154 GB, free: 6.691 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005279/12.77, allocations: 1.717 MB / 4.156 GB, free: 4.945 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00207/12.77, allocations: 201.2 kB / 4.156 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 1.114e-05/12.77, allocations: 0 / 4.156 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.4901/13.26, allocations: 7.504 MB / 4.163 GB, free: 52.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002068/13.26, allocations: 414.9 kB / 4.164 GB, free: 51.73 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/13.26, allocations: 1.548 MB / 4.165 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006681/13.26, allocations: 63.73 kB / 4.165 GB, free: 51.47 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001574/13.27, allocations: 0.9775 MB / 4.166 GB, free: 51.19 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001108/13.27, allocations: 0.5858 MB / 4.167 GB, free: 50.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/13.27, allocations: 40.14 kB / 4.167 GB, free: 50.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002411/13.27, allocations: 387 kB / 4.167 GB, free: 50.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002556/13.27, allocations: 1.073 MB / 4.168 GB, free: 50.59 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/13.27, allocations: 1.513 MB / 4.17 GB, free: 50.12 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002821/13.28, allocations: 1.32 MB / 4.171 GB, free: 50.04 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/13.28, allocations: 4.469 kB / 4.171 GB, free: 50.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007014/13.28, allocations: 3.372 MB / 4.174 GB, free: 49.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009127/13.28, allocations: 4.066 MB / 4.178 GB, free: 45.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.879e-05/13.28, allocations: 18.7 kB / 4.178 GB, free: 45.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00447/13.29, allocations: 0.9576 MB / 4.179 GB, free: 45.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/13.29, allocations: 463.7 kB / 4.18 GB, free: 45.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/13.29, allocations: 3.161 MB / 4.183 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/13.29, allocations: 234.1 kB / 4.183 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004367/13.3, allocations: 103.2 kB / 4.183 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/13.3, allocations: 4.844 kB / 4.183 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006105/13.3, allocations: 3.051 MB / 4.186 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.52e-05/13.3, allocations: 13.64 kB / 4.186 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/13.3, allocations: 354.9 kB / 4.187 GB, free: 43.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/13.3, allocations: 490.5 kB / 4.187 GB, free: 43.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003406/13.31, allocations: 4.052 MB / 4.191 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/13.31, allocations: 234.7 kB / 4.191 GB, free: 40.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003523/13.31, allocations: 103.3 kB / 4.191 GB, free: 40.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008322/13.31, allocations: 287.6 kB / 4.192 GB, free: 40.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000796/13.31, allocations: 223.6 kB / 4.192 GB, free: 40.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/13.32, allocations: 7.844 MB / 4.199 GB, free: 39.44 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.363e-05/13.32, allocations: 82.3 kB / 4.2 GB, free: 39.44 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/13.32, allocations: 0 / 4.2 GB, free: 39.44 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009041/13.33, allocations: 6.871 MB / 4.206 GB, free: 38.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02129/13.35, allocations: 10.96 MB / 4.217 GB, free: 37.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/13.35, allocations: 3.25 kB / 4.217 GB, free: 37.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/13.36, allocations: 351.9 kB / 4.217 GB, free: 37.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008679/13.37, allocations: 2.526 MB / 4.22 GB, free: 37.68 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006908/13.37, allocations: 63.56 kB / 4.22 GB, free: 37.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005568/13.37, allocations: 4.125 MB / 4.224 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/13.37, allocations: 1.844 kB / 4.224 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01852/13.39, allocations: 7.806 MB / 4.231 GB, free: 34.87 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003542/13.39, allocations: 0.7852 MB / 4.232 GB, free: 34.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/13.39, allocations: 53.36 kB / 4.232 GB, free: 34.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00398/13.4, allocations: 192.7 kB / 4.232 GB, free: 34.56 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000597/13.4, allocations: 143.8 kB / 4.233 GB, free: 34.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003883/13.4, allocations: 79.2 kB / 4.233 GB, free: 34.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004406/13.4, allocations: 1.37 MB / 4.234 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.81e-07/13.4, allocations: 2 kB / 4.234 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01849/13.42, allocations: 2.86 MB / 4.237 GB, free: 34.27 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03036/13.45, allocations: 10.35 MB / 4.247 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01221/13.47, allocations: 5.347 MB / 4.252 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/13.47, allocations: 2.594 kB / 4.252 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004607/13.47, allocations: 2.356 MB / 4.254 GB, free: 32.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006758/13.48, allocations: 0.9711 MB / 4.255 GB, free: 32.13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02355/13.5, allocations: 7.398 MB / 4.263 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003118/13.5, allocations: 2.302 MB / 4.265 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006362/13.51, allocations: 2.44 MB / 4.267 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/13.51, allocations: 1.286 MB / 4.269 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.734e-06/13.51, allocations: 0 / 4.269 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6632/14.18, allocations: 126 MB / 4.392 GB, free: 62.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/14.18, allocations: 229.8 kB / 4.392 GB, free: 62.27 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.656/20.83, allocations: 1.594 kB / 4.392 GB, free: 62.27 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat