Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001287, allocations: 198.8 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.391/1.391, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001099, allocations: 93.34 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 45.14 MB / 383.8 MB, free: 316 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.91e-05, allocations: 4 kB / 453.3 MB, free: 75.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1322, allocations: 63.25 MB / 0.5045 GB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.419/8.551, allocations: 2.848 GB / 3.352 GB, free: 68.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/8.551, allocations: 79.95 kB / 3.352 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.477/12.03, allocations: 0.8753 GB / 4.228 GB, free: 25.86 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.056e-06/12.03, allocations: 0 / 4.228 GB, free: 25.86 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003072/12.03, allocations: 67.78 kB / 4.228 GB, free: 25.79 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01482/12.04, allocations: 3.76 MB / 4.232 GB, free: 21.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/12.04, allocations: 12.03 kB / 4.232 GB, free: 21.97 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006177/12.05, allocations: 0.7917 MB / 4.232 GB, free: 21.18 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005742/12.06, allocations: 1.973 MB / 4.234 GB, free: 19.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/12.06, allocations: 80.33 kB / 4.234 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008531/12.06, allocations: 116 kB / 4.234 GB, free: 19 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004582/12.06, allocations: 2.299 MB / 4.237 GB, free: 16.7 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005236/12.07, allocations: 2.561 MB / 4.239 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.195e-05/12.07, allocations: 11.94 kB / 4.239 GB, free: 13.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003881/12.07, allocations: 8 kB / 4.239 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/12.07, allocations: 139.3 kB / 4.239 GB, free: 13.81 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.6843/12.75, allocations: 137.3 MB / 4.373 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/12.75, allocations: 1.445 MB / 4.375 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/12.76, allocations: 0.9761 MB / 4.376 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03626/12.79, allocations: 18.92 MB / 4.394 GB, free: 28.57 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002603/12.79, allocations: 1.161 MB / 4.395 GB, free: 28.41 MB / 0.6355 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001578/12.8, allocations: 148 kB / 4.396 GB, free: 28.41 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=145): time 8.456e-06/12.8, allocations: 0 / 4.396 GB, free: 28.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=157): time 0.03494/12.83, allocations: 8.969 MB / 4.404 GB, free: 26.89 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/12.83, allocations: 365.3 kB / 4.405 GB, free: 26.48 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/12.83, allocations: 1.031 MB / 4.406 GB, free: 26.31 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0003427/12.83, allocations: 29.58 kB / 4.406 GB, free: 26.28 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008574/12.83, allocations: 0.9343 MB / 4.407 GB, free: 25.97 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006097/12.84, allocations: 0.5022 MB / 4.407 GB, free: 25.71 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/12.84, allocations: 0 / 4.407 GB, free: 25.71 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002091/12.84, allocations: 376.7 kB / 4.407 GB, free: 25.4 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/12.84, allocations: 0.9106 MB / 4.408 GB, free: 25.4 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/12.84, allocations: 1.3 MB / 4.41 GB, free: 25.01 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008104/12.85, allocations: 1.851 MB / 4.411 GB, free: 24.96 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.15e-05/12.85, allocations: 3.469 kB / 4.411 GB, free: 24.96 MB / 0.6355 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01282/12.86, allocations: 3.553 MB / 4.415 GB, free: 24.73 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001563/12.86, allocations: 3.792 MB / 4.419 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/12.86, allocations: 11.78 kB / 4.419 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001905/12.86, allocations: 499 kB / 4.419 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/12.87, allocations: 449.3 kB / 4.419 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/12.87, allocations: 2.808 MB / 4.422 GB, free: 18.69 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002847/12.87, allocations: 273.2 kB / 4.422 GB, free: 18.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004352/12.87, allocations: 97.66 kB / 4.423 GB, free: 18.66 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/12.87, allocations: 3.438 kB / 4.423 GB, free: 18.66 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01115/12.88, allocations: 3.039 MB / 4.426 GB, free: 18.56 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.593e-05/12.88, allocations: 14.58 kB / 4.426 GB, free: 18.56 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004561/12.88, allocations: 181.8 kB / 4.426 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/12.88, allocations: 459.7 kB / 4.426 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/12.89, allocations: 1.901 MB / 4.428 GB, free: 16.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00268/12.89, allocations: 241.9 kB / 4.428 GB, free: 16.95 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004292/12.89, allocations: 90.94 kB / 4.428 GB, free: 16.95 MB / 0.6355 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009515/12.89, allocations: 233.1 kB / 4.429 GB, free: 16.77 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01099/12.9, allocations: 2.995 MB / 4.431 GB, free: 16.57 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006625/12.9, allocations: 180.2 kB / 4.432 GB, free: 16.48 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01549/12.92, allocations: 6.802 MB / 4.438 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-05/12.92, allocations: 67.84 kB / 4.438 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/12.92, allocations: 0 / 4.438 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01253/12.93, allocations: 5.924 MB / 4.444 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0211/12.95, allocations: 10.07 MB / 4.454 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-05/12.95, allocations: 8.062 kB / 4.454 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/12.95, allocations: 315.2 kB / 4.454 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/12.95, allocations: 1.235 MB / 4.456 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/12.96, allocations: 45.73 kB / 4.456 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003032/12.96, allocations: 3.405 MB / 4.459 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/12.96, allocations: 9.781 kB / 4.459 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/12.97, allocations: 7.216 MB / 4.466 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/12.97, allocations: 0.6655 MB / 4.467 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007735/12.97, allocations: 23.2 kB / 4.467 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/12.98, allocations: 154.6 kB / 4.467 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/12.98, allocations: 138 kB / 4.467 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/12.98, allocations: 74.08 kB / 4.467 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002092/12.98, allocations: 1.015 MB / 4.468 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.363e-06/12.98, allocations: 0 / 4.468 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01261/12.99, allocations: 2.521 MB / 4.47 GB, free: 10.39 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03024/13.02, allocations: 11.76 MB / 4.482 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.008798/13.03, allocations: 4.309 MB / 4.486 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.717e-05/13.03, allocations: 5.125 kB / 4.486 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003488/13.03, allocations: 2.141 MB / 4.488 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005237/13.04, allocations: 0.7842 MB / 4.489 GB, free: 300 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4408/13.48, allocations: 6.379 MB / 4.495 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001667/13.48, allocations: 2.1 MB / 4.497 GB, free: 112.5 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.004994/13.49, allocations: 2.544 MB / 4.5 GB, free: 112.5 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/13.49, allocations: 1.112 MB / 4.501 GB, free: 112.5 MB / 0.6355 GB Notification: Performance of SimCode: time 8.71e-07/13.49, allocations: 3.188 kB / 4.501 GB, free: 112.5 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1684/13.66, allocations: 96.57 MB / 4.595 GB, free: 108.1 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/13.66, allocations: 175.6 kB / 4.595 GB, free: 107.9 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.494/19.15, allocations: 3.938 kB / 4.595 GB, free: 107.9 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat