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.002216/0.002215, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001177/0.001176, allocations: 95.59 kB / 270.9 MB, free: 8.395 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.5119/0.5119, allocations: 43.54 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005056/0.0005054, allocations: 19.98 kB / 431.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1377, allocations: 58.83 MB / 490.3 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.396/2.533, allocations: 0.6919 GB / 1.171 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/2.534, allocations: 76.91 kB / 1.171 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.545/6.079, allocations: 0.6212 GB / 1.792 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.285e-06/6.079, allocations: 0 / 1.792 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003302/6.08, allocations: 67.66 kB / 1.792 GB, free: 38.51 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01627/6.096, allocations: 3.51 MB / 1.796 GB, free: 36.85 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/6.096, allocations: 12.41 kB / 1.796 GB, free: 36.85 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00166/6.098, allocations: 266 kB / 1.796 GB, free: 36.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0052/6.103, allocations: 465.4 kB / 1.796 GB, free: 36.67 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009361/6.112, allocations: 2.017 MB / 1.798 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/6.113, allocations: 141.2 kB / 1.798 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/6.114, allocations: 179.7 kB / 1.799 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00809/6.122, allocations: 2.762 MB / 1.801 GB, free: 35.74 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.506e-05/6.122, allocations: 10.22 kB / 1.801 GB, free: 35.74 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004786/6.123, allocations: 84.08 kB / 1.801 GB, free: 35.74 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003152/6.123, allocations: 150.8 kB / 1.801 GB, free: 35.74 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007869/6.131, allocations: 2.357 MB / 1.804 GB, free: 35.7 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.02653/6.157, allocations: 11.62 MB / 1.815 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00552/6.163, allocations: 1.889 MB / 1.817 GB, free: 29.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001539/6.164, allocations: 461.4 kB / 1.817 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003757/6.168, allocations: 1.36 MB / 1.819 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 6.051e-06/6.168, allocations: 0 / 1.819 GB, free: 28.58 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.05681/6.225, allocations: 12.43 MB / 1.831 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/6.225, allocations: 363.1 kB / 1.831 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003472/6.229, allocations: 1.485 MB / 1.833 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008143/6.23, allocations: 63.92 kB / 1.833 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009547/6.231, allocations: 0.8414 MB / 1.834 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001209/6.232, allocations: 0.6754 MB / 1.834 GB, free: 24.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/6.232, allocations: 49.78 kB / 1.834 GB, free: 24.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001872/6.233, allocations: 400.4 kB / 1.835 GB, free: 24.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003466/6.236, allocations: 1.095 MB / 1.836 GB, free: 23.81 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004219/6.24, allocations: 1.584 MB / 1.837 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004346/6.245, allocations: 1.372 MB / 1.839 GB, free: 22.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-05/6.245, allocations: 5.344 kB / 1.839 GB, free: 22.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01045/6.255, allocations: 3.269 MB / 1.842 GB, free: 21.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009806/6.256, allocations: 4.165 MB / 1.846 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-05/6.256, allocations: 8.844 kB / 1.846 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/6.258, allocations: 305.1 kB / 1.846 GB, free: 16.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004987/6.263, allocations: 0.5631 MB / 1.847 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/6.266, allocations: 3.016 MB / 1.85 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00495/6.271, allocations: 222.9 kB / 1.85 GB, free: 29.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/6.272, allocations: 204.3 kB / 1.85 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/6.272, allocations: 3.125 kB / 1.85 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01004/6.282, allocations: 3.124 MB / 1.853 GB, free: 28.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.194e-05/6.282, allocations: 10.44 kB / 1.853 GB, free: 28.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/6.283, allocations: 298.7 kB / 1.853 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004677/6.288, allocations: 0.557 MB / 1.854 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003101/6.291, allocations: 3.015 MB / 1.857 GB, free: 25.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003897/6.295, allocations: 218.2 kB / 1.857 GB, free: 25.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007968/6.296, allocations: 202.9 kB / 1.857 GB, free: 25.62 MB / 0.5417 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 () * Number of clocked 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.002539/6.298, allocations: 0.7017 MB / 1.858 GB, free: 25.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008561/6.299, allocations: 231.8 kB / 1.858 GB, free: 25.04 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/6.313, allocations: 3.973 MB / 1.862 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.608e-05/6.313, allocations: 20.56 kB / 1.862 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/6.313, allocations: 0 / 1.862 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008412/6.322, allocations: 3.039 MB / 1.865 GB, free: 22.16 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0222/6.344, allocations: 7.145 MB / 1.872 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.901e-05/6.344, allocations: 7.969 kB / 1.872 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004031/6.348, allocations: 459.7 kB / 1.872 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/6.35, allocations: 326.1 kB / 1.873 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007595/6.351, allocations: 108.5 kB / 1.873 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004211/6.355, allocations: 3.753 MB / 1.877 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/6.355, allocations: 19.94 kB / 1.877 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/6.369, allocations: 5.074 MB / 1.882 GB, free: 9.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002514/6.371, allocations: 0.5666 MB / 1.882 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/6.373, allocations: 59 kB / 1.882 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003773/6.376, allocations: 143.9 kB / 1.882 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009206/6.377, allocations: 189.6 kB / 1.882 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006966/6.378, allocations: 186.1 kB / 1.883 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003371/6.381, allocations: 1.134 MB / 1.884 GB, free: 7.887 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.22e-07/6.381, allocations: 0 / 1.884 GB, free: 7.887 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01219/6.394, allocations: 2.093 MB / 1.886 GB, free: 5.84 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 199 * 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.03291/6.427, allocations: 9.927 MB / 1.895 GB, free: 14.09 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01625/6.443, allocations: 4.643 MB / 1.9 GB, free: 9.984 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.137e-05/6.443, allocations: 5.812 kB / 1.9 GB, free: 9.98 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.005571/6.449, allocations: 1.663 MB / 1.902 GB, free: 8.484 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01056/6.459, allocations: 1.117 MB / 1.903 GB, free: 7.672 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4826/6.942, allocations: 15.32 MB / 1.918 GB, free: 59 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002804/6.945, allocations: 1.745 MB / 1.919 GB, free: 58.27 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004512/6.949, allocations: 1.105 MB / 1.92 GB, free: 58.26 MB / 0.5574 GB Notification: Performance of SimCode: time 1.583e-06/6.949, allocations: 0 / 1.92 GB, free: 58.26 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.049/12, allocations: 106.8 MB / 2.025 GB, free: 51.38 MB / 0.5574 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