Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.001369/0.001369, allocations: 169 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000864/0.000864, allocations: 97.78 kB / 281.6 MB, free: 5.312 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.2038/0.2038, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.984e-05, allocations: 224 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1513, allocations: 61.93 MB / 0.4948 GB, free: 1.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.03/9.182, allocations: 2.834 GB / 3.328 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/9.182, allocations: 78.97 kB / 3.329 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.382/12.56, allocations: 0.9063 GB / 4.235 GB, free: 30.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.224e-06/12.56, allocations: 4 kB / 4.235 GB, free: 30.39 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002308/12.56, allocations: 74.5 kB / 4.235 GB, free: 30.37 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.01776/12.58, allocations: 4.035 MB / 4.239 GB, free: 28.13 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/12.58, allocations: 17.3 kB / 4.239 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006946/12.59, allocations: 0.8796 MB / 4.24 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006224/12.6, allocations: 2.07 MB / 4.242 GB, free: 26.95 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/12.6, allocations: 95.89 kB / 4.242 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005106/12.6, allocations: 122 kB / 4.242 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004418/12.6, allocations: 2.677 MB / 4.245 GB, free: 26 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00428/12.61, allocations: 2.888 MB / 4.247 GB, free: 24.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.723e-05/12.61, allocations: 11.64 kB / 4.247 GB, free: 24.67 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002233/12.61, allocations: 3.906 kB / 4.247 GB, free: 24.67 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001906/12.61, allocations: 167.7 kB / 4.248 GB, free: 24.65 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.6968/13.3, allocations: 126.2 MB / 4.371 GB, free: 22.23 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002854/13.31, allocations: 2.072 MB / 4.373 GB, free: 21.62 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/13.31, allocations: 0.9829 MB / 4.374 GB, free: 21.61 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03096/13.34, allocations: 17.01 MB / 4.39 GB, free: 26.54 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002242/13.34, allocations: 1.193 MB / 4.392 GB, free: 26.39 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=153): time 3.828e-06/13.34, allocations: 0 / 4.392 GB, free: 26.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=169): time 0.02156/13.36, allocations: 7.967 MB / 4.399 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/13.36, allocations: 359.5 kB / 4.4 GB, free: 24.43 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/13.36, allocations: 1.146 MB / 4.401 GB, free: 24.27 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003826/13.36, allocations: 31.8 kB / 4.401 GB, free: 24.24 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/13.37, allocations: 1.028 MB / 4.402 GB, free: 23.89 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007166/13.37, allocations: 0.5561 MB / 4.402 GB, free: 23.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/13.37, allocations: 0 / 4.402 GB, free: 23.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001852/13.37, allocations: 386.7 kB / 4.403 GB, free: 23.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/13.37, allocations: 1.007 MB / 4.404 GB, free: 23.29 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/13.37, allocations: 1.423 MB / 4.405 GB, free: 22.83 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00481/13.37, allocations: 1.779 MB / 4.407 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/13.37, allocations: 4.062 kB / 4.407 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008278/13.38, allocations: 3.506 MB / 4.41 GB, free: 22.57 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00183/13.38, allocations: 4.412 MB / 4.415 GB, free: 18.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/13.38, allocations: 11.44 kB / 4.415 GB, free: 18.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005982/13.38, allocations: 220.8 kB / 4.415 GB, free: 17.99 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/13.39, allocations: 0.513 MB / 4.415 GB, free: 17.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/13.39, allocations: 2.455 MB / 4.418 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/13.39, allocations: 270.9 kB / 4.418 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003903/13.39, allocations: 107.7 kB / 4.418 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/13.39, allocations: 4.719 kB / 4.418 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007109/13.4, allocations: 3.063 MB / 4.421 GB, free: 15.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/13.4, allocations: 13.41 kB / 4.421 GB, free: 15.78 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005012/13.4, allocations: 216.8 kB / 4.421 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/13.4, allocations: 0.5039 MB / 4.422 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/13.4, allocations: 2.459 MB / 4.424 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002666/13.41, allocations: 247.9 kB / 4.424 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/13.41, allocations: 98.53 kB / 4.425 GB, free: 13.64 MB / 0.5886 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,pipe1.statesFM[2].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,source.medium.phase,sink.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.0007342/13.41, allocations: 237.9 kB / 4.425 GB, free: 13.46 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005734/13.41, allocations: 2.547 MB / 4.427 GB, free: 13.26 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004573/13.41, allocations: 193 kB / 4.427 GB, free: 13.16 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008669/13.42, allocations: 6.405 MB / 4.434 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.364e-05/13.42, allocations: 65.53 kB / 4.434 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/13.42, allocations: 5.781 kB / 4.434 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006603/13.43, allocations: 5.363 MB / 4.439 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/13.44, allocations: 9.161 MB / 4.448 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/13.44, allocations: 0 / 4.448 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/13.44, allocations: 366.4 kB / 4.448 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008203/13.45, allocations: 321.2 kB / 4.449 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001702/13.45, allocations: 40.59 kB / 4.449 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/13.45, allocations: 2.633 MB / 4.451 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/13.45, allocations: 1.875 kB / 4.451 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009142/13.46, allocations: 6.364 MB / 4.457 GB, free: 8.352 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/13.46, allocations: 0.7031 MB / 4.458 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005184/13.46, allocations: 24.17 kB / 4.458 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/13.46, allocations: 169.5 kB / 4.458 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/13.46, allocations: 135.2 kB / 4.458 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001654/13.46, allocations: 75.11 kB / 4.458 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001735/13.46, allocations: 1.104 MB / 4.46 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.6e-07/13.46, allocations: 0 / 4.46 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01266/13.48, allocations: 2.737 MB / 4.462 GB, free: 7.797 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (185): * Single equations (assignments): 160 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02451/13.5, allocations: 10.19 MB / 4.472 GB, free: 22.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008179/13.51, allocations: 4.744 MB / 4.477 GB, free: 21.76 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/13.51, allocations: 4.719 kB / 4.477 GB, free: 21.75 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002933/13.51, allocations: 2.165 MB / 4.479 GB, free: 21.61 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005127/13.52, allocations: 0.8575 MB / 4.48 GB, free: 21.57 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/13.53, allocations: 6.798 MB / 4.486 GB, free: 19.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/13.54, allocations: 2.196 MB / 4.489 GB, free: 18.56 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004965/13.54, allocations: 2.602 MB / 4.491 GB, free: 17.05 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/13.54, allocations: 1.227 MB / 4.492 GB, free: 16.91 MB / 0.6042 GB Notification: Performance of SimCode: time 1.413e-06/13.54, allocations: 0 / 4.492 GB, free: 16.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6198/14.16, allocations: 102.2 MB / 4.592 GB, free: 81.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/14.16, allocations: 178.5 kB / 4.592 GB, free: 81.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.861/20.02, allocations: 0 / 4.592 GB, free: 81.17 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat