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.001554/0.001553, allocations: 181.7 kB / 13.19 MB, free: 2.121 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.689/1.689, allocations: 205.2 MB / 218.9 MB, free: 9.133 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.0009414/0.0009414, allocations: 94.11 kB / 267 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4566/0.4566, allocations: 43.47 MB / 358.6 MB, free: 51.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.047e-05/4.049e-05, allocations: 4 kB / 425.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1916, allocations: 58.84 MB / 484.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.783/8.974, allocations: 2.826 GB / 3.299 GB, free: 73.73 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/8.975, allocations: 80.45 kB / 3.299 GB, free: 73.66 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.365/12.34, allocations: 0.8678 GB / 4.167 GB, free: 6.918 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.483e-06/12.34, allocations: 4 kB / 4.167 GB, free: 6.914 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001881/12.34, allocations: 63.86 kB / 4.167 GB, free: 6.852 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.01411/12.35, allocations: 3.831 MB / 4.17 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/12.35, allocations: 15.97 kB / 4.17 GB, free: 2.938 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006953/12.36, allocations: 274 kB / 4.171 GB, free: 2.66 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005596/12.36, allocations: 0.7829 MB / 4.171 GB, free: 1.875 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005217/12.37, allocations: 1.952 MB / 4.173 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/12.37, allocations: 163.5 kB / 4.173 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00091/12.37, allocations: 176 kB / 4.174 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008861/12.38, allocations: 3.296 MB / 4.177 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.924e-05/12.38, allocations: 7.938 kB / 4.177 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002887/12.38, allocations: 79.97 kB / 4.177 GB, free: 12 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002372/12.38, allocations: 151.3 kB / 4.177 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006118/12.38, allocations: 2.918 MB / 4.18 GB, free: 8.926 MB / 0.5417 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.4231/12.81, allocations: 14.21 MB / 4.194 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005037/12.81, allocations: 1.976 MB / 4.196 GB, free: 31.59 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001824/12.81, allocations: 0.9899 MB / 4.197 GB, free: 31.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04561/12.86, allocations: 24.61 MB / 4.221 GB, free: 32.57 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004935/12.86, allocations: 1.591 MB / 4.222 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00192/12.87, allocations: 168.3 kB / 4.222 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=146): time 1.208e-05/12.87, allocations: 2.516 kB / 4.222 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158): time 0.02093/12.89, allocations: 6.922 MB / 4.229 GB, free: 31.58 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/12.89, allocations: 256.9 kB / 4.229 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003145/12.89, allocations: 1.399 MB / 4.231 GB, free: 31.13 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003948/12.89, allocations: 51.7 kB / 4.231 GB, free: 31.1 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001011/12.89, allocations: 0.891 MB / 4.232 GB, free: 30.83 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007631/12.89, allocations: 0.5262 MB / 4.232 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/12.89, allocations: 37.22 kB / 4.232 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002065/12.89, allocations: 377.7 kB / 4.233 GB, free: 30.26 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/12.89, allocations: 0.9301 MB / 4.234 GB, free: 30.26 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/12.9, allocations: 1.304 MB / 4.235 GB, free: 29.88 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/12.9, allocations: 1.146 MB / 4.236 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/12.9, allocations: 7.281 kB / 4.236 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.007826/12.91, allocations: 2.993 MB / 4.239 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00193/12.91, allocations: 3.853 MB / 4.243 GB, free: 25.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/12.91, allocations: 7.125 kB / 4.243 GB, free: 25.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/12.91, allocations: 0.5942 MB / 4.243 GB, free: 25.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/12.91, allocations: 433.4 kB / 4.244 GB, free: 25.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/12.92, allocations: 2.828 MB / 4.246 GB, free: 23.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/12.92, allocations: 237.7 kB / 4.247 GB, free: 23.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004758/12.92, allocations: 91.67 kB / 4.247 GB, free: 23.36 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/12.92, allocations: 3.656 kB / 4.247 GB, free: 23.36 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005357/12.92, allocations: 2.591 MB / 4.249 GB, free: 23.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-05/12.92, allocations: 13.34 kB / 4.249 GB, free: 23.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006431/12.93, allocations: 200.1 kB / 4.249 GB, free: 23.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00198/12.93, allocations: 449.8 kB / 4.25 GB, free: 23.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/12.93, allocations: 1.879 MB / 4.252 GB, free: 21.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/12.93, allocations: 235.9 kB / 4.252 GB, free: 21.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003875/12.93, allocations: 86.94 kB / 4.252 GB, free: 21.64 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 () * 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.0008961/12.93, allocations: 287.5 kB / 4.252 GB, free: 21.46 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007141/12.93, allocations: 199.8 kB / 4.253 GB, free: 21.37 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/12.95, allocations: 7.452 MB / 4.26 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/12.95, allocations: 84.39 kB / 4.26 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.909e-05/12.95, allocations: 0 / 4.26 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009635/12.96, allocations: 6.512 MB / 4.266 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/12.97, allocations: 10.39 MB / 4.276 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.527e-06/12.97, allocations: 2.688 kB / 4.276 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/12.97, allocations: 342.5 kB / 4.277 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002976/12.98, allocations: 1.583 MB / 4.278 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002464/12.98, allocations: 65.3 kB / 4.278 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/12.98, allocations: 3.466 MB / 4.282 GB, free: 17.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/12.98, allocations: 3.25 kB / 4.282 GB, free: 17.05 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008915/12.99, allocations: 7.068 MB / 4.289 GB, free: 16.46 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/12.99, allocations: 0.7382 MB / 4.289 GB, free: 16.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008003/12.99, allocations: 50.44 kB / 4.289 GB, free: 16.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/12.99, allocations: 189.5 kB / 4.29 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/12.99, allocations: 138.4 kB / 4.29 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002086/12.99, allocations: 72.33 kB / 4.29 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002222/13, allocations: 1.256 MB / 4.291 GB, free: 15.99 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4e-07/13, allocations: 0 / 4.291 GB, free: 15.99 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01219/13.01, allocations: 2.74 MB / 4.294 GB, free: 15.87 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) * 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.02388/13.03, allocations: 9.887 MB / 4.303 GB, free: 14.56 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009486/13.04, allocations: 4.667 MB / 4.308 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/13.04, allocations: 0 / 4.308 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003808/13.04, allocations: 2.247 MB / 4.31 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006393/13.05, allocations: 0.9658 MB / 4.311 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02077/13.07, allocations: 6.906 MB / 4.318 GB, free: 12.83 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/13.07, allocations: 2.181 MB / 4.32 GB, free: 12.06 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005621/13.08, allocations: 2.405 MB / 4.322 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/13.08, allocations: 1.195 MB / 4.323 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of SimCode: time 2.134e-06/13.08, allocations: 0 / 4.323 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5715/13.65, allocations: 119.9 MB / 4.441 GB, free: 64.8 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/13.65, allocations: 233 kB / 4.441 GB, free: 64.57 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.36/20.01, allocations: 0 / 4.441 GB, free: 64.57 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