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.001355/0.001355, allocations: 179.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 221.3 MB / 236 MB, free: 2.938 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.0008932/0.0008928, allocations: 94.66 kB / 287 MB, free: 224 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2434/0.2434, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.747e-05/3.75e-05, allocations: 4.219 kB / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.161, allocations: 61.92 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.644/8.806, allocations: 2.83 GB / 3.332 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/8.806, allocations: 81.27 kB / 3.332 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.499/12.3, allocations: 0.8152 GB / 4.147 GB, free: 43.82 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.533e-06/12.3, allocations: 0 / 4.147 GB, free: 43.82 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002561/12.3, allocations: 75.22 kB / 4.147 GB, free: 43.8 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.01836/12.32, allocations: 3.96 MB / 4.151 GB, free: 41.85 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.936e-05/12.32, allocations: 14.22 kB / 4.151 GB, free: 41.84 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001495/12.32, allocations: 291.3 kB / 4.151 GB, free: 41.8 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006623/12.33, allocations: 0.8394 MB / 4.152 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006302/12.34, allocations: 2.171 MB / 4.154 GB, free: 41.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/12.34, allocations: 174.9 kB / 4.154 GB, free: 41.19 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006618/12.34, allocations: 201.1 kB / 4.155 GB, free: 41.19 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008093/12.35, allocations: 3.72 MB / 4.158 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.928e-05/12.35, allocations: 9.672 kB / 4.158 GB, free: 40.63 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/12.35, allocations: 86.5 kB / 4.158 GB, free: 40.63 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002132/12.35, allocations: 165.4 kB / 4.159 GB, free: 40.63 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006538/12.35, allocations: 3.439 MB / 4.162 GB, free: 40.61 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.01901/12.37, allocations: 14.94 MB / 4.176 GB, free: 32 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004156/12.38, allocations: 2.153 MB / 4.179 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/12.38, allocations: 1.088 MB / 4.18 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04482/12.42, allocations: 24.62 MB / 4.204 GB, free: 16.8 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005667/12.43, allocations: 1.712 MB / 4.205 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002078/12.43, allocations: 202.4 kB / 4.206 GB, free: 16.58 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 1.754e-05/12.43, allocations: 2.156 kB / 4.206 GB, free: 16.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.0216/12.45, allocations: 7.505 MB / 4.213 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/12.45, allocations: 416 kB / 4.213 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/12.46, allocations: 1.544 MB / 4.215 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004874/12.46, allocations: 58.7 kB / 4.215 GB, free: 14.81 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001053/12.46, allocations: 0.9847 MB / 4.216 GB, free: 14.44 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009245/12.46, allocations: 0.5779 MB / 4.216 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/12.46, allocations: 43 kB / 4.216 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001388/12.46, allocations: 385.2 kB / 4.217 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/12.46, allocations: 1.075 MB / 4.218 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/12.46, allocations: 1.507 MB / 4.219 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/12.47, allocations: 1.324 MB / 4.221 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/12.47, allocations: 3.656 kB / 4.221 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005631/12.47, allocations: 3.382 MB / 4.224 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002033/12.47, allocations: 4.059 MB / 4.228 GB, free: 24.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/12.47, allocations: 11.62 kB / 4.228 GB, free: 24.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004531/12.48, allocations: 0.9572 MB / 4.229 GB, free: 24.56 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/12.48, allocations: 464 kB / 4.229 GB, free: 24.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/12.48, allocations: 3.163 MB / 4.232 GB, free: 22.47 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002894/12.49, allocations: 237 kB / 4.233 GB, free: 22.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003183/12.49, allocations: 106.1 kB / 4.233 GB, free: 22.44 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/12.49, allocations: 2.531 kB / 4.233 GB, free: 22.44 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005377/12.49, allocations: 3.052 MB / 4.236 GB, free: 22.28 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-05/12.49, allocations: 14.11 kB / 4.236 GB, free: 22.28 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/12.49, allocations: 348.2 kB / 4.236 GB, free: 22.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/12.49, allocations: 494 kB / 4.236 GB, free: 22.24 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/12.5, allocations: 4.053 MB / 4.24 GB, free: 19.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/12.5, allocations: 235.4 kB / 4.241 GB, free: 19.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005122/12.5, allocations: 99.55 kB / 4.241 GB, free: 19.38 MB / 0.573 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,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_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.001235/12.5, allocations: 305.3 kB / 4.241 GB, free: 19.19 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008247/12.5, allocations: 218.2 kB / 4.241 GB, free: 19.08 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/12.52, allocations: 7.857 MB / 4.249 GB, free: 17.43 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.282e-05/12.52, allocations: 84.27 kB / 4.249 GB, free: 17.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/12.52, allocations: 0 / 4.249 GB, free: 17.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008288/12.52, allocations: 6.868 MB / 4.256 GB, free: 14.08 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01552/12.54, allocations: 10.96 MB / 4.266 GB, free: 7.859 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/12.54, allocations: 0 / 4.266 GB, free: 7.859 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/12.54, allocations: 355.1 kB / 4.267 GB, free: 7.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005218/12.55, allocations: 2.527 MB / 4.269 GB, free: 5.512 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003124/12.55, allocations: 74.73 kB / 4.269 GB, free: 5.449 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/12.55, allocations: 4.107 MB / 4.273 GB, free: 1.527 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/12.55, allocations: 0 / 4.273 GB, free: 1.527 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01236/12.56, allocations: 7.926 MB / 4.281 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/12.57, allocations: 0.7842 MB / 4.282 GB, free: 9.902 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004255/12.57, allocations: 54.77 kB / 4.282 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/12.57, allocations: 197 kB / 4.282 GB, free: 9.699 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003316/12.57, allocations: 144.3 kB / 4.282 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/12.57, allocations: 73.33 kB / 4.282 GB, free: 9.551 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002428/12.57, allocations: 1.365 MB / 4.284 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.31e-07/12.57, allocations: 4 kB / 4.284 GB, free: 8.285 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01586/12.59, allocations: 2.865 MB / 4.286 GB, free: 5.48 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.5031/13.09, allocations: 10.88 MB / 4.297 GB, free: 72.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01157/13.1, allocations: 5.349 MB / 4.302 GB, free: 72.12 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/13.1, allocations: 2.594 kB / 4.302 GB, free: 72.12 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003714/13.1, allocations: 2.359 MB / 4.305 GB, free: 71.97 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005918/13.11, allocations: 0.9625 MB / 4.305 GB, free: 71.96 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02305/13.13, allocations: 7.409 MB / 4.313 GB, free: 70.75 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002542/13.14, allocations: 2.302 MB / 4.315 GB, free: 69.98 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006936/13.14, allocations: 2.45 MB / 4.317 GB, free: 69.95 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/13.14, allocations: 1.284 MB / 4.319 GB, free: 69.94 MB / 0.5886 GB Notification: Performance of SimCode: time 2.515e-06/13.14, allocations: 3.969 kB / 4.319 GB, free: 69.94 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2033/13.35, allocations: 126.1 MB / 4.442 GB, free: 54.86 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/13.35, allocations: 225.6 kB / 4.442 GB, free: 54.56 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.094/20.44, allocations: 0 / 4.442 GB, free: 54.56 MB / 0.5886 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