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.0023/0.0023, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 93.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.312/0.312, allocations: 43.5 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.35e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4334, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.747/9.181, allocations: 2.846 GB / 3.312 GB, free: 99.91 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/9.181, allocations: 80.94 kB / 3.312 GB, free: 99.91 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 5.391/14.57, allocations: 1.005 GB / 4.317 GB, free: 36.32 MB / 0.5421 GB Notification: Performance of FrontEnd: time 3.798e-06/14.57, allocations: 0 / 4.317 GB, free: 36.32 MB / 0.5421 GB Notification: Performance of Transformations before backend: time 0.0003645/14.57, allocations: 76.61 kB / 4.318 GB, free: 36.3 MB / 0.5421 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.0201/14.59, allocations: 4.246 MB / 4.322 GB, free: 34.45 MB / 0.5421 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/14.59, allocations: 9.906 kB / 4.322 GB, free: 34.45 MB / 0.5421 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/14.6, allocations: 0.9405 MB / 4.323 GB, free: 34.3 MB / 0.5421 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009493/14.61, allocations: 2.192 MB / 4.325 GB, free: 33.84 MB / 0.5421 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003079/14.61, allocations: 94.91 kB / 4.325 GB, free: 33.84 MB / 0.5421 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/14.61, allocations: 136.6 kB / 4.325 GB, free: 33.84 MB / 0.5421 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008633/14.62, allocations: 2.813 MB / 4.328 GB, free: 33.82 MB / 0.5421 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/14.63, allocations: 3.031 MB / 4.331 GB, free: 33.23 MB / 0.5421 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001159/14.63, allocations: 7.281 kB / 4.331 GB, free: 33.23 MB / 0.5421 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000749/14.63, allocations: 6.688 kB / 4.331 GB, free: 33.23 MB / 0.5421 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000339/14.63, allocations: 172 kB / 4.331 GB, free: 33.22 MB / 0.5421 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.1895/14.82, allocations: 63.65 MB / 4.393 GB, free: 25.79 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006005/14.83, allocations: 2.358 MB / 4.395 GB, free: 25.18 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003049/14.83, allocations: 1.197 MB / 4.396 GB, free: 25.17 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05414/14.89, allocations: 16.81 MB / 4.413 GB, free: 14.27 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003732/14.89, allocations: 1.394 MB / 4.414 GB, free: 14.09 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=186): time 6.632e-06/14.89, allocations: 3.938 kB / 4.414 GB, free: 14.09 MB / 0.5733 GB Notification: Performance of matching and sorting (n=206): time 0.06477/14.96, allocations: 10.49 MB / 4.425 GB, free: 12.16 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002444/14.96, allocations: 364.9 kB / 4.425 GB, free: 11.75 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002562/14.96, allocations: 1.154 MB / 4.426 GB, free: 11.57 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0007527/14.96, allocations: 35.23 kB / 4.426 GB, free: 11.53 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.001234/14.96, allocations: 1.013 MB / 4.427 GB, free: 11 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.001234/14.96, allocations: 0.6614 MB / 4.428 GB, free: 10.56 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/14.96, allocations: 3.812 kB / 4.428 GB, free: 10.56 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0002695/14.96, allocations: 412.3 kB / 4.428 GB, free: 10.24 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003043/14.97, allocations: 1.116 MB / 4.429 GB, free: 10.23 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003782/14.97, allocations: 1.618 MB / 4.431 GB, free: 9.715 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01581/14.99, allocations: 2.095 MB / 4.433 GB, free: 9.66 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.791e-05/14.99, allocations: 3.906 kB / 4.433 GB, free: 9.66 MB / 0.5733 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.02227/15.01, allocations: 3.962 MB / 4.437 GB, free: 7.949 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.002036/15.01, allocations: 4.948 MB / 4.441 GB, free: 18.73 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.937e-05/15.01, allocations: 12 kB / 4.441 GB, free: 18.72 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/15.01, allocations: 318.9 kB / 4.442 GB, free: 18.52 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005123/15.02, allocations: 0.5973 MB / 4.442 GB, free: 18.08 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/15.02, allocations: 3.144 MB / 4.445 GB, free: 15.15 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005712/15.03, allocations: 330.8 kB / 4.446 GB, free: 14.91 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009954/15.03, allocations: 116.7 kB / 4.446 GB, free: 14.82 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/15.03, allocations: 4 kB / 4.446 GB, free: 14.82 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02021/15.05, allocations: 3.583 MB / 4.449 GB, free: 12.79 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.489e-05/15.05, allocations: 16.58 kB / 4.449 GB, free: 12.77 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/15.05, allocations: 312.3 kB / 4.45 GB, free: 12.58 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005023/15.05, allocations: 0.5868 MB / 4.45 GB, free: 12.11 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003342/15.06, allocations: 3.145 MB / 4.453 GB, free: 9.168 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/15.06, allocations: 302.4 kB / 4.454 GB, free: 8.945 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008604/15.06, allocations: 118.5 kB / 4.454 GB, free: 8.863 MB / 0.589 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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,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,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001269/15.06, allocations: 252.9 kB / 4.454 GB, free: 8.617 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02156/15.09, allocations: 3.489 MB / 4.457 GB, free: 6.52 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/15.09, allocations: 209.2 kB / 4.458 GB, free: 6.316 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03208/15.12, allocations: 8.105 MB / 4.465 GB, free: 0.6719 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001283/15.12, allocations: 84.2 kB / 4.466 GB, free: 0.6211 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/15.12, allocations: 10.19 kB / 4.466 GB, free: 0.6133 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5003/15.62, allocations: 7.347 MB / 4.473 GB, free: 81.86 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04529/15.66, allocations: 12.65 MB / 4.485 GB, free: 80.62 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.6e-05/15.66, allocations: 9.703 kB / 4.485 GB, free: 80.61 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003793/15.67, allocations: 455 kB / 4.486 GB, free: 80.61 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/15.67, allocations: 437.5 kB / 4.486 GB, free: 80.57 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006722/15.67, allocations: 53.03 kB / 4.486 GB, free: 80.57 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/15.67, allocations: 3.373 MB / 4.489 GB, free: 77.99 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.057e-05/15.67, allocations: 9.875 kB / 4.489 GB, free: 77.99 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02925/15.7, allocations: 8.486 MB / 4.498 GB, free: 76.7 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002922/15.71, allocations: 0.8103 MB / 4.498 GB, free: 76.54 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/15.71, allocations: 32.28 kB / 4.498 GB, free: 76.54 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003964/15.71, allocations: 193.6 kB / 4.499 GB, free: 76.53 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007385/15.71, allocations: 188.4 kB / 4.499 GB, free: 76.52 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000331/15.71, allocations: 98.22 kB / 4.499 GB, free: 76.52 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002484/15.72, allocations: 1.146 MB / 4.5 GB, free: 76.38 MB / 0.589 GB Notification: Performance of sort global known variables: time 7.31e-07/15.72, allocations: 0.875 kB / 4.5 GB, free: 76.38 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01447/15.73, allocations: 2.793 MB / 4.503 GB, free: 76.38 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,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 (230): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * 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.0442/15.77, allocations: 13.81 MB / 4.516 GB, free: 72.74 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01723/15.79, allocations: 5.294 MB / 4.521 GB, free: 72.43 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 2.193e-05/15.79, allocations: 7.984 kB / 4.521 GB, free: 72.43 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.00899/15.8, allocations: 2.684 MB / 4.524 GB, free: 72.3 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0125/15.81, allocations: 1.006 MB / 4.525 GB, free: 72.28 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03327/15.85, allocations: 7.572 MB / 4.532 GB, free: 70.8 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004468/15.85, allocations: 2.29 MB / 4.535 GB, free: 70.05 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005351/15.86, allocations: 1.403 MB / 4.536 GB, free: 70.05 MB / 0.589 GB Notification: Performance of SimCode: time 2.335e-06/15.86, allocations: 0 / 4.536 GB, free: 70.05 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.889/21.75, allocations: 149.6 MB / 4.682 GB, free: 73.57 MB / 0.589 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