Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.002131/0.00213, allocations: 177.8 kB / 8.358 MB, free: 0.7188 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.076/2.076, 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.001124/0.001123, allocations: 86.8 kB / 262.1 MB, free: 13.86 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.4172/0.4172, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.94e-05, allocations: 4 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5799/0.58, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.809/9.389, allocations: 2.825 GB / 3.291 GB, free: 103.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/9.389, allocations: 75.48 kB / 3.291 GB, free: 103.4 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.309/13.7, allocations: 0.7996 GB / 4.09 GB, free: 37.89 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.713e-06/13.7, allocations: 3.75 kB / 4.09 GB, free: 37.89 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003532/13.7, allocations: 67.34 kB / 4.09 GB, free: 37.87 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.02061/13.72, allocations: 3.955 MB / 4.094 GB, free: 35.92 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/13.72, allocations: 13.22 kB / 4.094 GB, free: 35.92 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008784/13.73, allocations: 0.837 MB / 4.095 GB, free: 35.78 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009151/13.74, allocations: 2.164 MB / 4.097 GB, free: 35.31 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/13.74, allocations: 95.94 kB / 4.097 GB, free: 35.3 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/13.74, allocations: 113.8 kB / 4.097 GB, free: 35.3 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008294/13.75, allocations: 2.892 MB / 4.1 GB, free: 35.29 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009006/13.76, allocations: 2.896 MB / 4.103 GB, free: 34.75 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.448e-05/13.76, allocations: 4.531 kB / 4.103 GB, free: 34.75 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004053/13.76, allocations: 4.938 kB / 4.103 GB, free: 34.75 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003451/13.76, allocations: 168.6 kB / 4.103 GB, free: 34.74 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.4026/14.16, allocations: 125.6 MB / 4.226 GB, free: 20.12 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003892/14.16, allocations: 1.601 MB / 4.227 GB, free: 19.66 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/14.17, allocations: 0.9992 MB / 4.228 GB, free: 19.14 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4892/14.66, allocations: 17.02 MB / 4.245 GB, free: 100.5 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003772/14.66, allocations: 1.245 MB / 4.246 GB, free: 100.3 MB / 0.589 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002086/14.66, allocations: 161.3 kB / 4.246 GB, free: 100.3 MB / 0.589 GB Notification: Performance of pre-optimization done (n=152): time 1.279e-05/14.66, allocations: 1.844 kB / 4.246 GB, free: 100.3 MB / 0.589 GB Notification: Performance of matching and sorting (n=164): time 0.03847/14.7, allocations: 8.076 MB / 4.254 GB, free: 98.82 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/14.7, allocations: 0.5033 MB / 4.255 GB, free: 98.22 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003299/14.7, allocations: 1.199 MB / 4.256 GB, free: 98.05 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0006296/14.7, allocations: 29.2 kB / 4.256 GB, free: 98.02 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001383/14.71, allocations: 0.9744 MB / 4.257 GB, free: 97.62 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.001274/14.71, allocations: 0.5372 MB / 4.257 GB, free: 97.34 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003588/14.71, allocations: 2.281 kB / 4.257 GB, free: 97.34 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0002439/14.71, allocations: 393.7 kB / 4.258 GB, free: 97.03 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003307/14.71, allocations: 1.052 MB / 4.259 GB, free: 97.03 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003992/14.71, allocations: 1.477 MB / 4.26 GB, free: 96.58 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02131/14.74, allocations: 2.864 MB / 4.263 GB, free: 96.55 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.358e-05/14.74, allocations: 5.938 kB / 4.263 GB, free: 96.55 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02805/14.76, allocations: 4.69 MB / 4.268 GB, free: 96.4 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.001049/14.77, allocations: 3.908 MB / 4.271 GB, free: 92.35 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/14.77, allocations: 11.16 kB / 4.271 GB, free: 92.35 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006511/14.77, allocations: 0.8067 MB / 4.272 GB, free: 92.32 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004075/14.78, allocations: 463.9 kB / 4.273 GB, free: 92.32 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/14.78, allocations: 3.336 MB / 4.276 GB, free: 90.22 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004694/14.79, allocations: 233.5 kB / 4.276 GB, free: 90.21 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008473/14.79, allocations: 104.4 kB / 4.276 GB, free: 90.21 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/14.79, allocations: 3.719 kB / 4.276 GB, free: 90.21 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02453/14.81, allocations: 4.286 MB / 4.28 GB, free: 90.13 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.873e-05/14.81, allocations: 12.81 kB / 4.28 GB, free: 90.13 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001701/14.81, allocations: 334.5 kB / 4.281 GB, free: 90.1 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004184/14.82, allocations: 488.2 kB / 4.281 GB, free: 90.1 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005181/14.82, allocations: 3.977 MB / 4.285 GB, free: 87.34 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003486/14.83, allocations: 217.9 kB / 4.285 GB, free: 87.34 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006308/14.83, allocations: 101.6 kB / 4.285 GB, free: 87.34 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,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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.0009327/14.83, allocations: 230.8 kB / 4.286 GB, free: 87.16 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01084/14.84, allocations: 2.739 MB / 4.288 GB, free: 86.96 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/14.84, allocations: 190.8 kB / 4.288 GB, free: 86.87 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01662/14.86, allocations: 6.797 MB / 4.295 GB, free: 86.38 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/14.86, allocations: 71.12 kB / 4.295 GB, free: 86.38 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/14.86, allocations: 5.5 kB / 4.295 GB, free: 86.38 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01804/14.87, allocations: 5.761 MB / 4.301 GB, free: 85.64 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03195/14.91, allocations: 9.182 MB / 4.31 GB, free: 85.05 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/14.91, allocations: 3.969 kB / 4.31 GB, free: 85.05 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002729/14.91, allocations: 297.7 kB / 4.31 GB, free: 85.05 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006393/14.92, allocations: 2.339 MB / 4.312 GB, free: 84.96 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005775/14.92, allocations: 41.72 kB / 4.312 GB, free: 84.96 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005811/14.92, allocations: 4.416 MB / 4.317 GB, free: 82.83 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.036e-06/14.92, allocations: 8.203 kB / 4.317 GB, free: 82.83 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01648/14.94, allocations: 7.232 MB / 4.324 GB, free: 82.18 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00256/14.94, allocations: 0.7027 MB / 4.324 GB, free: 81.89 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009533/14.94, allocations: 29.81 kB / 4.324 GB, free: 81.88 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003486/14.95, allocations: 154.8 kB / 4.325 GB, free: 81.87 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006348/14.95, allocations: 132.1 kB / 4.325 GB, free: 81.87 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002937/14.95, allocations: 68.72 kB / 4.325 GB, free: 81.87 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002598/14.95, allocations: 1.136 MB / 4.326 GB, free: 81.72 MB / 0.589 GB Notification: Performance of sort global known variables: time 7.42e-07/14.95, allocations: 0 / 4.326 GB, free: 81.72 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01405/14.96, allocations: 2.726 MB / 4.329 GB, free: 81.6 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.03108/15, allocations: 10.19 MB / 4.339 GB, free: 80.02 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01227/15.01, allocations: 4.938 MB / 4.343 GB, free: 79.49 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/15.01, allocations: 3.812 kB / 4.343 GB, free: 79.49 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.005165/15.01, allocations: 2.115 MB / 4.345 GB, free: 79.36 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007849/15.02, allocations: 0.7813 MB / 4.346 GB, free: 79.33 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/15.04, allocations: 6.754 MB / 4.353 GB, free: 77.95 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003023/15.05, allocations: 2.182 MB / 4.355 GB, free: 77.19 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003075/15.05, allocations: 1.242 MB / 4.356 GB, free: 77.18 MB / 0.589 GB Notification: Performance of SimCode: time 2.385e-06/15.05, allocations: 0 / 4.356 GB, free: 77.18 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.709/20.76, allocations: 126.5 MB / 4.48 GB, free: 99.05 MB / 0.589 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat