Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.001177/0.001177, allocations: 182.8 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.854/1.854, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009373/0.0009374, allocations: 92.27 kB / 267.1 MB, free: 9.285 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.4907/0.4907, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.479e-05/4.481e-05, allocations: 4 kB / 425.4 MB, free: 8.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.158, allocations: 58.84 MB / 484.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.453/9.611, allocations: 2.829 GB / 3.302 GB, free: 89.01 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000425/9.611, allocations: 77.78 kB / 3.302 GB, free: 89.01 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.531/13.14, allocations: 0.9043 GB / 4.207 GB, free: 34.9 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.452e-06/13.14, allocations: 0 / 4.207 GB, free: 34.9 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002028/13.14, allocations: 70.03 kB / 4.207 GB, free: 34.89 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01581/13.16, allocations: 4.041 MB / 4.211 GB, free: 33.13 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/13.16, allocations: 14.78 kB / 4.211 GB, free: 33.12 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008802/13.16, allocations: 301.3 kB / 4.211 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007093/13.17, allocations: 0.8747 MB / 4.212 GB, free: 32.93 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005804/13.17, allocations: 2.073 MB / 4.214 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/13.17, allocations: 187.3 kB / 4.214 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000557/13.17, allocations: 201.6 kB / 4.214 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007277/13.18, allocations: 3.674 MB / 4.218 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.683e-05/13.18, allocations: 8.812 kB / 4.218 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/13.18, allocations: 91.97 kB / 4.218 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001892/13.18, allocations: 161.8 kB / 4.218 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006327/13.19, allocations: 3.312 MB / 4.221 GB, free: 31.94 MB / 0.5417 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.0179/13.2, allocations: 15.58 MB / 4.237 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004338/13.21, allocations: 2.202 MB / 4.239 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/13.21, allocations: 1.064 MB / 4.24 GB, free: 22.55 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04499/13.26, allocations: 24.62 MB / 4.264 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00498/13.26, allocations: 1.716 MB / 4.266 GB, free: 23.25 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 7.334e-06/13.26, allocations: 0 / 4.266 GB, free: 23.25 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.02005/13.28, allocations: 7.668 MB / 4.273 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/13.28, allocations: 259.3 kB / 4.273 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002071/13.28, allocations: 1.493 MB / 4.275 GB, free: 21.69 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002036/13.28, allocations: 60.58 kB / 4.275 GB, free: 21.66 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000716/13.28, allocations: 0.9802 MB / 4.276 GB, free: 21.27 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004517/13.28, allocations: 0.5944 MB / 4.276 GB, free: 20.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/13.28, allocations: 41.94 kB / 4.276 GB, free: 20.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001709/13.28, allocations: 391.9 kB / 4.277 GB, free: 20.59 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/13.29, allocations: 1.03 MB / 4.278 GB, free: 20.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/13.29, allocations: 1.449 MB / 4.279 GB, free: 20.12 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/13.29, allocations: 1.267 MB / 4.28 GB, free: 20.02 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/13.29, allocations: 5 kB / 4.28 GB, free: 20.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004681/13.29, allocations: 3.12 MB / 4.283 GB, free: 19.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001507/13.3, allocations: 4.497 MB / 4.288 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/13.3, allocations: 10.06 kB / 4.288 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/13.3, allocations: 236.7 kB / 4.288 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/13.3, allocations: 0.5069 MB / 4.289 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/13.3, allocations: 2.431 MB / 4.291 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00266/13.3, allocations: 286.4 kB / 4.291 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002658/13.3, allocations: 100.6 kB / 4.291 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/13.3, allocations: 3.812 kB / 4.291 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004372/13.31, allocations: 2.846 MB / 4.294 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/13.31, allocations: 12 kB / 4.294 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007236/13.31, allocations: 237.8 kB / 4.294 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/13.31, allocations: 0.507 MB / 4.295 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/13.31, allocations: 2.425 MB / 4.297 GB, free: 10.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/13.31, allocations: 272 kB / 4.297 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/13.31, allocations: 101.8 kB / 4.298 GB, free: 10.4 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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_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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008738/13.32, allocations: 294.4 kB / 4.298 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006392/13.32, allocations: 215 kB / 4.298 GB, free: 10.03 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009794/13.33, allocations: 7.633 MB / 4.305 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.031e-05/13.33, allocations: 90.5 kB / 4.306 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.222e-05/13.33, allocations: 0 / 4.306 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007044/13.33, allocations: 6.65 MB / 4.312 GB, free: 3.395 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/13.35, allocations: 10.9 MB / 4.323 GB, free: 14.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/13.35, allocations: 3.938 kB / 4.323 GB, free: 14.26 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001736/13.35, allocations: 416 kB / 4.323 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/13.35, allocations: 335 kB / 4.323 GB, free: 13.66 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/13.35, allocations: 65.8 kB / 4.323 GB, free: 13.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/13.35, allocations: 2.52 MB / 4.326 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/13.35, allocations: 0 / 4.326 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009903/13.36, allocations: 6.922 MB / 4.333 GB, free: 4.688 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/13.37, allocations: 0.7778 MB / 4.333 GB, free: 4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008864/13.37, allocations: 55.75 kB / 4.334 GB, free: 3.949 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002302/13.37, allocations: 211.1 kB / 4.334 GB, free: 3.789 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/13.37, allocations: 150.8 kB / 4.334 GB, free: 3.695 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/13.37, allocations: 83.23 kB / 4.334 GB, free: 3.629 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002666/13.37, allocations: 1.327 MB / 4.335 GB, free: 2.402 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.51e-07/13.37, allocations: 0 / 4.335 GB, free: 2.402 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01515/13.39, allocations: 3.086 MB / 4.338 GB, free: 0 / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.4334/13.82, allocations: 10.3 MB / 4.348 GB, free: 63.97 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00972/13.83, allocations: 5.122 MB / 4.353 GB, free: 63.62 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/13.83, allocations: 2.5 kB / 4.353 GB, free: 63.62 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003366/13.83, allocations: 2.373 MB / 4.356 GB, free: 63.48 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005737/13.84, allocations: 1.029 MB / 4.357 GB, free: 63.47 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/13.86, allocations: 7.454 MB / 4.364 GB, free: 62.29 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/13.86, allocations: 2.284 MB / 4.366 GB, free: 61.52 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005482/13.87, allocations: 2.681 MB / 4.369 GB, free: 61.48 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/13.87, allocations: 1.303 MB / 4.37 GB, free: 61.47 MB / 0.573 GB Notification: Performance of SimCode: time 1.272e-06/13.87, allocations: 0 / 4.37 GB, free: 61.47 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/14.08, allocations: 125.1 MB / 4.492 GB, free: 45.71 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/14.08, allocations: 221.9 kB / 4.492 GB, free: 45.49 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.578/20.66, allocations: 4 kB / 4.492 GB, free: 45.49 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat