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.001016/0.001016, allocations: 170 kB / 8.739 MB, free: 348 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.446/1.446, allocations: 221.5 MB / 230.7 MB, free: 7.504 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.0008341/0.0008341, allocations: 92.2 kB / 281.6 MB, free: 5.266 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.2012/0.2012, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.603e-05, allocations: 224 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1395, allocations: 61.92 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.941/9.08, allocations: 2.847 GB / 3.342 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000439/9.081, allocations: 75.97 kB / 3.342 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.432/12.51, allocations: 0.8753 GB / 4.217 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.184e-06/12.51, allocations: 0 / 4.217 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002025/12.51, allocations: 59.89 kB / 4.217 GB, free: 35.95 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01529/12.53, allocations: 3.765 MB / 4.221 GB, free: 33.88 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/12.53, allocations: 11.58 kB / 4.221 GB, free: 33.88 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006306/12.53, allocations: 0.7918 MB / 4.222 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005529/12.54, allocations: 1.968 MB / 4.223 GB, free: 32.78 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/12.54, allocations: 88.89 kB / 4.224 GB, free: 32.77 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004847/12.54, allocations: 105.2 kB / 4.224 GB, free: 32.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003837/12.54, allocations: 2.303 MB / 4.226 GB, free: 31.97 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004521/12.55, allocations: 2.561 MB / 4.228 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.499e-05/12.55, allocations: 7.625 kB / 4.228 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/12.55, allocations: 11.05 kB / 4.228 GB, free: 30.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002266/12.55, allocations: 147.2 kB / 4.229 GB, free: 30.77 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.6933/13.24, allocations: 124.8 MB / 4.35 GB, free: 31.27 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/13.25, allocations: 1.446 MB / 4.352 GB, free: 31.23 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/13.25, allocations: 0.9711 MB / 4.353 GB, free: 31.21 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02925/13.28, allocations: 17.07 MB / 4.369 GB, free: 20.06 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002016/13.28, allocations: 1.163 MB / 4.371 GB, free: 19.9 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001381/13.28, allocations: 138.3 kB / 4.371 GB, free: 19.9 MB / 0.573 GB Notification: Performance of pre-optimization done (n=145): time 5.34e-06/13.28, allocations: 0 / 4.371 GB, free: 19.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=157): time 0.03189/13.31, allocations: 8.925 MB / 4.379 GB, free: 18.38 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/13.31, allocations: 361.2 kB / 4.38 GB, free: 17.97 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/13.31, allocations: 1.024 MB / 4.381 GB, free: 17.81 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002277/13.31, allocations: 36.09 kB / 4.381 GB, free: 17.78 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008011/13.31, allocations: 0.9242 MB / 4.382 GB, free: 17.47 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004958/13.31, allocations: 0.5096 MB / 4.382 GB, free: 17.2 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/13.31, allocations: 3.281 kB / 4.382 GB, free: 17.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001164/13.31, allocations: 375.6 kB / 4.383 GB, free: 16.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/13.32, allocations: 0.9114 MB / 4.383 GB, free: 16.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/13.32, allocations: 1.301 MB / 4.385 GB, free: 16.51 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007828/13.33, allocations: 1.835 MB / 4.387 GB, free: 16.46 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.24e-05/13.33, allocations: 7.344 kB / 4.387 GB, free: 16.46 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01209/13.34, allocations: 3.54 MB / 4.39 GB, free: 16.23 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008303/13.34, allocations: 3.784 MB / 4.394 GB, free: 12.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/13.34, allocations: 11.25 kB / 4.394 GB, free: 12.33 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/13.34, allocations: 0.4888 MB / 4.394 GB, free: 12.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002066/13.34, allocations: 448.9 kB / 4.395 GB, free: 12.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/13.34, allocations: 2.802 MB / 4.397 GB, free: 26.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/13.35, allocations: 275.5 kB / 4.398 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006496/13.35, allocations: 100.2 kB / 4.398 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/13.35, allocations: 5.094 kB / 4.398 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01227/13.36, allocations: 3.026 MB / 4.401 GB, free: 26.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.252e-05/13.36, allocations: 10.16 kB / 4.401 GB, free: 26.07 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004698/13.36, allocations: 179.3 kB / 4.401 GB, free: 26.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/13.36, allocations: 463.9 kB / 4.401 GB, free: 26.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/13.37, allocations: 1.89 MB / 4.403 GB, free: 24.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/13.37, allocations: 240.8 kB / 4.403 GB, free: 24.45 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006731/13.37, allocations: 103.9 kB / 4.403 GB, free: 24.45 MB / 0.5886 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,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,source.medium.phase,sink.medium.phase,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.001322/13.37, allocations: 227.5 kB / 4.404 GB, free: 24.28 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01209/13.38, allocations: 2.99 MB / 4.407 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009494/13.38, allocations: 177.8 kB / 4.407 GB, free: 23.98 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0174/13.4, allocations: 6.77 MB / 4.413 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.792e-05/13.4, allocations: 72.27 kB / 4.413 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.418e-05/13.4, allocations: 3.953 kB / 4.413 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01306/13.41, allocations: 5.902 MB / 4.419 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02265/13.44, allocations: 10.08 MB / 4.429 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.047e-05/13.44, allocations: 6.844 kB / 4.429 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/13.44, allocations: 313.1 kB / 4.429 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/13.44, allocations: 1.235 MB / 4.431 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/13.44, allocations: 43.58 kB / 4.431 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/13.44, allocations: 3.413 MB / 4.434 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/13.44, allocations: 9.938 kB / 4.434 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/13.46, allocations: 7.193 MB / 4.441 GB, free: 18.37 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001879/13.46, allocations: 0.6648 MB / 4.442 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008126/13.46, allocations: 23.66 kB / 4.442 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002196/13.47, allocations: 148.7 kB / 4.442 GB, free: 18.09 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003545/13.47, allocations: 138.7 kB / 4.442 GB, free: 18.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/13.47, allocations: 78.77 kB / 4.442 GB, free: 18.08 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002163/13.47, allocations: 1.008 MB / 4.443 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.8e-07/13.47, allocations: 0.9375 kB / 4.443 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01279/13.48, allocations: 2.504 MB / 4.445 GB, free: 17.87 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.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.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.03104/13.51, allocations: 11.73 MB / 4.457 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009194/13.52, allocations: 4.312 MB / 4.461 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/13.52, allocations: 0 / 4.461 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003683/13.53, allocations: 2.144 MB / 4.463 GB, free: 14.04 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005781/13.53, allocations: 0.7927 MB / 4.464 GB, free: 14 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/13.55, allocations: 6.347 MB / 4.47 GB, free: 12.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002821/13.55, allocations: 2.103 MB / 4.472 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005985/13.56, allocations: 2.543 MB / 4.475 GB, free: 9.254 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/13.56, allocations: 1.11 MB / 4.476 GB, free: 9.133 MB / 0.5886 GB Notification: Performance of SimCode: time 1.634e-06/13.56, allocations: 0 / 4.476 GB, free: 9.133 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7374/14.3, allocations: 96.61 MB / 4.57 GB, free: 98.59 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002773/14.3, allocations: 185.4 kB / 4.57 GB, free: 98.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.458/19.76, allocations: 2.969 kB / 4.57 GB, free: 98.4 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