Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.001184/0.001184, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.501/1.501, allocations: 221.3 MB / 236 MB, free: 2.969 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.0009993/0.0009993, allocations: 87.86 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.255/0.255, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.996e-05/4.999e-05, allocations: 4.219 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1845, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.861/9.046, allocations: 2.851 GB / 3.353 GB, free: 17.78 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/9.046, allocations: 80.64 kB / 3.353 GB, free: 17.74 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.918/12.96, allocations: 0.9176 GB / 4.271 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.423e-06/12.96, allocations: 0 / 4.271 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001906/12.96, allocations: 64.11 kB / 4.271 GB, free: 37.84 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01472/12.98, allocations: 3.981 MB / 4.275 GB, free: 36.12 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/12.98, allocations: 10.47 kB / 4.275 GB, free: 36.11 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009778/12.98, allocations: 302 kB / 4.275 GB, free: 36.06 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006472/12.99, allocations: 0.8832 MB / 4.276 GB, free: 35.92 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006107/12.99, allocations: 2.095 MB / 4.278 GB, free: 35.47 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/12.99, allocations: 183.3 kB / 4.278 GB, free: 35.47 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005114/12.99, allocations: 206.7 kB / 4.278 GB, free: 35.47 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007462/13, allocations: 3.647 MB / 4.282 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-05/13, allocations: 7.156 kB / 4.282 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002963/13, allocations: 87.67 kB / 4.282 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001914/13, allocations: 172.1 kB / 4.282 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006862/13.01, allocations: 3.22 MB / 4.285 GB, free: 34.89 MB / 0.5573 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.01761/13.03, allocations: 15.63 MB / 4.301 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/13.03, allocations: 2.714 MB / 4.303 GB, free: 24.83 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/13.03, allocations: 1.167 MB / 4.304 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04334/13.08, allocations: 24.58 MB / 4.328 GB, free: 25.74 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004587/13.08, allocations: 1.73 MB / 4.33 GB, free: 25.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 5.711e-06/13.08, allocations: 0 / 4.33 GB, free: 25.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.02074/13.1, allocations: 7.88 MB / 4.338 GB, free: 24.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/13.1, allocations: 253.2 kB / 4.338 GB, free: 24.21 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002529/13.1, allocations: 1.402 MB / 4.339 GB, free: 24.03 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003808/13.1, allocations: 60.45 kB / 4.339 GB, free: 24 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008466/13.11, allocations: 0.9766 MB / 4.34 GB, free: 23.62 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006037/13.11, allocations: 0.6306 MB / 4.341 GB, free: 23.22 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/13.11, allocations: 40.25 kB / 4.341 GB, free: 23.22 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002089/13.11, allocations: 388.2 kB / 4.341 GB, free: 22.91 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/13.11, allocations: 1.035 MB / 4.342 GB, free: 22.91 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/13.11, allocations: 1.497 MB / 4.344 GB, free: 22.44 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/13.11, allocations: 1.27 MB / 4.345 GB, free: 22.34 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/13.11, allocations: 2.688 kB / 4.345 GB, free: 22.34 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004821/13.12, allocations: 3.149 MB / 4.348 GB, free: 22.05 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001767/13.12, allocations: 4.487 MB / 4.352 GB, free: 17.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.201e-05/13.12, allocations: 9.625 kB / 4.353 GB, free: 17.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008104/13.12, allocations: 233.9 kB / 4.353 GB, free: 17.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/13.12, allocations: 0.5301 MB / 4.353 GB, free: 17.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/13.12, allocations: 2.421 MB / 4.356 GB, free: 15.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/13.13, allocations: 314.9 kB / 4.356 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002758/13.13, allocations: 106.5 kB / 4.356 GB, free: 15.16 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.467e-06/13.13, allocations: 6.344 kB / 4.356 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004255/13.13, allocations: 2.875 MB / 4.359 GB, free: 15 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/13.13, allocations: 11.12 kB / 4.359 GB, free: 15 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000692/13.13, allocations: 236.4 kB / 4.359 GB, free: 14.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/13.13, allocations: 0.5122 MB / 4.36 GB, free: 14.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/13.13, allocations: 2.429 MB / 4.362 GB, free: 12.89 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/13.14, allocations: 313 kB / 4.362 GB, free: 12.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000409/13.14, allocations: 102.2 kB / 4.362 GB, free: 12.85 MB / 0.573 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0009257/13.14, allocations: 300.9 kB / 4.363 GB, free: 12.67 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006563/13.14, allocations: 216.2 kB / 4.363 GB, free: 12.57 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/13.15, allocations: 7.569 MB / 4.37 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.577e-05/13.15, allocations: 87.34 kB / 4.37 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/13.15, allocations: 0 / 4.37 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00715/13.16, allocations: 6.566 MB / 4.377 GB, free: 10.08 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/13.17, allocations: 12.26 MB / 4.389 GB, free: 4.453 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/13.17, allocations: 3.625 kB / 4.389 GB, free: 4.453 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/13.18, allocations: 445.8 kB / 4.389 GB, free: 4.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/13.18, allocations: 339.9 kB / 4.389 GB, free: 4.301 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/13.18, allocations: 73.17 kB / 4.39 GB, free: 4.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/13.18, allocations: 2.532 MB / 4.392 GB, free: 1.992 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/13.18, allocations: 7.344 kB / 4.392 GB, free: 1.988 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009553/13.19, allocations: 7.576 MB / 4.399 GB, free: 14.11 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/13.19, allocations: 0.7744 MB / 4.4 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006926/13.19, allocations: 61.11 kB / 4.4 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002419/13.19, allocations: 221.9 kB / 4.4 GB, free: 13.55 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003643/13.19, allocations: 185.8 kB / 4.401 GB, free: 13.51 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002149/13.19, allocations: 87.3 kB / 4.401 GB, free: 13.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002392/13.2, allocations: 1.254 MB / 4.402 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.52e-07/13.2, allocations: 0 / 4.402 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01278/13.21, allocations: 2.783 MB / 4.405 GB, free: 10.91 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.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 (214): * Single equations (assignments): 185 * 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.02641/13.24, allocations: 12.24 MB / 4.417 GB, free: 15.76 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01066/13.25, allocations: 5.161 MB / 4.422 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/13.25, allocations: 128 / 4.422 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004278/13.25, allocations: 2.67 MB / 4.424 GB, free: 8.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005962/13.26, allocations: 1.065 MB / 4.425 GB, free: 7.707 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01891/13.28, allocations: 7.579 MB / 4.433 GB, free: 0.9883 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3931/13.67, allocations: 2.297 MB / 4.435 GB, free: 79.97 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.007407/13.68, allocations: 2.596 MB / 4.437 GB, free: 79.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/13.68, allocations: 1.32 MB / 4.439 GB, free: 79.95 MB / 0.6042 GB Notification: Performance of SimCode: time 1.172e-06/13.68, allocations: 0 / 4.439 GB, free: 79.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2027/13.88, allocations: 125 MB / 4.561 GB, free: 70.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/13.88, allocations: 240.8 kB / 4.561 GB, free: 70.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.006/20.89, allocations: 0 / 4.561 GB, free: 70.42 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat