Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.0009692/0.0009691, allocations: 170.4 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.419/1.419, allocations: 221.5 MB / 230.7 MB, free: 7.523 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.001133/0.001133, allocations: 90.75 kB / 281.6 MB, free: 5.262 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.2385/0.2385, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.23e-05, allocations: 0 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1904, allocations: 61.92 MB / 0.4948 GB, free: 1.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.128/9.318, allocations: 2.829 GB / 3.324 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/9.319, allocations: 79.95 kB / 3.324 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.222/12.54, allocations: 0.8083 GB / 4.133 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.893e-06/12.54, allocations: 3.688 kB / 4.133 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002679/12.54, allocations: 68.31 kB / 4.133 GB, free: 47.79 MB / 0.5573 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.01781/12.56, allocations: 3.966 MB / 4.137 GB, free: 45.91 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/12.56, allocations: 11.36 kB / 4.137 GB, free: 45.9 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006583/12.57, allocations: 0.8414 MB / 4.137 GB, free: 45.76 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006405/12.57, allocations: 2.171 MB / 4.139 GB, free: 45.3 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/12.57, allocations: 87.48 kB / 4.14 GB, free: 45.3 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006829/12.57, allocations: 118.1 kB / 4.14 GB, free: 45.3 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004946/12.58, allocations: 2.887 MB / 4.142 GB, free: 45.29 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/12.58, allocations: 2.89 MB / 4.145 GB, free: 44.74 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/12.58, allocations: 11.3 kB / 4.145 GB, free: 44.74 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/12.58, allocations: 3.531 kB / 4.145 GB, free: 44.74 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002392/12.58, allocations: 165 kB / 4.145 GB, free: 44.73 MB / 0.5573 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.2288/12.81, allocations: 125.6 MB / 4.268 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/12.81, allocations: 1.609 MB / 4.27 GB, free: 14.67 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/12.82, allocations: 1.008 MB / 4.271 GB, free: 14.66 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03194/12.85, allocations: 17 MB / 4.287 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002388/12.85, allocations: 1.252 MB / 4.289 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001782/12.85, allocations: 164.7 kB / 4.289 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=152): time 7.394e-06/12.85, allocations: 0 / 4.289 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=164): time 0.02316/12.88, allocations: 8.083 MB / 4.297 GB, free: 17.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003129/12.88, allocations: 0.5042 MB / 4.297 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/12.88, allocations: 1.199 MB / 4.298 GB, free: 16.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003746/12.88, allocations: 25.7 kB / 4.298 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008533/12.88, allocations: 1.02 MB / 4.299 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005948/12.88, allocations: 0.5328 MB / 4.3 GB, free: 16 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/12.88, allocations: 3 kB / 4.3 GB, free: 16 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001942/12.88, allocations: 389.3 kB / 4.3 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/12.88, allocations: 1.052 MB / 4.301 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/12.88, allocations: 1.48 MB / 4.303 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005007/12.89, allocations: 1.842 MB / 4.304 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/12.89, allocations: 3.875 kB / 4.304 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008631/12.9, allocations: 3.778 MB / 4.308 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001623/12.9, allocations: 3.992 MB / 4.312 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/12.9, allocations: 16.89 kB / 4.312 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003363/12.9, allocations: 0.8071 MB / 4.313 GB, free: 10.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002352/12.9, allocations: 470.3 kB / 4.313 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003444/12.91, allocations: 3.322 MB / 4.317 GB, free: 7.371 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003062/12.91, allocations: 239.1 kB / 4.317 GB, free: 7.195 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003656/12.91, allocations: 107.8 kB / 4.317 GB, free: 7.121 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/12.91, allocations: 4 kB / 4.317 GB, free: 7.117 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007546/12.92, allocations: 3.272 MB / 4.32 GB, free: 5.312 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.572e-05/12.92, allocations: 15.95 kB / 4.32 GB, free: 5.301 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/12.92, allocations: 337.8 kB / 4.32 GB, free: 5.102 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/12.92, allocations: 499.6 kB / 4.321 GB, free: 4.738 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4345/13.36, allocations: 3.979 MB / 4.325 GB, free: 105.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002903/13.36, allocations: 212.1 kB / 4.325 GB, free: 105.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004824/13.36, allocations: 97.91 kB / 4.325 GB, free: 105.9 MB / 0.6198 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.001006/13.36, allocations: 228.5 kB / 4.325 GB, free: 105.7 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01179/13.37, allocations: 2.74 MB / 4.328 GB, free: 105.6 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/13.37, allocations: 195.2 kB / 4.328 GB, free: 105.6 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/13.39, allocations: 6.806 MB / 4.335 GB, free: 105.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.38e-05/13.39, allocations: 72.42 kB / 4.335 GB, free: 105.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/13.39, allocations: 3.609 kB / 4.335 GB, free: 105.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01402/13.4, allocations: 5.764 MB / 4.34 GB, free: 104.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02435/13.43, allocations: 9.182 MB / 4.349 GB, free: 104 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.389e-05/13.43, allocations: 0.75 kB / 4.349 GB, free: 104 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002042/13.43, allocations: 303.5 kB / 4.35 GB, free: 104 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005908/13.44, allocations: 2.335 MB / 4.352 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007303/13.44, allocations: 47.73 kB / 4.352 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004789/13.44, allocations: 4.415 MB / 4.356 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/13.44, allocations: 4.594 kB / 4.356 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/13.46, allocations: 7.239 MB / 4.363 GB, free: 101.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/13.46, allocations: 0.7061 MB / 4.364 GB, free: 100.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/13.46, allocations: 19.09 kB / 4.364 GB, free: 100.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/13.46, allocations: 158.7 kB / 4.364 GB, free: 100.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/13.46, allocations: 123.1 kB / 4.364 GB, free: 100.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/13.46, allocations: 76 kB / 4.364 GB, free: 100.9 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001827/13.46, allocations: 1.142 MB / 4.366 GB, free: 100.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.5e-07/13.46, allocations: 0 / 4.366 GB, free: 100.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01312/13.48, allocations: 2.734 MB / 4.368 GB, free: 100.7 MB / 0.6198 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.02445/13.5, allocations: 10.16 MB / 4.378 GB, free: 99.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00868/13.51, allocations: 5.004 MB / 4.383 GB, free: 98.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/13.51, allocations: 0 / 4.383 GB, free: 98.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003377/13.51, allocations: 2.119 MB / 4.385 GB, free: 98.62 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/13.52, allocations: 0.7966 MB / 4.386 GB, free: 98.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/13.54, allocations: 6.741 MB / 4.393 GB, free: 97.26 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/13.54, allocations: 2.217 MB / 4.395 GB, free: 96.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.004785/13.54, allocations: 2.471 MB / 4.397 GB, free: 96.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/13.54, allocations: 1.203 MB / 4.398 GB, free: 96.46 MB / 0.6198 GB Notification: Performance of SimCode: time 1.523e-06/13.54, allocations: 0 / 4.398 GB, free: 96.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1692/13.71, allocations: 104.2 MB / 4.5 GB, free: 72.42 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/13.71, allocations: 182.8 kB / 4.5 GB, free: 72.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.905/19.62, allocations: 0 / 4.5 GB, free: 72.22 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat