Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 221.3 MB / 236 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 95.84 kB / 287 MB, free: 204 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2723/0.2723, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.141e-05/4.144e-05, allocations: 4.219 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1682, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.757/8.925, allocations: 2.852 GB / 3.354 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/8.925, allocations: 87.64 kB / 3.354 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.981/12.91, allocations: 1.025 GB / 4.379 GB, free: 27.21 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.463e-06/12.91, allocations: 0 / 4.379 GB, free: 27.21 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001974/12.91, allocations: 70.36 kB / 4.379 GB, free: 27.19 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01488/12.92, allocations: 4.257 MB / 4.383 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/12.92, allocations: 11.22 kB / 4.383 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009834/12.92, allocations: 317.7 kB / 4.383 GB, free: 24.69 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007019/12.93, allocations: 0.9385 MB / 4.384 GB, free: 24.45 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006132/12.94, allocations: 2.206 MB / 4.386 GB, free: 23.4 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/12.94, allocations: 195.9 kB / 4.386 GB, free: 23.31 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006709/12.94, allocations: 218.9 kB / 4.387 GB, free: 23.24 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007597/12.94, allocations: 3.901 MB / 4.39 GB, free: 20.33 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.639e-05/12.94, allocations: 7.938 kB / 4.39 GB, free: 20.32 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002933/12.95, allocations: 91.97 kB / 4.391 GB, free: 20.23 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001865/12.95, allocations: 181 kB / 4.391 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006662/12.95, allocations: 3.459 MB / 4.394 GB, free: 17.11 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.01879/12.97, allocations: 16.94 MB / 4.411 GB, free: 0.8789 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00608/12.98, allocations: 3.081 MB / 4.414 GB, free: 13.8 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/12.98, allocations: 1.264 MB / 4.415 GB, free: 12.55 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4548/13.43, allocations: 24.41 MB / 4.439 GB, free: 40.94 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004871/13.44, allocations: 1.885 MB / 4.441 GB, free: 40.81 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 4.749e-06/13.44, allocations: 3.781 kB / 4.441 GB, free: 40.81 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.02717/13.47, allocations: 8.92 MB / 4.449 GB, free: 39.97 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/13.47, allocations: 260 kB / 4.45 GB, free: 39.68 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/13.47, allocations: 1.504 MB / 4.451 GB, free: 39.45 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004258/13.47, allocations: 67.45 kB / 4.451 GB, free: 39.42 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009686/13.47, allocations: 1.044 MB / 4.452 GB, free: 39.11 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006921/13.47, allocations: 0.7051 MB / 4.453 GB, free: 38.76 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/13.47, allocations: 48.06 kB / 4.453 GB, free: 38.76 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001382/13.47, allocations: 401.2 kB / 4.453 GB, free: 38.45 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/13.47, allocations: 1.142 MB / 4.454 GB, free: 38.44 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/13.48, allocations: 1.658 MB / 4.456 GB, free: 37.93 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001867/13.48, allocations: 1.399 MB / 4.457 GB, free: 37.85 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/13.48, allocations: 3.719 kB / 4.457 GB, free: 37.85 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.005734/13.48, allocations: 3.523 MB / 4.461 GB, free: 37.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009588/13.48, allocations: 5.147 MB / 4.466 GB, free: 32.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/13.48, allocations: 11.47 kB / 4.466 GB, free: 32.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/13.48, allocations: 333 kB / 4.466 GB, free: 32.14 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002366/13.49, allocations: 0.5995 MB / 4.467 GB, free: 32.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/13.49, allocations: 3.1 MB / 4.47 GB, free: 29.55 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/13.49, allocations: 333.5 kB / 4.47 GB, free: 29.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003429/13.49, allocations: 119.4 kB / 4.47 GB, free: 29.54 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/13.49, allocations: 6.25 kB / 4.47 GB, free: 29.54 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00524/13.5, allocations: 3.247 MB / 4.473 GB, free: 29.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/13.5, allocations: 11.91 kB / 4.473 GB, free: 29.39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000981/13.5, allocations: 334.2 kB / 4.474 GB, free: 29.35 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/13.5, allocations: 0.5839 MB / 4.474 GB, free: 29.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/13.5, allocations: 3.096 MB / 4.477 GB, free: 26.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003541/13.51, allocations: 335.5 kB / 4.478 GB, free: 26.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000468/13.51, allocations: 125.3 kB / 4.478 GB, free: 26.75 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008519/13.51, allocations: 325.6 kB / 4.478 GB, free: 26.58 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000635/13.51, allocations: 231.8 kB / 4.478 GB, free: 26.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/13.52, allocations: 8.21 MB / 4.486 GB, free: 25.71 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-05/13.52, allocations: 87.05 kB / 4.486 GB, free: 25.71 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/13.52, allocations: 6.469 kB / 4.486 GB, free: 25.71 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007925/13.53, allocations: 7.118 MB / 4.493 GB, free: 24.75 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01834/13.55, allocations: 13.22 MB / 4.506 GB, free: 23.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/13.55, allocations: 7.312 kB / 4.506 GB, free: 23.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/13.55, allocations: 495.8 kB / 4.507 GB, free: 23.11 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/13.55, allocations: 459.7 kB / 4.507 GB, free: 23.06 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000314/13.55, allocations: 86.19 kB / 4.507 GB, free: 23.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/13.55, allocations: 3.223 MB / 4.51 GB, free: 20.46 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/13.55, allocations: 5.938 kB / 4.51 GB, free: 20.46 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009984/13.56, allocations: 8.24 MB / 4.518 GB, free: 19.03 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/13.56, allocations: 0.8307 MB / 4.519 GB, free: 18.68 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008001/13.56, allocations: 72.8 kB / 4.519 GB, free: 18.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002416/13.57, allocations: 237.5 kB / 4.519 GB, free: 18.67 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003629/13.57, allocations: 200.1 kB / 4.52 GB, free: 18.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/13.57, allocations: 96.22 kB / 4.52 GB, free: 18.66 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001953/13.57, allocations: 1.322 MB / 4.521 GB, free: 18.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.81e-07/13.57, allocations: 0 / 4.521 GB, free: 18.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01374/13.58, allocations: 2.956 MB / 4.524 GB, free: 18.39 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02797/13.61, allocations: 13.07 MB / 4.537 GB, free: 14.91 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01114/13.62, allocations: 5.633 MB / 4.542 GB, free: 14.55 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/13.62, allocations: 2.062 kB / 4.542 GB, free: 14.55 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004774/13.63, allocations: 2.954 MB / 4.545 GB, free: 14.41 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007308/13.63, allocations: 1.228 MB / 4.546 GB, free: 14.39 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/13.66, allocations: 8.077 MB / 4.554 GB, free: 12.83 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003236/13.66, allocations: 2.392 MB / 4.557 GB, free: 12.05 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006972/13.67, allocations: 2.777 MB / 4.559 GB, free: 12 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002474/13.67, allocations: 1.42 MB / 4.561 GB, free: 11.99 MB / 0.573 GB Notification: Performance of SimCode: time 9.52e-07/13.67, allocations: 2.75 kB / 4.561 GB, free: 11.99 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6452/14.32, allocations: 136.3 MB / 4.694 GB, free: 78.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/14.32, allocations: 234.3 kB / 4.694 GB, free: 78.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/22.25, allocations: 7.375 kB / 4.694 GB, free: 78.03 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat