Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002267/0.002267, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.121/2.121, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001132/0.001132, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2891/0.2891, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.12e-05/4.124e-05, allocations: 0 / 425.4 MB, free: 23.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1341, allocations: 58.86 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.82/8.954, allocations: 2.843 GB / 3.316 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/8.954, allocations: 79.38 kB / 3.316 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.453/13.41, allocations: 0.873 GB / 4.189 GB, free: 38.53 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.294e-06/13.41, allocations: 2.688 kB / 4.189 GB, free: 38.53 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002493/13.41, allocations: 58.36 kB / 4.189 GB, free: 38.52 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.01659/13.42, allocations: 3.77 MB / 4.192 GB, free: 36.94 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/13.42, allocations: 17.41 kB / 4.192 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009565/13.43, allocations: 271.6 kB / 4.193 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008089/13.43, allocations: 0.7905 MB / 4.193 GB, free: 36.76 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007624/13.44, allocations: 1.961 MB / 4.195 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/13.44, allocations: 163.2 kB / 4.195 GB, free: 36.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008541/13.44, allocations: 189.1 kB / 4.196 GB, free: 36.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009801/13.45, allocations: 3.263 MB / 4.199 GB, free: 35.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.518e-05/13.45, allocations: 10.62 kB / 4.199 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003634/13.45, allocations: 82.39 kB / 4.199 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002863/13.45, allocations: 149.4 kB / 4.199 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00997/13.46, allocations: 2.849 MB / 4.202 GB, free: 35.81 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.02721/13.49, allocations: 14.07 MB / 4.216 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00663/13.5, allocations: 1.991 MB / 4.218 GB, free: 27.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/13.5, allocations: 1.062 MB / 4.219 GB, free: 27.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07839/13.58, allocations: 24.67 MB / 4.243 GB, free: 28.19 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005872/13.58, allocations: 1.627 MB / 4.244 GB, free: 28.06 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001787/13.59, allocations: 175.5 kB / 4.244 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 7.504e-06/13.59, allocations: 3.609 kB / 4.244 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.029/13.61, allocations: 7.039 MB / 4.251 GB, free: 27.04 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/13.62, allocations: 255.9 kB / 4.252 GB, free: 26.75 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/13.62, allocations: 1.326 MB / 4.253 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005965/13.62, allocations: 53.67 kB / 4.253 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008845/13.62, allocations: 0.8219 MB / 4.254 GB, free: 26.15 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009304/13.62, allocations: 0.5586 MB / 4.254 GB, free: 25.8 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/13.62, allocations: 37.34 kB / 4.254 GB, free: 25.8 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002264/13.62, allocations: 383.2 kB / 4.255 GB, free: 25.48 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/13.62, allocations: 0.9321 MB / 4.256 GB, free: 25.48 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002955/13.63, allocations: 1.335 MB / 4.257 GB, free: 25.09 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/13.63, allocations: 1.169 MB / 4.258 GB, free: 25 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/13.63, allocations: 4.125 kB / 4.258 GB, free: 25 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008809/13.64, allocations: 2.868 MB / 4.261 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001676/13.64, allocations: 3.724 MB / 4.264 GB, free: 20.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.5e-05/13.64, allocations: 11.09 kB / 4.264 GB, free: 20.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004478/13.64, allocations: 0.5138 MB / 4.265 GB, free: 20.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003759/13.65, allocations: 453.9 kB / 4.265 GB, free: 20.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/13.65, allocations: 2.71 MB / 4.268 GB, free: 18.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004475/13.66, allocations: 262.7 kB / 4.268 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000679/13.66, allocations: 98.98 kB / 4.268 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/13.66, allocations: 2.875 kB / 4.268 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006938/13.66, allocations: 2.613 MB / 4.271 GB, free: 18.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/13.66, allocations: 13.19 kB / 4.271 GB, free: 18.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009236/13.66, allocations: 199.3 kB / 4.271 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/13.67, allocations: 458.7 kB / 4.272 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/13.67, allocations: 1.873 MB / 4.273 GB, free: 17.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003502/13.67, allocations: 265.4 kB / 4.274 GB, free: 17.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004037/13.67, allocations: 88.69 kB / 4.274 GB, free: 17.07 MB / 0.5573 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.0008377/13.68, allocations: 298.2 kB / 4.274 GB, free: 16.89 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006211/13.68, allocations: 198.4 kB / 4.274 GB, free: 16.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/13.69, allocations: 7.454 MB / 4.281 GB, free: 16.01 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.795e-05/13.69, allocations: 80.78 kB / 4.282 GB, free: 16.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/13.69, allocations: 3.953 kB / 4.282 GB, free: 16 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01112/13.7, allocations: 6.508 MB / 4.288 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02292/13.72, allocations: 11.27 MB / 4.299 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/13.72, allocations: 3.25 kB / 4.299 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002822/13.73, allocations: 368 kB / 4.299 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004024/13.73, allocations: 1.308 MB / 4.301 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004841/13.73, allocations: 66.34 kB / 4.301 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/13.73, allocations: 3.204 MB / 4.304 GB, free: 9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/13.73, allocations: 7.031 kB / 4.304 GB, free: 9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/13.75, allocations: 7.292 MB / 4.311 GB, free: 5.324 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00228/13.75, allocations: 0.7327 MB / 4.312 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006291/13.75, allocations: 58.7 kB / 4.312 GB, free: 4.836 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/13.75, allocations: 192.1 kB / 4.312 GB, free: 4.789 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004221/13.75, allocations: 155.2 kB / 4.312 GB, free: 4.766 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002361/13.75, allocations: 79.3 kB / 4.312 GB, free: 4.75 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002518/13.76, allocations: 1.196 MB / 4.313 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.31e-07/13.76, allocations: 3.75 kB / 4.313 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01208/13.77, allocations: 2.634 MB / 4.316 GB, free: 3.734 MB / 0.5573 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.02958/13.8, allocations: 11.38 MB / 4.327 GB, free: 11.79 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01267/13.81, allocations: 4.58 MB / 4.331 GB, free: 7.629 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/13.81, allocations: 0 / 4.331 GB, free: 7.629 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006447/13.82, allocations: 2.442 MB / 4.334 GB, free: 5.383 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00898/13.83, allocations: 0.9888 MB / 4.335 GB, free: 4.664 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4597/14.29, allocations: 6.973 MB / 4.342 GB, free: 66.23 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/14.29, allocations: 2.15 MB / 4.344 GB, free: 65.49 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002809/14.29, allocations: 1.247 MB / 4.345 GB, free: 65.48 MB / 0.573 GB Notification: Performance of SimCode: time 1.654e-06/14.29, allocations: 0 / 4.345 GB, free: 65.48 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.344/19.64, allocations: 124.8 MB / 4.467 GB, free: 52.86 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat