Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.002251/0.002251, allocations: 179.4 kB / 8.364 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.003/2.003, 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.001079/0.001079, allocations: 92.83 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.3015/0.3015, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.872e-05, allocations: 8.203 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4265, allocations: 58.85 MB / 477.2 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.869/9.296, allocations: 2.825 GB / 3.291 GB, free: 103.1 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/9.296, allocations: 80.66 kB / 3.291 GB, free: 103.1 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.33/13.63, allocations: 0.7927 GB / 4.083 GB, free: 37.95 MB / 0.5265 GB Notification: Performance of FrontEnd: time 3.627e-06/13.63, allocations: 0 / 4.083 GB, free: 37.95 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003723/13.63, allocations: 75.58 kB / 4.083 GB, free: 37.94 MB / 0.5265 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02148/13.65, allocations: 3.964 MB / 4.087 GB, free: 35.99 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/13.65, allocations: 11.47 kB / 4.087 GB, free: 35.99 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009135/13.66, allocations: 0.8363 MB / 4.088 GB, free: 35.85 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009177/13.67, allocations: 2.083 MB / 4.09 GB, free: 35.39 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002744/13.67, allocations: 101.2 kB / 4.09 GB, free: 35.39 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/13.67, allocations: 112.3 kB / 4.09 GB, free: 35.39 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008659/13.68, allocations: 2.889 MB / 4.093 GB, free: 35.38 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009463/13.69, allocations: 2.893 MB / 4.096 GB, free: 34.83 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.245e-05/13.69, allocations: 10.91 kB / 4.096 GB, free: 34.82 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004532/13.69, allocations: 10.59 kB / 4.096 GB, free: 34.82 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003376/13.69, allocations: 165.8 kB / 4.096 GB, free: 34.82 MB / 0.5265 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.3909/14.08, allocations: 125.6 MB / 4.219 GB, free: 20.25 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003937/14.08, allocations: 1.599 MB / 4.22 GB, free: 20.2 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/14.08, allocations: 1.002 MB / 4.221 GB, free: 20.2 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5145/14.6, allocations: 17.01 MB / 4.238 GB, free: 100.9 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003216/14.6, allocations: 1.25 MB / 4.239 GB, free: 100.7 MB / 0.589 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001716/14.6, allocations: 157.3 kB / 4.239 GB, free: 100.7 MB / 0.589 GB Notification: Performance of pre-optimization done (n=152): time 5.381e-06/14.6, allocations: 0 / 4.239 GB, free: 100.7 MB / 0.589 GB Notification: Performance of matching and sorting (n=164): time 0.0337/14.64, allocations: 8.081 MB / 4.247 GB, free: 99.22 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002075/14.64, allocations: 0.5028 MB / 4.248 GB, free: 98.62 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003083/14.64, allocations: 1.198 MB / 4.249 GB, free: 98.46 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0006337/14.64, allocations: 29.33 kB / 4.249 GB, free: 98.43 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001259/14.64, allocations: 0.9778 MB / 4.25 GB, free: 98.02 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.001051/14.64, allocations: 0.5379 MB / 4.25 GB, free: 97.75 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/14.64, allocations: 2.875 kB / 4.25 GB, free: 97.75 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0002006/14.64, allocations: 393.9 kB / 4.251 GB, free: 97.43 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002979/14.65, allocations: 1.052 MB / 4.252 GB, free: 97.43 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003384/14.65, allocations: 1.478 MB / 4.253 GB, free: 96.98 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02063/14.67, allocations: 2.861 MB / 4.256 GB, free: 96.95 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.639e-05/14.67, allocations: 3.906 kB / 4.256 GB, free: 96.95 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02653/14.7, allocations: 4.686 MB / 4.261 GB, free: 96.8 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009217/14.7, allocations: 3.909 MB / 4.265 GB, free: 92.75 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-05/14.7, allocations: 16.5 kB / 4.265 GB, free: 92.75 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006379/14.71, allocations: 0.8045 MB / 4.265 GB, free: 92.72 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003842/14.71, allocations: 464 kB / 4.266 GB, free: 92.72 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004564/14.71, allocations: 3.333 MB / 4.269 GB, free: 90.62 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/14.72, allocations: 241.9 kB / 4.269 GB, free: 90.61 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000426/14.72, allocations: 99.66 kB / 4.269 GB, free: 90.61 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/14.72, allocations: 3.844 kB / 4.269 GB, free: 90.61 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02446/14.74, allocations: 4.292 MB / 4.274 GB, free: 90.53 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.87e-05/14.74, allocations: 17.34 kB / 4.274 GB, free: 90.53 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001659/14.75, allocations: 320.1 kB / 4.274 GB, free: 90.5 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/14.75, allocations: 495.4 kB / 4.274 GB, free: 90.5 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005296/14.76, allocations: 3.982 MB / 4.278 GB, free: 87.74 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/14.76, allocations: 208.4 kB / 4.278 GB, free: 87.73 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005349/14.76, allocations: 99.92 kB / 4.279 GB, free: 87.73 MB / 0.589 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008662/14.76, allocations: 237.3 kB / 4.279 GB, free: 87.56 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01006/14.77, allocations: 2.734 MB / 4.281 GB, free: 87.36 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/14.77, allocations: 198.6 kB / 4.282 GB, free: 87.27 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/14.79, allocations: 6.807 MB / 4.288 GB, free: 86.78 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.383e-05/14.79, allocations: 68.03 kB / 4.288 GB, free: 86.78 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/14.79, allocations: 7.078 kB / 4.288 GB, free: 86.78 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01214/14.8, allocations: 5.763 MB / 4.294 GB, free: 86.04 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02065/14.82, allocations: 9.182 MB / 4.303 GB, free: 85.46 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/14.82, allocations: 0 / 4.303 GB, free: 85.46 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002596/14.82, allocations: 294.5 kB / 4.303 GB, free: 85.46 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006284/14.83, allocations: 2.342 MB / 4.305 GB, free: 85.36 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005746/14.83, allocations: 43.44 kB / 4.306 GB, free: 85.36 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/14.84, allocations: 4.413 MB / 4.31 GB, free: 83.24 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/14.84, allocations: 4.938 kB / 4.31 GB, free: 83.24 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01558/14.85, allocations: 7.238 MB / 4.317 GB, free: 82.59 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002411/14.85, allocations: 0.7011 MB / 4.318 GB, free: 82.3 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007559/14.85, allocations: 24.89 kB / 4.318 GB, free: 82.29 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/14.86, allocations: 155.4 kB / 4.318 GB, free: 82.28 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/14.86, allocations: 129.8 kB / 4.318 GB, free: 82.28 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/14.86, allocations: 71.92 kB / 4.318 GB, free: 82.28 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002353/14.86, allocations: 1.137 MB / 4.319 GB, free: 82.13 MB / 0.589 GB Notification: Performance of sort global known variables: time 7.21e-07/14.86, allocations: 3.125 kB / 4.319 GB, free: 82.13 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01406/14.87, allocations: 2.733 MB / 4.322 GB, free: 82 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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) * 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 (153): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0304/14.9, allocations: 10.17 MB / 4.332 GB, free: 80.42 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01175/14.92, allocations: 4.945 MB / 4.336 GB, free: 79.9 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/14.92, allocations: 0 / 4.336 GB, free: 79.9 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.004884/14.92, allocations: 2.116 MB / 4.339 GB, free: 79.76 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00756/14.93, allocations: 0.7895 MB / 4.339 GB, free: 79.73 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/14.95, allocations: 6.749 MB / 4.346 GB, free: 78.36 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/14.95, allocations: 2.181 MB / 4.348 GB, free: 77.6 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002703/14.96, allocations: 1.24 MB / 4.349 GB, free: 77.59 MB / 0.589 GB Notification: Performance of SimCode: time 1.293e-06/14.96, allocations: 0 / 4.349 GB, free: 77.59 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.749/20.7, allocations: 126.4 MB / 4.473 GB, free: 98.86 MB / 0.589 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat