Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001502/0.001502, 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.089/2.089, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001136/0.001136, allocations: 94.62 kB / 262.1 MB, free: 13.88 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.3164/0.3164, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.357e-05/2.368e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4418/0.4419, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.013/2.454, allocations: 0.6584 GB / 1.124 GB, free: 78.28 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/2.455, allocations: 78.83 kB / 1.125 GB, free: 78.24 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.392/5.847, allocations: 0.6026 GB / 1.727 GB, free: 40.66 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.114e-06/5.847, allocations: 3.938 kB / 1.727 GB, free: 40.66 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0003253/5.847, allocations: 60.91 kB / 1.727 GB, free: 40.64 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01479/5.862, allocations: 3.19 MB / 1.73 GB, free: 38.83 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/5.862, allocations: 13.06 kB / 1.73 GB, free: 38.83 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005017/5.867, allocations: 458.1 kB / 1.731 GB, free: 38.68 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008684/5.876, allocations: 1.999 MB / 1.733 GB, free: 37.79 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/5.876, allocations: 57.5 kB / 1.733 GB, free: 37.79 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009229/5.877, allocations: 106.2 kB / 1.733 GB, free: 37.79 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006458/5.884, allocations: 2.215 MB / 1.735 GB, free: 37.02 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007007/5.891, allocations: 2.475 MB / 1.737 GB, free: 35.91 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.498e-05/5.891, allocations: 11.38 kB / 1.737 GB, free: 35.9 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003965/5.891, allocations: 6.562 kB / 1.737 GB, free: 35.9 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003014/5.892, allocations: 153.9 kB / 1.738 GB, free: 35.88 MB / 0.5108 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.02572/5.917, allocations: 11.25 MB / 1.749 GB, free: 27.87 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004608/5.922, allocations: 1.765 MB / 1.75 GB, free: 27.02 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002568/5.925, allocations: 1.058 MB / 1.751 GB, free: 26.62 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001431/5.926, allocations: 455.7 kB / 1.752 GB, free: 26.3 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002999/5.929, allocations: 1.256 MB / 1.753 GB, free: 25.78 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=167): time 6.613e-06/5.929, allocations: 0 / 1.753 GB, free: 25.78 MB / 0.5108 GB Notification: Performance of matching and sorting (n=195): time 0.07057/6, allocations: 10.45 MB / 1.763 GB, free: 19.88 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/6, allocations: 364 kB / 1.764 GB, free: 19.45 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/6.002, allocations: 1.096 MB / 1.765 GB, free: 18.46 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.000743/6.003, allocations: 33.64 kB / 1.765 GB, free: 18.42 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008449/6.004, allocations: 0.8926 MB / 1.766 GB, free: 17.58 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009943/6.005, allocations: 0.6315 MB / 1.766 GB, free: 17 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/6.005, allocations: 0 / 1.766 GB, free: 17 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001843/6.005, allocations: 398.6 kB / 1.767 GB, free: 16.62 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/6.008, allocations: 1.031 MB / 1.768 GB, free: 15.7 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002884/6.011, allocations: 1.493 MB / 1.769 GB, free: 14.17 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01686/6.028, allocations: 2.39 MB / 1.771 GB, free: 12.34 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.768e-05/6.028, allocations: 0 / 1.771 GB, free: 12.34 MB / 0.5108 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.02214/6.05, allocations: 4.115 MB / 1.775 GB, free: 8.754 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009214/6.051, allocations: 4.17 MB / 1.779 GB, free: 4.254 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/6.051, allocations: 8 kB / 1.779 GB, free: 4.246 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/6.052, allocations: 285.6 kB / 1.78 GB, free: 3.957 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/6.057, allocations: 0.5578 MB / 1.78 GB, free: 3.398 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/6.059, allocations: 3.027 MB / 1.783 GB, free: 248 kB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004768/6.064, allocations: 179.7 kB / 1.783 GB, free: 68 kB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/6.065, allocations: 207.9 kB / 1.784 GB, free: 15.86 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/6.065, allocations: 4 kB / 1.784 GB, free: 15.86 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02189/6.087, allocations: 3.722 MB / 1.787 GB, free: 12.12 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-05/6.087, allocations: 8 kB / 1.787 GB, free: 12.11 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009976/6.088, allocations: 283.1 kB / 1.787 GB, free: 11.83 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004903/6.093, allocations: 0.5539 MB / 1.788 GB, free: 11.27 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/6.096, allocations: 3.027 MB / 1.791 GB, free: 8.117 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/6.1, allocations: 171.9 kB / 1.791 GB, free: 7.949 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007009/6.101, allocations: 196 kB / 1.791 GB, free: 7.758 MB / 0.5265 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001023/6.102, allocations: 234.3 kB / 1.792 GB, free: 7.512 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02199/6.124, allocations: 3.668 MB / 1.795 GB, free: 3.816 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009465/6.125, allocations: 205.5 kB / 1.795 GB, free: 3.613 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4758/6.6, allocations: 4.477 MB / 1.8 GB, free: 55.7 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.683e-05/6.601, allocations: 24.16 kB / 1.8 GB, free: 55.7 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/6.601, allocations: 1.5 kB / 1.8 GB, free: 55.7 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02254/6.623, allocations: 3.831 MB / 1.803 GB, free: 55.2 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/6.661, allocations: 7.605 MB / 1.811 GB, free: 54.06 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.94e-05/6.661, allocations: 4.438 kB / 1.811 GB, free: 54.06 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004138/6.665, allocations: 455.8 kB / 1.811 GB, free: 54.06 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/6.666, allocations: 290.9 kB / 1.812 GB, free: 54.02 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006876/6.667, allocations: 83.55 kB / 1.812 GB, free: 54.02 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003319/6.67, allocations: 3.723 MB / 1.815 GB, free: 50.77 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/6.671, allocations: 9.219 kB / 1.815 GB, free: 50.77 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/6.698, allocations: 5.701 MB / 1.821 GB, free: 49.84 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/6.7, allocations: 0.5278 MB / 1.821 GB, free: 49.75 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008325/6.701, allocations: 36.14 kB / 1.821 GB, free: 49.75 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003044/6.704, allocations: 101.2 kB / 1.822 GB, free: 49.75 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005365/6.705, allocations: 181.8 kB / 1.822 GB, free: 49.74 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005202/6.705, allocations: 181.9 kB / 1.822 GB, free: 49.74 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.00172/6.707, allocations: 0.8013 MB / 1.823 GB, free: 49.63 MB / 0.5265 GB Notification: Performance of sort global known variables: time 5.61e-07/6.707, allocations: 0 / 1.823 GB, free: 49.63 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.009562/6.717, allocations: 1.915 MB / 1.825 GB, free: 49.63 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (203): * Single equations (assignments): 196 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03511/6.752, allocations: 10.43 MB / 1.835 GB, free: 46.44 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.01213/6.764, allocations: 4.341 MB / 1.839 GB, free: 46.14 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 1.841e-05/6.764, allocations: 3.594 kB / 1.839 GB, free: 46.14 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.00434/6.768, allocations: 1.548 MB / 1.84 GB, free: 45.91 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00933/6.778, allocations: 0.9255 MB / 1.841 GB, free: 45.9 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01919/6.797, allocations: 5.106 MB / 1.846 GB, free: 44.86 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/6.799, allocations: 1.744 MB / 1.848 GB, free: 44.12 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003909/6.803, allocations: 1.09 MB / 1.849 GB, free: 44.12 MB / 0.5265 GB Notification: Performance of SimCode: time 1.593e-06/6.803, allocations: 0 / 1.849 GB, free: 44.12 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.71/11.51, allocations: 105.1 MB / 1.952 GB, free: 17.59 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat