Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.00211/0.00211, allocations: 183 kB / 13.19 MB, free: 2.129 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.702/1.702, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.0008693/0.0008692, allocations: 90.59 kB / 267 MB, free: 9.273 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.5893/0.5893, allocations: 43.46 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.902e-05/4.905e-05, allocations: 7.938 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1748, allocations: 58.85 MB / 484.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.663/8.837, allocations: 2.843 GB / 3.316 GB, free: 54.33 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/8.838, allocations: 79.95 kB / 3.316 GB, free: 54.25 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.589/12.43, allocations: 0.8731 GB / 4.189 GB, free: 2.496 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.773e-06/12.43, allocations: 3.938 kB / 4.189 GB, free: 2.492 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000206/12.43, allocations: 59.98 kB / 4.189 GB, free: 2.434 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.4679/12.89, allocations: 3.757 MB / 4.192 GB, free: 34.33 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.701e-05/12.89, allocations: 13.62 kB / 4.192 GB, free: 34.32 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002038/12.9, allocations: 273.4 kB / 4.193 GB, free: 34.28 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009226/12.91, allocations: 0.7869 MB / 4.193 GB, free: 34.15 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008329/12.91, allocations: 1.976 MB / 4.195 GB, free: 33.81 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/12.92, allocations: 165.1 kB / 4.196 GB, free: 33.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007278/12.92, allocations: 189.1 kB / 4.196 GB, free: 33.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009794/12.93, allocations: 3.262 MB / 4.199 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.963e-05/12.93, allocations: 5.781 kB / 4.199 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003096/12.93, allocations: 83.75 kB / 4.199 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002139/12.93, allocations: 150.8 kB / 4.199 GB, free: 33.31 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006372/12.93, allocations: 2.844 MB / 4.202 GB, free: 33.3 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.01914/12.95, allocations: 14.06 MB / 4.216 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004192/12.96, allocations: 1.989 MB / 4.218 GB, free: 24.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/12.96, allocations: 1.056 MB / 4.219 GB, free: 24.89 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04906/13.01, allocations: 24.68 MB / 4.243 GB, free: 25.79 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005155/13.01, allocations: 1.634 MB / 4.244 GB, free: 25.67 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002116/13.01, allocations: 171.9 kB / 4.244 GB, free: 25.63 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 1.045e-05/13.01, allocations: 0 / 4.244 GB, free: 25.63 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.01935/13.03, allocations: 7.037 MB / 4.251 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/13.03, allocations: 254.1 kB / 4.252 GB, free: 24.43 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/13.04, allocations: 1.327 MB / 4.253 GB, free: 24.25 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004191/13.04, allocations: 58.03 kB / 4.253 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001202/13.04, allocations: 0.8861 MB / 4.254 GB, free: 23.94 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008222/13.04, allocations: 0.5542 MB / 4.254 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/13.04, allocations: 34.16 kB / 4.254 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002678/13.04, allocations: 380.5 kB / 4.255 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002164/13.04, allocations: 0.9324 MB / 4.256 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/13.04, allocations: 1.336 MB / 4.257 GB, free: 22.89 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/13.05, allocations: 1.167 MB / 4.258 GB, free: 22.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/13.05, allocations: 2.188 kB / 4.258 GB, free: 22.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006022/13.05, allocations: 2.983 MB / 4.261 GB, free: 22.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00129/13.05, allocations: 3.847 MB / 4.265 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/13.05, allocations: 13.23 kB / 4.265 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002286/13.06, allocations: 0.5112 MB / 4.265 GB, free: 18.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/13.06, allocations: 451.3 kB / 4.266 GB, free: 18.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/13.06, allocations: 2.713 MB / 4.268 GB, free: 16.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/13.06, allocations: 274.1 kB / 4.269 GB, free: 16.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/13.06, allocations: 92.55 kB / 4.269 GB, free: 16.37 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/13.06, allocations: 5.562 kB / 4.269 GB, free: 16.37 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004088/13.07, allocations: 2.613 MB / 4.271 GB, free: 16.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/13.07, allocations: 7.438 kB / 4.271 GB, free: 16.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005434/13.07, allocations: 195.1 kB / 4.271 GB, free: 16.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/13.07, allocations: 459.1 kB / 4.272 GB, free: 16.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/13.07, allocations: 1.876 MB / 4.274 GB, free: 30.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/13.07, allocations: 262.6 kB / 4.274 GB, free: 30.65 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/13.07, allocations: 95.58 kB / 4.274 GB, free: 30.65 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000685/13.07, allocations: 294 kB / 4.274 GB, free: 30.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005013/13.08, allocations: 202.2 kB / 4.275 GB, free: 30.36 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009634/13.08, allocations: 7.453 MB / 4.282 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.648e-05/13.08, allocations: 87.62 kB / 4.282 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/13.09, allocations: 3.953 kB / 4.282 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009093/13.09, allocations: 6.503 MB / 4.288 GB, free: 28.65 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/13.11, allocations: 11.28 MB / 4.299 GB, free: 27.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/13.11, allocations: 3.562 kB / 4.299 GB, free: 27.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/13.11, allocations: 366.5 kB / 4.3 GB, free: 27.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/13.11, allocations: 1.302 MB / 4.301 GB, free: 27.44 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002392/13.11, allocations: 63.31 kB / 4.301 GB, free: 27.44 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/13.12, allocations: 3.208 MB / 4.304 GB, free: 25.34 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/13.12, allocations: 9.875 kB / 4.304 GB, free: 25.34 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008666/13.13, allocations: 7.287 MB / 4.311 GB, free: 24.08 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/13.13, allocations: 0.7281 MB / 4.312 GB, free: 23.77 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004869/13.13, allocations: 57.19 kB / 4.312 GB, free: 23.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/13.13, allocations: 200.8 kB / 4.312 GB, free: 23.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003045/13.13, allocations: 156.2 kB / 4.312 GB, free: 23.74 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/13.13, allocations: 84.22 kB / 4.312 GB, free: 23.74 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001743/13.13, allocations: 1.196 MB / 4.314 GB, free: 23.58 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.81e-07/13.13, allocations: 0 / 4.314 GB, free: 23.58 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01103/13.14, allocations: 2.624 MB / 4.316 GB, free: 23.48 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02143/13.16, allocations: 11.38 MB / 4.327 GB, free: 20.46 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008184/13.17, allocations: 4.627 MB / 4.332 GB, free: 20.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/13.17, allocations: 0 / 4.332 GB, free: 20.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003625/13.18, allocations: 2.46 MB / 4.334 GB, free: 19.98 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005629/13.18, allocations: 0.9791 MB / 4.335 GB, free: 19.95 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/13.2, allocations: 6.987 MB / 4.342 GB, free: 18.58 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001688/13.2, allocations: 2.189 MB / 4.344 GB, free: 17.82 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004846/13.21, allocations: 2.482 MB / 4.346 GB, free: 17.78 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/13.21, allocations: 1.217 MB / 4.348 GB, free: 17.01 MB / 0.573 GB Notification: Performance of SimCode: time 1.623e-06/13.21, allocations: 0 / 4.348 GB, free: 17.01 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5992/13.81, allocations: 119.2 MB / 4.464 GB, free: 62.32 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/13.81, allocations: 221.9 kB / 4.464 GB, free: 62.1 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.27/20.08, allocations: 0 / 4.464 GB, free: 62.1 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat