Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.002241/0.002241, allocations: 186.3 kB / 16.4 MB, free: 5.75 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/2, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001191/0.001191, allocations: 97.72 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.529/0.529, allocations: 43.54 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005037/0.0005034, allocations: 16 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1485, allocations: 58.85 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.364/2.512, allocations: 0.6918 GB / 1.171 GB, free: 107 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/2.513, allocations: 77.27 kB / 1.171 GB, free: 107 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.249/5.762, allocations: 0.5559 GB / 1.727 GB, free: 41.02 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.325e-06/5.762, allocations: 0 / 1.727 GB, free: 41.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003475/5.762, allocations: 62.5 kB / 1.727 GB, free: 41.02 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01544/5.778, allocations: 3.336 MB / 1.73 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/5.778, allocations: 10.62 kB / 1.73 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001566/5.779, allocations: 251.4 kB / 1.73 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005057/5.785, allocations: 450 kB / 1.731 GB, free: 39.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008916/5.793, allocations: 1.957 MB / 1.732 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/5.794, allocations: 128.7 kB / 1.733 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001163/5.795, allocations: 163.4 kB / 1.733 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009468/5.804, allocations: 2.633 MB / 1.735 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.529e-05/5.805, allocations: 7.734 kB / 1.735 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005352/5.805, allocations: 73.03 kB / 1.735 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003619/5.805, allocations: 154.6 kB / 1.736 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008386/5.814, allocations: 2.264 MB / 1.738 GB, free: 38.8 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02793/5.842, allocations: 11.03 MB / 1.748 GB, free: 32.95 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005858/5.848, allocations: 1.816 MB / 1.75 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001625/5.849, allocations: 455.9 kB / 1.751 GB, free: 32.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004118/5.854, allocations: 1.297 MB / 1.752 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 5.791e-06/5.854, allocations: 4.688 kB / 1.752 GB, free: 32.18 MB / 0.5261 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.05055/5.904, allocations: 11.2 MB / 1.763 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/5.904, allocations: 365.8 kB / 1.763 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003223/5.908, allocations: 1.418 MB / 1.765 GB, free: 29.63 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008061/5.909, allocations: 62.67 kB / 1.765 GB, free: 29.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008919/5.909, allocations: 0.8044 MB / 1.765 GB, free: 29.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00122/5.911, allocations: 0.6174 MB / 1.766 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003595/5.911, allocations: 43.44 kB / 1.766 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001908/5.911, allocations: 390.5 kB / 1.767 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003318/5.915, allocations: 1.041 MB / 1.768 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004069/5.919, allocations: 1.485 MB / 1.769 GB, free: 28.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003981/5.923, allocations: 1.304 MB / 1.77 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-05/5.923, allocations: 3.25 kB / 1.77 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009819/5.933, allocations: 3.039 MB / 1.773 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009252/5.934, allocations: 3.644 MB / 1.777 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.188e-05/5.934, allocations: 12.66 kB / 1.777 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007875/5.934, allocations: 186.9 kB / 1.777 GB, free: 23.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00485/5.939, allocations: 0.5379 MB / 1.777 GB, free: 23.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/5.941, allocations: 2.33 MB / 1.78 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004703/5.946, allocations: 211.9 kB / 1.78 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009727/5.947, allocations: 188.3 kB / 1.78 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/5.947, allocations: 9.609 kB / 1.78 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008667/5.956, allocations: 2.883 MB / 1.783 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.081e-05/5.956, allocations: 10.75 kB / 1.783 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000629/5.956, allocations: 197.2 kB / 1.783 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/5.961, allocations: 0.5215 MB / 1.784 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/5.964, allocations: 2.326 MB / 1.786 GB, free: 35.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003664/5.967, allocations: 212.6 kB / 1.786 GB, free: 35.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007599/5.968, allocations: 188.7 kB / 1.786 GB, free: 35.64 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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.002312/5.971, allocations: 0.6917 MB / 1.787 GB, free: 35.38 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007944/5.971, allocations: 216 kB / 1.787 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/5.984, allocations: 3.758 MB / 1.791 GB, free: 35 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/5.984, allocations: 18.47 kB / 1.791 GB, free: 35 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/5.984, allocations: 7.453 kB / 1.791 GB, free: 34.99 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007246/5.992, allocations: 2.785 MB / 1.794 GB, free: 34.41 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02089/6.013, allocations: 6.664 MB / 1.8 GB, free: 33.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/6.013, allocations: 8.312 kB / 1.8 GB, free: 33.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003788/6.016, allocations: 432.7 kB / 1.801 GB, free: 33.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007573/6.017, allocations: 186.6 kB / 1.801 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005988/6.018, allocations: 94.95 kB / 1.801 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002902/6.021, allocations: 3.076 MB / 1.804 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/6.021, allocations: 8.719 kB / 1.804 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/6.032, allocations: 4.708 MB / 1.808 GB, free: 29.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002286/6.035, allocations: 0.5427 MB / 1.809 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008568/6.036, allocations: 59.08 kB / 1.809 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003355/6.039, allocations: 131.5 kB / 1.809 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007151/6.04, allocations: 166.8 kB / 1.809 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004623/6.04, allocations: 160.5 kB / 1.809 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002559/6.043, allocations: 1.108 MB / 1.811 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.71e-07/6.043, allocations: 0 / 1.811 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01052/6.053, allocations: 1.983 MB / 1.812 GB, free: 28.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (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) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02245/6.076, allocations: 9.078 MB / 1.821 GB, free: 24.79 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01311/6.089, allocations: 4.36 MB / 1.826 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/6.089, allocations: 2.5 kB / 1.826 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004133/6.093, allocations: 1.53 MB / 1.827 GB, free: 24.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008641/6.102, allocations: 0.9812 MB / 1.828 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/6.126, allocations: 13.86 MB / 1.842 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001962/6.128, allocations: 1.708 MB / 1.843 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003758/6.131, allocations: 1.037 MB / 1.844 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of SimCode: time 1.092e-06/6.131, allocations: 0 / 1.844 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.106/11.24, allocations: 94.43 MB / 1.936 GB, free: 54.07 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat