Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001667/0.001667, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001138/0.001138, allocations: 89.78 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2958/0.2958, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.785e-05/3.788e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1301, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.706/8.836, allocations: 2.847 GB / 3.32 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000374/8.836, allocations: 79.73 kB / 3.32 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.339/14.18, allocations: 1.014 GB / 4.334 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.763e-06/14.18, allocations: 0 / 4.334 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003959/14.18, allocations: 67.92 kB / 4.334 GB, free: 6.969 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01924/14.2, allocations: 4.257 MB / 4.338 GB, free: 2.676 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/14.2, allocations: 8.031 kB / 4.338 GB, free: 2.668 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001488/14.2, allocations: 320.6 kB / 4.338 GB, free: 2.344 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/14.21, allocations: 0.941 MB / 4.339 GB, free: 1.398 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009671/14.22, allocations: 2.192 MB / 4.341 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004598/14.22, allocations: 196.2 kB / 4.342 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001308/14.22, allocations: 227.9 kB / 4.342 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/14.23, allocations: 3.897 MB / 4.346 GB, free: 10.6 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/14.23, allocations: 7.938 kB / 4.346 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006961/14.24, allocations: 103.8 kB / 4.346 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003861/14.24, allocations: 172 kB / 4.346 GB, free: 10.32 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/14.25, allocations: 3.455 MB / 4.349 GB, free: 6.852 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.4965/14.75, allocations: 16.94 MB / 4.366 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/14.76, allocations: 3.073 MB / 4.369 GB, free: 31.74 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004002/14.76, allocations: 1.263 MB / 4.37 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08059/14.84, allocations: 24.42 MB / 4.394 GB, free: 32.9 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00731/14.85, allocations: 1.892 MB / 4.396 GB, free: 32.77 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 7.484e-06/14.85, allocations: 1.312 kB / 4.396 GB, free: 32.77 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.04273/14.89, allocations: 8.92 MB / 4.404 GB, free: 31.75 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001897/14.89, allocations: 257.4 kB / 4.405 GB, free: 31.47 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/14.9, allocations: 1.508 MB / 4.406 GB, free: 31.24 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008057/14.9, allocations: 65.52 kB / 4.406 GB, free: 31.21 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001312/14.9, allocations: 0.963 MB / 4.407 GB, free: 30.84 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001354/14.9, allocations: 0.7038 MB / 4.408 GB, free: 30.48 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/14.9, allocations: 50.41 kB / 4.408 GB, free: 30.48 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002867/14.9, allocations: 400.2 kB / 4.408 GB, free: 30.17 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/14.9, allocations: 1.146 MB / 4.409 GB, free: 30.16 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003931/14.91, allocations: 1.651 MB / 4.411 GB, free: 29.65 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00383/14.91, allocations: 1.405 MB / 4.412 GB, free: 29.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.201e-05/14.91, allocations: 4.406 kB / 4.412 GB, free: 29.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01135/14.92, allocations: 3.394 MB / 4.416 GB, free: 29.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002247/14.92, allocations: 4.944 MB / 4.42 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.165e-05/14.92, allocations: 10.97 kB / 4.42 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/14.93, allocations: 338 kB / 4.421 GB, free: 24.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005162/14.93, allocations: 0.5955 MB / 4.421 GB, free: 24.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/14.93, allocations: 3.096 MB / 4.424 GB, free: 21.56 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005576/14.94, allocations: 340.6 kB / 4.425 GB, free: 21.55 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008309/14.94, allocations: 122.2 kB / 4.425 GB, free: 21.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/14.94, allocations: 3.719 kB / 4.425 GB, free: 21.55 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009488/14.95, allocations: 3.238 MB / 4.428 GB, free: 21.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-05/14.95, allocations: 13.12 kB / 4.428 GB, free: 21.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/14.95, allocations: 335 kB / 4.428 GB, free: 21.36 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/14.96, allocations: 0.5872 MB / 4.429 GB, free: 21.36 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/14.96, allocations: 3.1 MB / 4.432 GB, free: 18.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/14.97, allocations: 328.9 kB / 4.432 GB, free: 18.76 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006838/14.97, allocations: 118.3 kB / 4.432 GB, free: 18.76 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00111/14.97, allocations: 332.7 kB / 4.433 GB, free: 18.58 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007946/14.97, allocations: 233.6 kB / 4.433 GB, free: 18.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/14.99, allocations: 8.209 MB / 4.441 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001141/14.99, allocations: 92.84 kB / 4.441 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/14.99, allocations: 4.5 kB / 4.441 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01959/15.01, allocations: 7.114 MB / 4.448 GB, free: 16.76 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04585/15.05, allocations: 13.22 MB / 4.461 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.231e-05/15.05, allocations: 3.906 kB / 4.461 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005526/15.06, allocations: 498.8 kB / 4.461 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003903/15.06, allocations: 460.7 kB / 4.462 GB, free: 15.08 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008982/15.06, allocations: 79.16 kB / 4.462 GB, free: 15.08 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/15.07, allocations: 3.224 MB / 4.465 GB, free: 12.48 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.59e-05/15.07, allocations: 6.062 kB / 4.465 GB, free: 12.48 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/15.09, allocations: 8.24 MB / 4.473 GB, free: 11.05 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004681/15.1, allocations: 0.8299 MB / 4.474 GB, free: 26.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001729/15.1, allocations: 61.62 kB / 4.474 GB, free: 26.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006423/15.11, allocations: 241.8 kB / 4.474 GB, free: 26.69 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/15.11, allocations: 202.5 kB / 4.474 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008431/15.11, allocations: 93.84 kB / 4.474 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005057/15.12, allocations: 1.325 MB / 4.476 GB, free: 26.52 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.004e-06/15.12, allocations: 0 / 4.476 GB, free: 26.52 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01843/15.13, allocations: 2.948 MB / 4.479 GB, free: 26.41 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03358/15.17, allocations: 13.08 MB / 4.491 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01449/15.18, allocations: 5.561 MB / 4.497 GB, free: 22.59 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/15.18, allocations: 0 / 4.497 GB, free: 22.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00713/15.19, allocations: 2.947 MB / 4.5 GB, free: 22.45 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01071/15.2, allocations: 1.221 MB / 4.501 GB, free: 22.41 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02421/15.22, allocations: 8.09 MB / 4.509 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002727/15.23, allocations: 2.346 MB / 4.511 GB, free: 20.08 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003324/15.23, allocations: 1.456 MB / 4.513 GB, free: 20.07 MB / 0.5886 GB Notification: Performance of SimCode: time 1.823e-06/15.23, allocations: 0 / 4.513 GB, free: 20.07 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.458/21.69, allocations: 154.1 MB / 4.663 GB, free: 68.57 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat