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.001138/0.001138, allocations: 183.1 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.713/1.713, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.0007824/0.0007823, allocations: 93.3 kB / 267.1 MB, free: 9.281 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.4097/0.4097, allocations: 43.47 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.939e-05/4.941e-05, allocations: 4 kB / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1441, allocations: 58.84 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.424/9.569, allocations: 2.842 GB / 3.315 GB, free: 96.51 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003469/9.569, allocations: 81.64 kB / 3.315 GB, free: 96.51 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.573/13.14, allocations: 0.8032 GB / 4.118 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.813e-06/13.14, allocations: 0 / 4.118 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002425/13.14, allocations: 62.53 kB / 4.118 GB, free: 28.38 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.01855/13.16, allocations: 3.668 MB / 4.122 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.822e-05/13.16, allocations: 12.72 kB / 4.122 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00128/13.16, allocations: 269.7 kB / 4.122 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006344/13.17, allocations: 0.7814 MB / 4.123 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006234/13.17, allocations: 1.987 MB / 4.125 GB, free: 26.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/13.18, allocations: 158.6 kB / 4.125 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005851/13.18, allocations: 185.2 kB / 4.125 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006765/13.18, allocations: 3.345 MB / 4.128 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/13.18, allocations: 12 kB / 4.128 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002504/13.18, allocations: 77.41 kB / 4.129 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002071/13.18, allocations: 147.4 kB / 4.129 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005903/13.19, allocations: 3.07 MB / 4.132 GB, free: 25.74 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.01781/13.21, allocations: 13.83 MB / 4.145 GB, free: 33.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/13.21, allocations: 1.993 MB / 4.147 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/13.21, allocations: 1.068 MB / 4.148 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04935/13.26, allocations: 24.68 MB / 4.172 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004952/13.27, allocations: 1.633 MB / 4.174 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001819/13.27, allocations: 183.8 kB / 4.174 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 1.152e-05/13.27, allocations: 0 / 4.174 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167): time 0.01946/13.29, allocations: 7.02 MB / 4.181 GB, free: 17.19 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001728/13.29, allocations: 265.8 kB / 4.181 GB, free: 16.91 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/13.29, allocations: 1.312 MB / 4.182 GB, free: 16.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003751/13.29, allocations: 58.8 kB / 4.182 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008854/13.29, allocations: 0.8688 MB / 4.183 GB, free: 16.37 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006065/13.29, allocations: 0.5569 MB / 4.184 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/13.29, allocations: 37.84 kB / 4.184 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000186/13.29, allocations: 377.2 kB / 4.184 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/13.29, allocations: 0.9358 MB / 4.185 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/13.3, allocations: 1.333 MB / 4.186 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/13.3, allocations: 1.165 MB / 4.188 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/13.3, allocations: 2.531 kB / 4.188 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005928/13.3, allocations: 2.991 MB / 4.191 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002499/13.31, allocations: 3.842 MB / 4.194 GB, free: 26.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/13.31, allocations: 8.406 kB / 4.194 GB, free: 26.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002573/13.31, allocations: 0.5201 MB / 4.195 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/13.31, allocations: 447 kB / 4.195 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/13.31, allocations: 2.708 MB / 4.198 GB, free: 24.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00477/13.32, allocations: 251.6 kB / 4.198 GB, free: 24.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/13.32, allocations: 96.7 kB / 4.198 GB, free: 24.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/13.32, allocations: 2.375 kB / 4.198 GB, free: 24.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006449/13.33, allocations: 2.618 MB / 4.201 GB, free: 24.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/13.33, allocations: 10.88 kB / 4.201 GB, free: 24.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006071/13.33, allocations: 193.4 kB / 4.201 GB, free: 24.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/13.33, allocations: 463.1 kB / 4.201 GB, free: 24.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/13.33, allocations: 1.875 MB / 4.203 GB, free: 23.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/13.33, allocations: 256.8 kB / 4.203 GB, free: 23.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000402/13.33, allocations: 100.4 kB / 4.204 GB, free: 23.07 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,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_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.0009373/13.33, allocations: 291.4 kB / 4.204 GB, free: 22.88 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007284/13.34, allocations: 197.4 kB / 4.204 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/13.35, allocations: 7.454 MB / 4.211 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.811e-05/13.35, allocations: 83.03 kB / 4.211 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/13.35, allocations: 0 / 4.211 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00714/13.35, allocations: 6.528 MB / 4.218 GB, free: 21.05 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/13.37, allocations: 11.24 MB / 4.229 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/13.37, allocations: 7.812 kB / 4.229 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/13.37, allocations: 366.5 kB / 4.229 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002738/13.37, allocations: 1.288 MB / 4.23 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002834/13.37, allocations: 66.83 kB / 4.23 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00274/13.38, allocations: 3.187 MB / 4.234 GB, free: 17.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/13.38, allocations: 4.375 kB / 4.234 GB, free: 17.75 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009898/13.39, allocations: 7.286 MB / 4.241 GB, free: 16.49 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002081/13.39, allocations: 0.7339 MB / 4.241 GB, free: 16.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000875/13.39, allocations: 59.98 kB / 4.241 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/13.39, allocations: 192 kB / 4.242 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/13.39, allocations: 156.8 kB / 4.242 GB, free: 16.14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/13.39, allocations: 82.88 kB / 4.242 GB, free: 16.14 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002668/13.4, allocations: 1.191 MB / 4.243 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.453e-06/13.4, allocations: 0 / 4.243 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01274/13.41, allocations: 2.597 MB / 4.246 GB, free: 15.64 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (179): * Single equations (assignments): 153 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02459/13.43, allocations: 11.29 MB / 4.257 GB, free: 12.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009325/13.44, allocations: 4.672 MB / 4.261 GB, free: 12.06 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/13.44, allocations: 3.938 kB / 4.261 GB, free: 12.06 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003889/13.45, allocations: 2.438 MB / 4.264 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0058/13.45, allocations: 0.9208 MB / 4.264 GB, free: 11.02 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02076/13.47, allocations: 6.958 MB / 4.271 GB, free: 8.25 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003323/13.48, allocations: 2.193 MB / 4.273 GB, free: 7.363 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006805/13.48, allocations: 2.475 MB / 4.276 GB, free: 7.266 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002218/13.49, allocations: 1.197 MB / 4.277 GB, free: 6.293 MB / 0.5573 GB Notification: Performance of SimCode: time 1.833e-06/13.49, allocations: 0 / 4.277 GB, free: 6.293 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6544/14.14, allocations: 116.5 MB / 4.391 GB, free: 70.11 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/14.14, allocations: 217.9 kB / 4.391 GB, free: 69.89 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.254/20.39, allocations: 0 / 4.391 GB, free: 69.89 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