Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.00152/0.001521, allocations: 176.5 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.527/1.527, allocations: 223.2 MB / 241 MB, free: 11.91 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.0009661/0.000966, allocations: 98.66 kB / 292.1 MB, free: 10.91 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.3832/0.3832, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003955, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4898/0.4902, allocations: 61.89 MB / 0.5096 GB, free: 38.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.973/7.463, allocations: 2.848 GB / 3.357 GB, free: 0.6289 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/7.463, allocations: 87.92 kB / 3.357 GB, free: 0.5469 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.815/11.28, allocations: 0.8849 GB / 4.242 GB, free: 39.1 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.834e-06/11.28, allocations: 0 / 4.242 GB, free: 39.1 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002359/11.28, allocations: 68.16 kB / 4.242 GB, free: 39.09 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.01862/11.3, allocations: 4.029 MB / 4.246 GB, free: 37.38 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/11.3, allocations: 10.5 kB / 4.246 GB, free: 37.38 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001336/11.3, allocations: 273.8 kB / 4.246 GB, free: 37.33 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006629/11.31, allocations: 0.794 MB / 4.247 GB, free: 37.2 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006836/11.31, allocations: 1.99 MB / 4.249 GB, free: 36.77 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000306/11.31, allocations: 165.5 kB / 4.249 GB, free: 36.76 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008215/11.31, allocations: 190.1 kB / 4.25 GB, free: 36.76 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007222/11.32, allocations: 3.283 MB / 4.253 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/11.32, allocations: 3.969 kB / 4.253 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/11.32, allocations: 84.12 kB / 4.253 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001811/11.32, allocations: 148.3 kB / 4.253 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005964/11.33, allocations: 2.968 MB / 4.256 GB, free: 36.25 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.017/11.34, allocations: 14.07 MB / 4.27 GB, free: 27.79 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004497/11.35, allocations: 2.076 MB / 4.272 GB, free: 27.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04196/11.39, allocations: 24.6 MB / 4.296 GB, free: 28.63 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004701/11.4, allocations: 1.624 MB / 4.297 GB, free: 28.51 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002181/11.4, allocations: 174.9 kB / 4.297 GB, free: 28.43 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.677e-05/11.4, allocations: 0 / 4.297 GB, free: 28.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02141/11.42, allocations: 8.534 MB / 4.306 GB, free: 27.18 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/11.42, allocations: 255.3 kB / 4.306 GB, free: 26.9 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002092/11.42, allocations: 1.338 MB / 4.307 GB, free: 26.73 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002594/11.42, allocations: 57.55 kB / 4.307 GB, free: 26.7 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007495/11.42, allocations: 0.8778 MB / 4.308 GB, free: 26.38 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004956/11.42, allocations: 0.555 MB / 4.309 GB, free: 26.03 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/11.42, allocations: 33.22 kB / 4.309 GB, free: 26.03 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000206/11.42, allocations: 382.3 kB / 4.309 GB, free: 25.72 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/11.43, allocations: 1.032 MB / 4.31 GB, free: 25.72 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/11.43, allocations: 1.438 MB / 4.312 GB, free: 25.33 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/11.43, allocations: 1.26 MB / 4.313 GB, free: 25.25 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/11.43, allocations: 3.594 kB / 4.313 GB, free: 25.25 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006589/11.44, allocations: 3.2 MB / 4.316 GB, free: 24.97 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001475/11.44, allocations: 3.845 MB / 4.32 GB, free: 20.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/11.44, allocations: 17.88 kB / 4.32 GB, free: 20.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00256/11.44, allocations: 0.5289 MB / 4.32 GB, free: 20.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/11.44, allocations: 450.9 kB / 4.321 GB, free: 20.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/11.44, allocations: 2.702 MB / 4.323 GB, free: 18.83 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002924/11.45, allocations: 273.1 kB / 4.324 GB, free: 18.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003953/11.45, allocations: 94.28 kB / 4.324 GB, free: 18.81 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/11.45, allocations: 4.156 kB / 4.324 GB, free: 18.81 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005938/11.45, allocations: 2.829 MB / 4.326 GB, free: 18.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.078e-05/11.45, allocations: 11.03 kB / 4.326 GB, free: 18.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007141/11.45, allocations: 205.5 kB / 4.327 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/11.46, allocations: 458.7 kB / 4.327 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/11.46, allocations: 1.881 MB / 4.329 GB, free: 17.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/11.46, allocations: 262.2 kB / 4.329 GB, free: 17.08 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003394/11.46, allocations: 101.2 kB / 4.329 GB, free: 17.08 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 (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 () * Number of clocked 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.001952/11.46, allocations: 0.7078 MB / 4.33 GB, free: 16.82 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007178/11.46, allocations: 202.6 kB / 4.33 GB, free: 16.72 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/11.47, allocations: 7.572 MB / 4.338 GB, free: 15.93 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.079e-05/11.47, allocations: 78.64 kB / 4.338 GB, free: 15.93 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/11.47, allocations: 3.281 kB / 4.338 GB, free: 15.93 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008497/11.48, allocations: 6.619 MB / 4.344 GB, free: 15 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01841/11.5, allocations: 11.4 MB / 4.355 GB, free: 12.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/11.5, allocations: 9.812 kB / 4.355 GB, free: 12.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/11.5, allocations: 366.1 kB / 4.356 GB, free: 12.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002806/11.51, allocations: 1.181 MB / 4.357 GB, free: 12.28 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/11.51, allocations: 71.89 kB / 4.357 GB, free: 12.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/11.51, allocations: 3.189 MB / 4.36 GB, free: 9.707 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/11.51, allocations: 5.219 kB / 4.36 GB, free: 9.707 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/11.52, allocations: 7.612 MB / 4.367 GB, free: 5.934 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/11.52, allocations: 0.7364 MB / 4.368 GB, free: 5.477 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008383/11.52, allocations: 54.5 kB / 4.368 GB, free: 5.449 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/11.52, allocations: 189.9 kB / 4.368 GB, free: 5.402 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/11.52, allocations: 160 kB / 4.368 GB, free: 5.379 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/11.52, allocations: 79.8 kB / 4.368 GB, free: 5.363 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002695/11.53, allocations: 1.223 MB / 4.37 GB, free: 4.887 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.8e-07/11.53, allocations: 0 / 4.37 GB, free: 4.887 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01457/11.54, allocations: 2.632 MB / 4.372 GB, free: 4.371 MB / 0.573 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,$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 (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.02775/11.57, allocations: 11.69 MB / 4.384 GB, free: 14.53 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0115/11.58, allocations: 4.872 MB / 4.388 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/11.58, allocations: 0 / 4.388 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005099/11.59, allocations: 2.523 MB / 4.391 GB, free: 8.477 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007648/11.59, allocations: 0.9809 MB / 4.392 GB, free: 7.773 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/11.63, allocations: 16.83 MB / 4.408 GB, free: 7.586 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/11.63, allocations: 2.19 MB / 4.41 GB, free: 5.863 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005522/11.63, allocations: 2.301 MB / 4.413 GB, free: 4.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/11.64, allocations: 1.235 MB / 4.414 GB, free: 3.363 MB / 0.6042 GB Notification: Performance of SimCode: time 1.012e-06/11.64, allocations: 4 kB / 4.414 GB, free: 3.359 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6243/12.26, allocations: 111.4 MB / 4.523 GB, free: 76.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/12.26, allocations: 257.7 kB / 4.523 GB, free: 75.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.236/18.5, allocations: 4 kB / 4.523 GB, free: 75.8 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat