Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.001693/0.001693, allocations: 184.3 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0009216/0.0009216, allocations: 98.83 kB / 270.2 MB, free: 13.36 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.2303/0.2303, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003315, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1263, allocations: 58.86 MB / 490.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.089/6.215, allocations: 2.846 GB / 3.325 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/6.215, allocations: 84.38 kB / 3.325 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.085/9.3, allocations: 0.9101 GB / 4.235 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.673e-06/9.3, allocations: 0 / 4.235 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002101/9.3, allocations: 65.31 kB / 4.236 GB, free: 38.89 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.0172/9.318, allocations: 4.248 MB / 4.24 GB, free: 36.98 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/9.318, allocations: 9 kB / 4.24 GB, free: 36.98 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001208/9.319, allocations: 307.7 kB / 4.24 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006421/9.325, allocations: 0.8764 MB / 4.241 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006129/9.331, allocations: 2.121 MB / 4.243 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/9.332, allocations: 185.6 kB / 4.243 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005642/9.332, allocations: 200.6 kB / 4.243 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007281/9.34, allocations: 3.68 MB / 4.247 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/9.34, allocations: 6.156 kB / 4.247 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002798/9.34, allocations: 92.12 kB / 4.247 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/9.34, allocations: 168.8 kB / 4.247 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007046/9.347, allocations: 3.364 MB / 4.25 GB, free: 35.74 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01985/9.367, allocations: 15.62 MB / 4.266 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005944/9.373, allocations: 2.834 MB / 4.268 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04528/9.418, allocations: 24.47 MB / 4.292 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005227/9.424, allocations: 1.758 MB / 4.294 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 5.77e-06/9.424, allocations: 0 / 4.294 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.02908/9.453, allocations: 9.399 MB / 4.303 GB, free: 24.63 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/9.453, allocations: 253.7 kB / 4.303 GB, free: 24.34 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00286/9.456, allocations: 1.423 MB / 4.305 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000417/9.456, allocations: 60.86 kB / 4.305 GB, free: 23.93 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009841/9.457, allocations: 0.9681 MB / 4.306 GB, free: 23.18 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007993/9.458, allocations: 0.6314 MB / 4.306 GB, free: 22.7 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/9.458, allocations: 39.66 kB / 4.307 GB, free: 22.67 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002562/9.459, allocations: 392.5 kB / 4.307 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/9.461, allocations: 1.153 MB / 4.308 GB, free: 21.94 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002506/9.464, allocations: 1.61 MB / 4.31 GB, free: 21.05 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002412/9.466, allocations: 1.392 MB / 4.311 GB, free: 20.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/9.466, allocations: 11.88 kB / 4.311 GB, free: 20.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007005/9.473, allocations: 3.38 MB / 4.314 GB, free: 19.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001912/9.475, allocations: 4.493 MB / 4.319 GB, free: 14.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/9.475, allocations: 11.31 kB / 4.319 GB, free: 14.31 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00094/9.476, allocations: 245.3 kB / 4.319 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002335/9.478, allocations: 0.5258 MB / 4.319 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/9.48, allocations: 2.434 MB / 4.322 GB, free: 11.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003313/9.484, allocations: 312.4 kB / 4.322 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005484/9.484, allocations: 102.4 kB / 4.322 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/9.484, allocations: 3.812 kB / 4.322 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006412/9.491, allocations: 3.123 MB / 4.325 GB, free: 9.957 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-05/9.491, allocations: 12.84 kB / 4.325 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000861/9.491, allocations: 244.4 kB / 4.325 GB, free: 9.742 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002261/9.494, allocations: 0.5133 MB / 4.326 GB, free: 9.309 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/9.495, allocations: 2.441 MB / 4.328 GB, free: 6.848 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/9.499, allocations: 299.4 kB / 4.329 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004418/9.499, allocations: 99.12 kB / 4.329 GB, free: 6.531 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002264/9.501, allocations: 0.7641 MB / 4.329 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007081/9.502, allocations: 221.3 kB / 4.33 GB, free: 5.598 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/9.515, allocations: 7.672 MB / 4.337 GB, free: 14.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.531e-05/9.515, allocations: 87.12 kB / 4.337 GB, free: 14.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/9.515, allocations: 0 / 4.337 GB, free: 14.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01028/9.525, allocations: 6.677 MB / 4.344 GB, free: 8.57 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3829/9.908, allocations: 12.49 MB / 4.356 GB, free: 67.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/9.908, allocations: 6.406 kB / 4.356 GB, free: 67.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/9.91, allocations: 442.2 kB / 4.356 GB, free: 67.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/9.912, allocations: 367.7 kB / 4.357 GB, free: 67.87 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003463/9.912, allocations: 73.11 kB / 4.357 GB, free: 67.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/9.913, allocations: 2.531 MB / 4.359 GB, free: 65.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/9.913, allocations: 8.375 kB / 4.359 GB, free: 65.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/9.925, allocations: 7.92 MB / 4.367 GB, free: 64.62 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/9.927, allocations: 0.7757 MB / 4.368 GB, free: 64.53 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/9.928, allocations: 59.98 kB / 4.368 GB, free: 64.53 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/9.929, allocations: 222 kB / 4.368 GB, free: 64.53 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003794/9.93, allocations: 179.7 kB / 4.368 GB, free: 64.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002026/9.93, allocations: 89.05 kB / 4.368 GB, free: 64.52 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002846/9.933, allocations: 1.276 MB / 4.37 GB, free: 64.38 MB / 0.573 GB Notification: Performance of sort global known variables: time 4e-07/9.933, allocations: 1.406 kB / 4.37 GB, free: 64.38 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01424/9.947, allocations: 2.781 MB / 4.372 GB, free: 64.38 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.medium.phase) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02647/9.974, allocations: 12.59 MB / 4.385 GB, free: 61.11 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009024/9.983, allocations: 5.372 MB / 4.39 GB, free: 60.77 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/9.983, allocations: 3.5 kB / 4.39 GB, free: 60.77 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003919/9.987, allocations: 2.766 MB / 4.393 GB, free: 60.63 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005703/9.992, allocations: 1.056 MB / 4.394 GB, free: 60.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/10.01, allocations: 18.8 MB / 4.412 GB, free: 48.55 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/10.01, allocations: 2.298 MB / 4.414 GB, free: 47.78 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005023/10.02, allocations: 2.422 MB / 4.417 GB, free: 47.74 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002005/10.02, allocations: 1.331 MB / 4.418 GB, free: 47.73 MB / 0.573 GB Notification: Performance of SimCode: time 1.032e-06/10.02, allocations: 0 / 4.418 GB, free: 47.73 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1962/10.22, allocations: 116.8 MB / 4.532 GB, free: 23.81 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/10.22, allocations: 248 kB / 4.532 GB, free: 23.48 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.778/17, allocations: 0 / 4.532 GB, free: 23.48 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat