Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000918/0.0009181, allocations: 95.88 kB / 286.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2512/0.2512, allocations: 45.15 MB / 383.8 MB, free: 220 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.507e-05/2.504e-05, allocations: 4 kB / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1876, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.533/8.721, allocations: 2.83 GB / 3.335 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/8.721, allocations: 80.39 kB / 3.335 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.227/11.95, allocations: 0.8074 GB / 4.142 GB, free: 43.19 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.784e-06/11.95, allocations: 0 / 4.142 GB, free: 43.19 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002261/11.95, allocations: 68.67 kB / 4.142 GB, free: 43.17 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.01656/11.97, allocations: 3.965 MB / 4.146 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/11.97, allocations: 11.75 kB / 4.146 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006822/11.97, allocations: 0.8347 MB / 4.147 GB, free: 40.74 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006756/11.98, allocations: 2.179 MB / 4.149 GB, free: 39.75 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/11.98, allocations: 90.98 kB / 4.149 GB, free: 39.74 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005485/11.98, allocations: 119.6 kB / 4.149 GB, free: 39.73 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004772/11.98, allocations: 2.886 MB / 4.152 GB, free: 38.71 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004461/11.99, allocations: 2.889 MB / 4.155 GB, free: 37.37 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.601e-05/11.99, allocations: 7.844 kB / 4.155 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/11.99, allocations: 7.812 kB / 4.155 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/11.99, allocations: 167.4 kB / 4.155 GB, free: 37.34 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.6604/12.65, allocations: 138.1 MB / 4.29 GB, free: 21.46 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00324/12.65, allocations: 1.601 MB / 4.292 GB, free: 21.43 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/12.66, allocations: 1.001 MB / 4.293 GB, free: 21.42 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03662/12.69, allocations: 18.86 MB / 4.311 GB, free: 24.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002837/12.69, allocations: 1.247 MB / 4.312 GB, free: 24.29 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001735/12.7, allocations: 165.7 kB / 4.313 GB, free: 24.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 8.536e-06/12.7, allocations: 0 / 4.313 GB, free: 24.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02344/12.72, allocations: 8.076 MB / 4.32 GB, free: 22.71 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003306/12.72, allocations: 0.5047 MB / 4.321 GB, free: 22.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/12.72, allocations: 1.204 MB / 4.322 GB, free: 21.94 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000368/12.72, allocations: 29.17 kB / 4.322 GB, free: 21.91 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009717/12.72, allocations: 1.017 MB / 4.323 GB, free: 21.57 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005925/12.72, allocations: 0.5335 MB / 4.324 GB, free: 21.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/12.72, allocations: 4.891 kB / 4.324 GB, free: 21.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001854/12.72, allocations: 391.2 kB / 4.324 GB, free: 20.99 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/12.73, allocations: 1.05 MB / 4.325 GB, free: 20.98 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/12.73, allocations: 1.479 MB / 4.326 GB, free: 20.52 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005889/12.73, allocations: 1.999 MB / 4.328 GB, free: 20.47 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/12.73, allocations: 4.844 kB / 4.328 GB, free: 20.47 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009535/12.74, allocations: 3.929 MB / 4.332 GB, free: 20.25 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001427/12.74, allocations: 3.988 MB / 4.336 GB, free: 16.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.635e-05/12.74, allocations: 13.56 kB / 4.336 GB, free: 16.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003318/12.75, allocations: 0.8075 MB / 4.337 GB, free: 16.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/12.75, allocations: 471.4 kB / 4.337 GB, free: 16.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/12.75, allocations: 3.323 MB / 4.341 GB, free: 14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/12.76, allocations: 242.2 kB / 4.341 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003599/12.76, allocations: 99.14 kB / 4.341 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/12.76, allocations: 6.219 kB / 4.341 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008709/12.77, allocations: 3.418 MB / 4.344 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.603e-05/12.77, allocations: 17.17 kB / 4.344 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/12.77, allocations: 342.2 kB / 4.345 GB, free: 13.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/12.77, allocations: 485.9 kB / 4.345 GB, free: 13.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003903/12.77, allocations: 3.996 MB / 4.349 GB, free: 11.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003067/12.78, allocations: 219.5 kB / 4.349 GB, free: 11.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/12.78, allocations: 100.3 kB / 4.349 GB, free: 11.02 MB / 0.6042 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.0009189/12.78, allocations: 229.1 kB / 4.35 GB, free: 10.85 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005999/12.78, allocations: 2.733 MB / 4.352 GB, free: 10.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004247/12.78, allocations: 198 kB / 4.352 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009124/12.79, allocations: 6.803 MB / 4.359 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.449e-05/12.79, allocations: 73.55 kB / 4.359 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/12.79, allocations: 3.812 kB / 4.359 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007902/12.8, allocations: 5.764 MB / 4.365 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/12.81, allocations: 9.193 MB / 4.374 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/12.81, allocations: 3.812 kB / 4.374 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/12.82, allocations: 301.8 kB / 4.374 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003632/12.82, allocations: 2.336 MB / 4.376 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003785/12.82, allocations: 48.55 kB / 4.376 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003936/12.82, allocations: 4.411 MB / 4.381 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/12.82, allocations: 3.281 kB / 4.381 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009882/12.83, allocations: 7.232 MB / 4.388 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/12.84, allocations: 0.7122 MB / 4.388 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004198/12.84, allocations: 21.91 kB / 4.388 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/12.84, allocations: 153.2 kB / 4.389 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/12.84, allocations: 126.6 kB / 4.389 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001574/12.84, allocations: 69.39 kB / 4.389 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001685/12.84, allocations: 1.136 MB / 4.39 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.2e-07/12.84, allocations: 0 / 4.39 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0114/12.85, allocations: 2.751 MB / 4.393 GB, free: 21.21 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.02475/12.88, allocations: 10.21 MB / 4.403 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.008152/12.88, allocations: 4.999 MB / 4.407 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/12.88, allocations: 6.75 kB / 4.407 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003101/12.89, allocations: 2.118 MB / 4.409 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004832/12.89, allocations: 0.7813 MB / 4.41 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01638/12.91, allocations: 6.75 MB / 4.417 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001929/12.91, allocations: 2.222 MB / 4.419 GB, free: 8.688 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.00483/12.92, allocations: 2.476 MB / 4.421 GB, free: 7.266 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/12.92, allocations: 1.205 MB / 4.423 GB, free: 7.145 MB / 0.6198 GB Notification: Performance of SimCode: time 1.543e-06/12.92, allocations: 0 / 4.423 GB, free: 7.145 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5888/13.51, allocations: 104.3 MB / 4.524 GB, free: 100.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/13.51, allocations: 190.3 kB / 4.525 GB, free: 100.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.823/19.33, allocations: 3.75 kB / 4.525 GB, free: 100.4 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat