Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.001559/0.001559, allocations: 182 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.702/1.702, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001047/0.001047, allocations: 90.83 kB / 270.2 MB, free: 13.37 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.2171/0.2171, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003592, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 58.86 MB / 490.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.354/6.473, allocations: 2.826 GB / 3.305 GB, free: 80.25 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/6.473, allocations: 79.34 kB / 3.305 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.905/9.378, allocations: 0.8702 GB / 4.175 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.206e-06/9.378, allocations: 0 / 4.175 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003275/9.379, allocations: 59.92 kB / 4.175 GB, free: 11.9 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0173/9.396, allocations: 4.092 MB / 4.179 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/9.396, allocations: 8.031 kB / 4.179 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001393/9.398, allocations: 281.9 kB / 4.179 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006363/9.404, allocations: 0.7815 MB / 4.18 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007276/9.411, allocations: 1.971 MB / 4.182 GB, free: 4.633 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/9.412, allocations: 171.4 kB / 4.182 GB, free: 4.465 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001039/9.413, allocations: 180 kB / 4.182 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008824/9.422, allocations: 3.311 MB / 4.186 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.04e-05/9.422, allocations: 4 kB / 4.186 GB, free: 0.8125 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006017/9.422, allocations: 83.95 kB / 4.186 GB, free: 0.7305 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001972/9.422, allocations: 151.3 kB / 4.186 GB, free: 0.582 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007648/9.43, allocations: 3.03 MB / 4.189 GB, free: 13.54 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.3557/9.786, allocations: 14.22 MB / 4.203 GB, free: 37.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00455/9.79, allocations: 2.064 MB / 4.205 GB, free: 37.56 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04349/9.834, allocations: 24.53 MB / 4.229 GB, free: 22.56 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003888/9.838, allocations: 1.587 MB / 4.23 GB, free: 22.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001553/9.84, allocations: 177.2 kB / 4.23 GB, free: 22.45 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=146): time 5.711e-06/9.84, allocations: 0 / 4.23 GB, free: 22.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158): time 0.02021/9.86, allocations: 8.396 MB / 4.239 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/9.86, allocations: 259 kB / 4.239 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/9.862, allocations: 1.414 MB / 4.24 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001731/9.862, allocations: 54.7 kB / 4.24 GB, free: 20.86 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006062/9.863, allocations: 0.8909 MB / 4.241 GB, free: 20.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004076/9.863, allocations: 0.5289 MB / 4.242 GB, free: 20.33 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/9.863, allocations: 31.94 kB / 4.242 GB, free: 20.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.516e-05/9.863, allocations: 382.3 kB / 4.242 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/9.865, allocations: 1.029 MB / 4.243 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001713/9.866, allocations: 1.407 MB / 4.244 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/9.868, allocations: 1.248 MB / 4.246 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/9.868, allocations: 3.406 kB / 4.246 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005675/9.874, allocations: 3.209 MB / 4.249 GB, free: 19.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001475/9.875, allocations: 3.851 MB / 4.253 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/9.875, allocations: 9.594 kB / 4.253 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002832/9.878, allocations: 0.6101 MB / 4.253 GB, free: 31.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001863/9.88, allocations: 431.6 kB / 4.254 GB, free: 31.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/9.882, allocations: 2.824 MB / 4.256 GB, free: 29.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002394/9.885, allocations: 237.3 kB / 4.257 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/9.885, allocations: 94.7 kB / 4.257 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/9.885, allocations: 9.672 kB / 4.257 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004676/9.89, allocations: 2.808 MB / 4.259 GB, free: 28.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/9.89, allocations: 9.562 kB / 4.259 GB, free: 28.99 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006285/9.89, allocations: 207.7 kB / 4.26 GB, free: 28.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/9.892, allocations: 452.4 kB / 4.26 GB, free: 28.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009894/9.893, allocations: 1.876 MB / 4.262 GB, free: 27.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/9.895, allocations: 235.3 kB / 4.262 GB, free: 27.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/9.895, allocations: 89.14 kB / 4.262 GB, free: 27.4 MB / 0.5573 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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001315/9.896, allocations: 0.7084 MB / 4.263 GB, free: 27.14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/9.897, allocations: 198.4 kB / 4.263 GB, free: 27.05 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008435/9.905, allocations: 7.56 MB / 4.27 GB, free: 26.45 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.742e-05/9.905, allocations: 76.14 kB / 4.27 GB, free: 26.45 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/9.905, allocations: 0 / 4.27 GB, free: 26.45 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00719/9.912, allocations: 6.622 MB / 4.277 GB, free: 25.59 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/9.925, allocations: 10.51 MB / 4.287 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/9.925, allocations: 0 / 4.287 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/9.927, allocations: 339.4 kB / 4.288 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002869/9.93, allocations: 1.358 MB / 4.289 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002421/9.93, allocations: 61.62 kB / 4.289 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00249/9.932, allocations: 3.484 MB / 4.292 GB, free: 22.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/9.932, allocations: 1.5 kB / 4.292 GB, free: 22.78 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008924/9.941, allocations: 7.377 MB / 4.3 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/9.943, allocations: 0.7411 MB / 4.3 GB, free: 21.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/9.944, allocations: 46.59 kB / 4.3 GB, free: 21.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/9.945, allocations: 187.8 kB / 4.3 GB, free: 21.89 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/9.945, allocations: 132.9 kB / 4.301 GB, free: 21.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/9.946, allocations: 69.98 kB / 4.301 GB, free: 21.89 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001909/9.948, allocations: 1.28 MB / 4.302 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.21e-07/9.948, allocations: 0 / 4.302 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01027/9.958, allocations: 2.738 MB / 4.305 GB, free: 21.62 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02064/9.978, allocations: 10.2 MB / 4.315 GB, free: 20.32 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008157/9.987, allocations: 4.852 MB / 4.319 GB, free: 20 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/9.987, allocations: 3.812 kB / 4.319 GB, free: 20 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002948/9.99, allocations: 2.319 MB / 4.322 GB, free: 19.85 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005447/9.995, allocations: 0.9629 MB / 4.323 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0196/10.01, allocations: 16.71 MB / 4.339 GB, free: 9.285 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001561/10.02, allocations: 2.182 MB / 4.341 GB, free: 8.48 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003773/10.02, allocations: 2.216 MB / 4.343 GB, free: 8.398 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/10.02, allocations: 1.222 MB / 4.344 GB, free: 8.387 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/10.02, allocations: 0 / 4.344 GB, free: 8.387 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4991/10.52, allocations: 112.2 MB / 4.454 GB, free: 72.09 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/10.52, allocations: 251.5 kB / 4.454 GB, free: 71.76 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.364/16.88, allocations: 3 kB / 4.454 GB, free: 71.76 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat