Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 94.42 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2982/0.2982, allocations: 44.14 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.914e-05/1.917e-05, allocations: 4 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1412, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.233/9.374, allocations: 2.829 GB / 3.324 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/9.375, allocations: 85.25 kB / 3.324 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.393/12.77, allocations: 0.8015 GB / 4.126 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.124e-06/12.77, allocations: 0 / 4.126 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002443/12.77, allocations: 72.3 kB / 4.126 GB, free: 38.82 MB / 0.5417 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.01679/12.79, allocations: 3.96 MB / 4.13 GB, free: 36.87 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/12.79, allocations: 15.45 kB / 4.13 GB, free: 36.86 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007213/12.79, allocations: 0.835 MB / 4.131 GB, free: 36.72 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007356/12.8, allocations: 2.092 MB / 4.133 GB, free: 36.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/12.8, allocations: 93.17 kB / 4.133 GB, free: 36.26 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00128/12.8, allocations: 117.7 kB / 4.133 GB, free: 36.26 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005691/12.81, allocations: 2.895 MB / 4.136 GB, free: 36.25 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004711/12.81, allocations: 2.896 MB / 4.138 GB, free: 35.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.702e-05/12.81, allocations: 2.156 kB / 4.138 GB, free: 35.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/12.81, allocations: 7.188 kB / 4.138 GB, free: 35.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002013/12.81, allocations: 162.8 kB / 4.139 GB, free: 35.7 MB / 0.5417 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.2201/13.03, allocations: 125.6 MB / 4.261 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/13.03, allocations: 1.603 MB / 4.263 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/13.04, allocations: 1.006 MB / 4.264 GB, free: 12.12 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4648/13.5, allocations: 17.01 MB / 4.28 GB, free: 99.14 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002821/13.5, allocations: 1.247 MB / 4.282 GB, free: 98.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001509/13.51, allocations: 161.6 kB / 4.282 GB, free: 98.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 4.057e-06/13.51, allocations: 3.031 kB / 4.282 GB, free: 98.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02318/13.53, allocations: 8.086 MB / 4.29 GB, free: 97.46 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/13.53, allocations: 0.5077 MB / 4.29 GB, free: 96.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/13.53, allocations: 1.198 MB / 4.291 GB, free: 96.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0006631/13.53, allocations: 31.02 kB / 4.291 GB, free: 96.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001568/13.53, allocations: 1.023 MB / 4.292 GB, free: 96.33 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.001106/13.53, allocations: 0.5323 MB / 4.293 GB, free: 96.05 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/13.53, allocations: 8.641 kB / 4.293 GB, free: 96.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001647/13.53, allocations: 386.2 kB / 4.293 GB, free: 95.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/13.54, allocations: 1.05 MB / 4.294 GB, free: 95.74 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002439/13.54, allocations: 1.479 MB / 4.296 GB, free: 95.29 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006051/13.54, allocations: 1.843 MB / 4.298 GB, free: 95.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.5e-05/13.54, allocations: 2.438 kB / 4.298 GB, free: 95.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01237/13.56, allocations: 3.777 MB / 4.301 GB, free: 95.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001081/13.56, allocations: 3.991 MB / 4.305 GB, free: 91.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.884e-05/13.56, allocations: 11.44 kB / 4.305 GB, free: 91.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003643/13.56, allocations: 0.8084 MB / 4.306 GB, free: 90.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/13.56, allocations: 469 kB / 4.306 GB, free: 90.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/13.57, allocations: 3.321 MB / 4.31 GB, free: 88.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/13.57, allocations: 245.9 kB / 4.31 GB, free: 88.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003354/13.57, allocations: 105.7 kB / 4.31 GB, free: 88.88 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/13.57, allocations: 3.938 kB / 4.31 GB, free: 88.88 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00727/13.58, allocations: 3.274 MB / 4.313 GB, free: 88.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/13.58, allocations: 11.31 kB / 4.313 GB, free: 88.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009986/13.58, allocations: 341.7 kB / 4.313 GB, free: 88.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/13.58, allocations: 485.4 kB / 4.314 GB, free: 88.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00324/13.58, allocations: 3.987 MB / 4.318 GB, free: 85.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/13.59, allocations: 214.6 kB / 4.318 GB, free: 85.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/13.59, allocations: 103.4 kB / 4.318 GB, free: 85.98 MB / 0.6042 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.0007167/13.59, allocations: 228.7 kB / 4.318 GB, free: 85.81 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005842/13.59, allocations: 2.741 MB / 4.321 GB, free: 85.61 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004717/13.59, allocations: 192.5 kB / 4.321 GB, free: 85.52 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009055/13.6, allocations: 6.813 MB / 4.328 GB, free: 85.02 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.775e-05/13.6, allocations: 68.8 kB / 4.328 GB, free: 85.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/13.6, allocations: 7.484 kB / 4.328 GB, free: 85.02 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006841/13.61, allocations: 5.763 MB / 4.334 GB, free: 84.28 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/13.62, allocations: 9.189 MB / 4.343 GB, free: 83.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/13.62, allocations: 2.938 kB / 4.343 GB, free: 83.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/13.63, allocations: 295.1 kB / 4.343 GB, free: 83.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/13.63, allocations: 2.342 MB / 4.345 GB, free: 83.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002957/13.63, allocations: 47.09 kB / 4.345 GB, free: 83.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003628/13.63, allocations: 4.409 MB / 4.349 GB, free: 81.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/13.63, allocations: 8.578 kB / 4.349 GB, free: 81.47 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009827/13.64, allocations: 7.232 MB / 4.357 GB, free: 80.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/13.64, allocations: 0.7015 MB / 4.357 GB, free: 80.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005063/13.65, allocations: 23.55 kB / 4.357 GB, free: 80.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/13.65, allocations: 159.6 kB / 4.357 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/13.65, allocations: 131.5 kB / 4.358 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/13.65, allocations: 68.89 kB / 4.358 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001697/13.65, allocations: 1.137 MB / 4.359 GB, free: 80.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/13.65, allocations: 3.75 kB / 4.359 GB, free: 80.37 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01203/13.66, allocations: 2.736 MB / 4.361 GB, free: 80.25 MB / 0.6042 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.02386/13.68, allocations: 10.17 MB / 4.371 GB, free: 78.67 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008775/13.69, allocations: 4.997 MB / 4.376 GB, free: 78.14 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/13.69, allocations: 3.969 kB / 4.376 GB, free: 78.14 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003117/13.7, allocations: 2.117 MB / 4.378 GB, free: 77.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005424/13.7, allocations: 0.7885 MB / 4.379 GB, free: 77.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/13.72, allocations: 6.759 MB / 4.386 GB, free: 76.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/13.72, allocations: 2.209 MB / 4.388 GB, free: 75.79 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004977/13.73, allocations: 2.471 MB / 4.39 GB, free: 75.77 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001713/13.73, allocations: 1.213 MB / 4.391 GB, free: 75.76 MB / 0.6042 GB Notification: Performance of SimCode: time 1.072e-06/13.73, allocations: 0 / 4.391 GB, free: 75.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5969/14.33, allocations: 104.1 MB / 4.493 GB, free: 91.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002095/14.33, allocations: 182 kB / 4.493 GB, free: 91.58 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.888/20.21, allocations: 0 / 4.493 GB, free: 91.58 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat