Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001446/0.001446, allocations: 175.9 kB / 17.06 MB, free: 5.098 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.497/1.497, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009915/0.0009917, allocations: 95.86 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3969/0.3969, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003776, allocations: 8 kB / 460 MB, free: 1.418 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4135, allocations: 61.9 MB / 0.5096 GB, free: 37.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.519/7.932, allocations: 2.847 GB / 3.357 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/7.933, allocations: 86.55 kB / 3.357 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.39/11.32, allocations: 0.8141 GB / 4.171 GB, free: 42.23 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.655e-06/11.32, allocations: 0 / 4.171 GB, free: 42.23 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003226/11.32, allocations: 62.44 kB / 4.171 GB, free: 42.21 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01817/11.34, allocations: 3.94 MB / 4.175 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/11.34, allocations: 10.78 kB / 4.175 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001419/11.34, allocations: 264.7 kB / 4.175 GB, free: 40.21 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006484/11.35, allocations: 0.7866 MB / 4.176 GB, free: 40.08 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007239/11.36, allocations: 2.009 MB / 4.178 GB, free: 39.64 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/11.36, allocations: 165.6 kB / 4.178 GB, free: 39.64 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/11.36, allocations: 181.1 kB / 4.178 GB, free: 39.63 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/11.37, allocations: 3.356 MB / 4.181 GB, free: 39.15 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/11.37, allocations: 7.531 kB / 4.181 GB, free: 39.15 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008585/11.37, allocations: 78.95 kB / 4.181 GB, free: 39.15 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002776/11.37, allocations: 149 kB / 4.182 GB, free: 39.14 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008376/11.38, allocations: 3.19 MB / 4.185 GB, free: 39.12 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02282/11.4, allocations: 13.83 MB / 4.198 GB, free: 30.88 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005127/11.41, allocations: 2.086 MB / 4.2 GB, free: 30.83 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04514/11.45, allocations: 24.6 MB / 4.224 GB, free: 31.71 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005204/11.46, allocations: 1.629 MB / 4.226 GB, free: 31.59 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001968/11.46, allocations: 181.1 kB / 4.226 GB, free: 31.51 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.141e-05/11.46, allocations: 0 / 4.226 GB, free: 31.51 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02502/11.48, allocations: 8.543 MB / 4.234 GB, free: 30.25 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/11.48, allocations: 251.5 kB / 4.235 GB, free: 29.97 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002996/11.49, allocations: 1.333 MB / 4.236 GB, free: 29.8 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003959/11.49, allocations: 56.36 kB / 4.236 GB, free: 29.77 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001101/11.49, allocations: 0.8763 MB / 4.237 GB, free: 29.44 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007027/11.49, allocations: 0.5524 MB / 4.237 GB, free: 29.09 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/11.49, allocations: 33.91 kB / 4.237 GB, free: 29.09 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002213/11.49, allocations: 381.8 kB / 4.238 GB, free: 28.79 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/11.49, allocations: 1.032 MB / 4.239 GB, free: 28.78 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/11.49, allocations: 1.435 MB / 4.24 GB, free: 28.39 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/11.5, allocations: 1.264 MB / 4.241 GB, free: 28.29 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/11.5, allocations: 3.625 kB / 4.241 GB, free: 28.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007293/11.5, allocations: 3.198 MB / 4.244 GB, free: 28 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002068/11.51, allocations: 3.846 MB / 4.248 GB, free: 23.93 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.115e-05/11.51, allocations: 10.17 kB / 4.248 GB, free: 23.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002816/11.51, allocations: 0.5307 MB / 4.249 GB, free: 23.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/11.51, allocations: 449.2 kB / 4.249 GB, free: 23.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/11.51, allocations: 2.713 MB / 4.252 GB, free: 21.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/11.52, allocations: 246.5 kB / 4.252 GB, free: 21.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006418/11.52, allocations: 98.73 kB / 4.252 GB, free: 21.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/11.52, allocations: 9.688 kB / 4.252 GB, free: 21.77 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006993/11.52, allocations: 2.829 MB / 4.255 GB, free: 21.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/11.52, allocations: 12.19 kB / 4.255 GB, free: 21.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007085/11.52, allocations: 210.1 kB / 4.255 GB, free: 21.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/11.53, allocations: 460.6 kB / 4.256 GB, free: 21.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/11.53, allocations: 1.87 MB / 4.257 GB, free: 20.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/11.53, allocations: 262.8 kB / 4.258 GB, free: 20 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004705/11.53, allocations: 95.61 kB / 4.258 GB, free: 20 MB / 0.573 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,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_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 () * Number of clocked 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.002336/11.53, allocations: 0.7086 MB / 4.258 GB, free: 19.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/11.54, allocations: 204.9 kB / 4.259 GB, free: 19.63 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/11.55, allocations: 7.553 MB / 4.266 GB, free: 18.82 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.886e-05/11.55, allocations: 86.91 kB / 4.266 GB, free: 18.82 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.551e-05/11.55, allocations: 4 kB / 4.266 GB, free: 18.82 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008769/11.56, allocations: 6.619 MB / 4.273 GB, free: 17.88 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01945/11.58, allocations: 11.38 MB / 4.284 GB, free: 14.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-05/11.58, allocations: 5.625 kB / 4.284 GB, free: 14.94 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/11.58, allocations: 365.4 kB / 4.284 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003284/11.58, allocations: 1.215 MB / 4.285 GB, free: 14.67 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006284/11.58, allocations: 70.69 kB / 4.285 GB, free: 14.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00346/11.59, allocations: 3.203 MB / 4.288 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/11.59, allocations: 4.031 kB / 4.288 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/11.6, allocations: 7.618 MB / 4.296 GB, free: 8.312 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/11.6, allocations: 0.7286 MB / 4.297 GB, free: 7.859 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009666/11.6, allocations: 50.28 kB / 4.297 GB, free: 7.832 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/11.61, allocations: 190.7 kB / 4.297 GB, free: 7.785 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/11.61, allocations: 159.6 kB / 4.297 GB, free: 7.754 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002334/11.61, allocations: 78.97 kB / 4.297 GB, free: 7.738 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002697/11.61, allocations: 1.214 MB / 4.298 GB, free: 7.266 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.81e-07/11.61, allocations: 3.094 kB / 4.298 GB, free: 7.266 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01259/11.62, allocations: 2.59 MB / 4.301 GB, free: 6.75 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 153 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02883/11.65, allocations: 11.85 MB / 4.312 GB, free: 13.98 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01064/11.66, allocations: 4.877 MB / 4.317 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/11.66, allocations: 4 kB / 4.317 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00437/11.67, allocations: 2.513 MB / 4.32 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005482/11.67, allocations: 0.9191 MB / 4.32 GB, free: 6.836 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4325/12.1, allocations: 16.73 MB / 4.337 GB, free: 60.77 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/12.11, allocations: 2.181 MB / 4.339 GB, free: 60.01 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005382/12.11, allocations: 2.295 MB / 4.341 GB, free: 59.99 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/12.11, allocations: 1.219 MB / 4.342 GB, free: 59.99 MB / 0.5886 GB Notification: Performance of SimCode: time 7.61e-07/12.11, allocations: 0 / 4.342 GB, free: 59.99 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1981/12.31, allocations: 109.1 MB / 4.449 GB, free: 55.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/12.31, allocations: 254.2 kB / 4.449 GB, free: 55.36 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.211/18.52, allocations: 2.938 kB / 4.449 GB, free: 55.36 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat