Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.001216/0.001216, allocations: 177.6 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 86.28 kB / 261.7 MB, free: 1.68 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.2188/0.2188, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.85e-05, allocations: 4 kB / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1368, allocations: 58.86 MB / 477.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.072/9.209, allocations: 2.842 GB / 3.308 GB, free: 27.28 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004085/9.21, allocations: 78.06 kB / 3.308 GB, free: 27.25 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.788/13, allocations: 0.8658 GB / 4.174 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.176e-06/13, allocations: 0 / 4.174 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000215/13, allocations: 62.31 kB / 4.174 GB, free: 32.07 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.01594/13.01, allocations: 3.762 MB / 4.178 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/13.01, allocations: 7.625 kB / 4.178 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006304/13.02, allocations: 0.7895 MB / 4.178 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005917/13.03, allocations: 1.98 MB / 4.18 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/13.03, allocations: 78.28 kB / 4.18 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004707/13.03, allocations: 116.4 kB / 4.18 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003823/13.03, allocations: 2.304 MB / 4.183 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/13.03, allocations: 2.553 MB / 4.185 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.327e-05/13.03, allocations: 5.906 kB / 4.185 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/13.03, allocations: 5.062 kB / 4.185 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001861/13.03, allocations: 149.7 kB / 4.185 GB, free: 29.38 MB / 0.5261 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.2323/13.27, allocations: 124.8 MB / 4.307 GB, free: 15.28 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002235/13.27, allocations: 1.446 MB / 4.309 GB, free: 15.24 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/13.27, allocations: 0.9759 MB / 4.31 GB, free: 15.23 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03116/13.3, allocations: 17.06 MB / 4.326 GB, free: 20.05 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002062/13.3, allocations: 1.163 MB / 4.327 GB, free: 19.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00143/13.31, allocations: 144.4 kB / 4.328 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 3.616e-06/13.31, allocations: 5.688 kB / 4.328 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.03245/13.34, allocations: 8.926 MB / 4.336 GB, free: 18.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/13.34, allocations: 359.1 kB / 4.337 GB, free: 17.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/13.34, allocations: 1.036 MB / 4.338 GB, free: 17.59 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003031/13.34, allocations: 29.05 kB / 4.338 GB, free: 17.56 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/13.34, allocations: 0.9259 MB / 4.339 GB, free: 17.15 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004315/13.34, allocations: 0.5017 MB / 4.339 GB, free: 16.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/13.34, allocations: 3.875 kB / 4.339 GB, free: 16.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001585/13.34, allocations: 373.7 kB / 4.339 GB, free: 16.51 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/13.34, allocations: 0.9133 MB / 4.34 GB, free: 16.51 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/13.34, allocations: 1.312 MB / 4.342 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007639/13.35, allocations: 1.828 MB / 4.343 GB, free: 14.92 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/13.35, allocations: 4 kB / 4.343 GB, free: 14.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01163/13.36, allocations: 3.543 MB / 4.347 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001452/13.36, allocations: 3.784 MB / 4.35 GB, free: 8.895 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/13.36, allocations: 8 kB / 4.35 GB, free: 8.887 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/13.37, allocations: 496.7 kB / 4.351 GB, free: 8.598 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/13.37, allocations: 453.1 kB / 4.351 GB, free: 8.266 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/13.37, allocations: 2.812 MB / 4.354 GB, free: 5.785 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/13.37, allocations: 273.1 kB / 4.354 GB, free: 5.586 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/13.37, allocations: 98.48 kB / 4.354 GB, free: 5.52 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/13.37, allocations: 7.938 kB / 4.355 GB, free: 5.512 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01006/13.38, allocations: 3.019 MB / 4.357 GB, free: 3.801 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/13.38, allocations: 8 kB / 4.357 GB, free: 3.793 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004183/13.38, allocations: 184.9 kB / 4.358 GB, free: 3.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/13.39, allocations: 464.1 kB / 4.358 GB, free: 3.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/13.39, allocations: 1.895 MB / 4.36 GB, free: 1.582 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/13.39, allocations: 244.8 kB / 4.36 GB, free: 1.402 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003486/13.39, allocations: 92.09 kB / 4.36 GB, free: 1.34 MB / 0.6042 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.0008696/13.39, allocations: 227.6 kB / 4.36 GB, free: 1.133 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4056/13.8, allocations: 2.979 MB / 4.363 GB, free: 109.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007541/13.8, allocations: 177.4 kB / 4.364 GB, free: 109.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01512/13.81, allocations: 6.773 MB / 4.37 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.512e-05/13.81, allocations: 73.14 kB / 4.37 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/13.81, allocations: 3.688 kB / 4.37 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01385/13.83, allocations: 5.915 MB / 4.376 GB, free: 108.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02003/13.85, allocations: 10.06 MB / 4.386 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.2e-05/13.85, allocations: 8.594 kB / 4.386 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/13.85, allocations: 317.5 kB / 4.386 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002406/13.85, allocations: 1.228 MB / 4.387 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003866/13.85, allocations: 42.48 kB / 4.387 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/13.85, allocations: 3.412 MB / 4.391 GB, free: 105.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/13.85, allocations: 6.125 kB / 4.391 GB, free: 105.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01347/13.87, allocations: 7.186 MB / 4.398 GB, free: 104.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/13.87, allocations: 0.6631 MB / 4.398 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003291/13.87, allocations: 25.75 kB / 4.398 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/13.87, allocations: 153.6 kB / 4.399 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/13.87, allocations: 145.5 kB / 4.399 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/13.87, allocations: 76.27 kB / 4.399 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001292/13.87, allocations: 1.007 MB / 4.4 GB, free: 104.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/13.87, allocations: 2.375 kB / 4.4 GB, free: 104.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00923/13.88, allocations: 2.503 MB / 4.402 GB, free: 104.3 MB / 0.6042 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.02709/13.91, allocations: 11.72 MB / 4.414 GB, free: 101.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006939/13.92, allocations: 4.305 MB / 4.418 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.491e-05/13.92, allocations: 4.562 kB / 4.418 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003089/13.92, allocations: 2.139 MB / 4.42 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005431/13.92, allocations: 0.7941 MB / 4.421 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/13.94, allocations: 6.339 MB / 4.427 GB, free: 99.35 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/13.94, allocations: 2.101 MB / 4.429 GB, free: 98.59 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004984/13.95, allocations: 2.542 MB / 4.431 GB, free: 98.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/13.95, allocations: 1.117 MB / 4.433 GB, free: 98.54 MB / 0.6042 GB Notification: Performance of SimCode: time 2.605e-06/13.95, allocations: 0 / 4.433 GB, free: 98.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1639/14.11, allocations: 96.37 MB / 4.527 GB, free: 82.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/14.11, allocations: 178.8 kB / 4.527 GB, free: 82.74 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.424/19.54, allocations: 0 / 4.527 GB, free: 82.74 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat