Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.002168/0.002168, 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.206/2.206, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001799/0.001799, allocations: 93 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.3098/0.3098, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.423e-05, allocations: 0 / 418.3 MB, free: 40.97 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4393/0.4394, allocations: 58.86 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.891/9.331, allocations: 2.841 GB / 3.307 GB, free: 101 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/9.331, allocations: 83.47 kB / 3.307 GB, free: 101 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.353/13.68, allocations: 0.7964 GB / 4.104 GB, free: 40.36 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.054e-06/13.68, allocations: 0 / 4.104 GB, free: 40.36 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003158/13.69, allocations: 63.69 kB / 4.104 GB, free: 40.34 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01947/13.7, allocations: 3.658 MB / 4.107 GB, free: 38.54 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/13.7, allocations: 11.5 kB / 4.107 GB, free: 38.54 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008653/13.71, allocations: 0.7879 MB / 4.108 GB, free: 38.41 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008652/13.72, allocations: 1.974 MB / 4.11 GB, free: 37.98 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002265/13.72, allocations: 86.2 kB / 4.11 GB, free: 37.98 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008839/13.72, allocations: 107.2 kB / 4.11 GB, free: 37.97 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007551/13.73, allocations: 2.559 MB / 4.113 GB, free: 37.96 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007906/13.74, allocations: 2.539 MB / 4.115 GB, free: 37.49 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.088e-05/13.74, allocations: 7.625 kB / 4.115 GB, free: 37.49 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/13.74, allocations: 9.188 kB / 4.115 GB, free: 37.49 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003415/13.74, allocations: 148 kB / 4.116 GB, free: 37.48 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.8987/14.64, allocations: 124.5 MB / 4.237 GB, free: 83.84 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003999/14.64, allocations: 1.456 MB / 4.239 GB, free: 83.81 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002616/14.64, allocations: 0.9737 MB / 4.239 GB, free: 83.8 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05582/14.7, allocations: 17.07 MB / 4.256 GB, free: 73.21 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003381/14.7, allocations: 1.166 MB / 4.257 GB, free: 73.05 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001808/14.71, allocations: 151.6 kB / 4.257 GB, free: 73.05 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=145): time 1.102e-05/14.71, allocations: 2.344 kB / 4.257 GB, free: 73.05 MB / 0.5733 GB Notification: Performance of matching and sorting (n=157): time 0.0571/14.76, allocations: 8.908 MB / 4.266 GB, free: 71.62 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/14.76, allocations: 357.5 kB / 4.266 GB, free: 71.21 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/14.77, allocations: 1.022 MB / 4.267 GB, free: 71.05 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0005822/14.77, allocations: 30.55 kB / 4.268 GB, free: 71.02 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009025/14.77, allocations: 0.8852 MB / 4.268 GB, free: 70.65 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009326/14.77, allocations: 0.503 MB / 4.269 GB, free: 70.39 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/14.77, allocations: 0 / 4.269 GB, free: 70.39 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0001494/14.77, allocations: 385.8 kB / 4.269 GB, free: 70.07 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/14.77, allocations: 0.9136 MB / 4.27 GB, free: 70.07 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002742/14.77, allocations: 1.301 MB / 4.271 GB, free: 69.7 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/14.79, allocations: 1.824 MB / 4.273 GB, free: 69.68 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.372e-05/14.79, allocations: 2.656 kB / 4.273 GB, free: 69.68 MB / 0.5733 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02007/14.81, allocations: 3.45 MB / 4.277 GB, free: 69.53 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009062/14.81, allocations: 3.73 MB / 4.28 GB, free: 65.65 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.784e-05/14.81, allocations: 11.5 kB / 4.28 GB, free: 65.65 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003785/14.81, allocations: 494.5 kB / 4.281 GB, free: 65.62 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/14.82, allocations: 451 kB / 4.281 GB, free: 65.62 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/14.82, allocations: 2.81 MB / 4.284 GB, free: 63.54 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004618/14.82, allocations: 268.3 kB / 4.284 GB, free: 63.53 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007664/14.82, allocations: 89.58 kB / 4.284 GB, free: 63.53 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/14.82, allocations: 9.625 kB / 4.284 GB, free: 63.53 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01747/14.84, allocations: 3.019 MB / 4.287 GB, free: 63.46 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/14.84, allocations: 10.31 kB / 4.287 GB, free: 63.46 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006683/14.84, allocations: 185.5 kB / 4.287 GB, free: 63.43 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003813/14.85, allocations: 468.2 kB / 4.288 GB, free: 63.43 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/14.85, allocations: 1.889 MB / 4.29 GB, free: 61.88 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/14.85, allocations: 233.8 kB / 4.29 GB, free: 61.87 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005293/14.85, allocations: 92.84 kB / 4.29 GB, free: 61.87 MB / 0.5733 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,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_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.0007944/14.85, allocations: 239 kB / 4.29 GB, free: 61.7 MB / 0.5733 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01771/14.87, allocations: 2.978 MB / 4.293 GB, free: 61.51 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/14.87, allocations: 179.2 kB / 4.293 GB, free: 61.42 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02755/14.9, allocations: 6.771 MB / 4.3 GB, free: 60.95 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/14.9, allocations: 70.73 kB / 4.3 GB, free: 60.95 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/14.9, allocations: 0 / 4.3 GB, free: 60.95 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02047/14.92, allocations: 5.905 MB / 4.306 GB, free: 60.21 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03137/14.95, allocations: 10.07 MB / 4.316 GB, free: 59.22 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.632e-05/14.95, allocations: 3.406 kB / 4.316 GB, free: 59.22 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/14.95, allocations: 313.9 kB / 4.316 GB, free: 59.22 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003441/14.96, allocations: 1.224 MB / 4.317 GB, free: 59.18 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005043/14.96, allocations: 40.94 kB / 4.317 GB, free: 59.18 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00352/14.96, allocations: 3.396 MB / 4.32 GB, free: 57.07 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/14.96, allocations: 10.62 kB / 4.32 GB, free: 57.07 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02234/14.98, allocations: 7.199 MB / 4.327 GB, free: 55.94 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002206/14.99, allocations: 0.6571 MB / 4.328 GB, free: 55.66 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008289/14.99, allocations: 27.41 kB / 4.328 GB, free: 55.66 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002993/14.99, allocations: 155.2 kB / 4.328 GB, free: 55.64 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/14.99, allocations: 140.2 kB / 4.328 GB, free: 55.64 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/14.99, allocations: 78.84 kB / 4.328 GB, free: 55.64 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.002116/14.99, allocations: 1.004 MB / 4.329 GB, free: 55.53 MB / 0.5733 GB Notification: Performance of sort global known variables: time 5.91e-07/14.99, allocations: 0 / 4.329 GB, free: 55.53 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01212/15.01, allocations: 2.463 MB / 4.332 GB, free: 55.42 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.03588/15.04, allocations: 11.63 MB / 4.343 GB, free: 52.22 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.01003/15.05, allocations: 4.275 MB / 4.347 GB, free: 51.92 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/15.05, allocations: 0 / 4.347 GB, free: 51.92 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.004485/15.06, allocations: 2.143 MB / 4.349 GB, free: 51.79 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006856/15.06, allocations: 0.7257 MB / 4.35 GB, free: 51.75 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/15.08, allocations: 6.319 MB / 4.356 GB, free: 50.44 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/15.08, allocations: 2.045 MB / 4.358 GB, free: 49.7 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00241/15.09, allocations: 1.128 MB / 4.359 GB, free: 49.7 MB / 0.5733 GB Notification: Performance of SimCode: time 1.984e-06/15.09, allocations: 0 / 4.359 GB, free: 49.7 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.309/20.4, allocations: 117.7 MB / 4.474 GB, free: 86.27 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat