Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 195.5 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007935/0.0007936, allocations: 101.9 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2922/0.2922, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002555, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2907, allocations: 62.96 MB / 0.5165 GB, free: 37.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.006/5.297, allocations: 2.832 GB / 3.349 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/5.297, allocations: 82.72 kB / 3.349 GB, free: 155 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.791/8.088, allocations: 0.8348 GB / 4.183 GB, free: 42.34 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.034e-06/8.088, allocations: 5.188 kB / 4.183 GB, free: 42.34 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.000182/8.088, allocations: 55.69 kB / 4.183 GB, free: 42.34 MB / 0.573 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.01438/8.103, allocations: 4.077 MB / 4.187 GB, free: 40.63 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/8.103, allocations: 9.188 kB / 4.187 GB, free: 40.63 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005805/8.109, allocations: 0.7881 MB / 4.188 GB, free: 40.5 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02311/8.132, allocations: 13.45 MB / 4.201 GB, free: 39.93 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/8.132, allocations: 163.7 kB / 4.202 GB, free: 39.93 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009292/8.133, allocations: 187.5 kB / 4.202 GB, free: 39.92 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007996/8.141, allocations: 3.33 MB / 4.205 GB, free: 39.46 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.054e-05/8.141, allocations: 8.375 kB / 4.205 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/8.142, allocations: 88.08 kB / 4.205 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/8.142, allocations: 146.3 kB / 4.205 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007307/8.149, allocations: 3.032 MB / 4.208 GB, free: 39.43 MB / 0.573 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.0157/8.165, allocations: 14.21 MB / 4.222 GB, free: 30.93 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00444/8.169, allocations: 2.062 MB / 4.224 GB, free: 30.9 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001816/8.171, allocations: 1.086 MB / 4.225 GB, free: 30.89 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04214/8.213, allocations: 27.1 MB / 4.252 GB, free: 29.23 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004471/8.218, allocations: 1.585 MB / 4.253 GB, free: 29.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001615/8.22, allocations: 174.8 kB / 4.253 GB, free: 29.02 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=146): time 8.426e-06/8.22, allocations: 0 / 4.253 GB, free: 29.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158): time 0.02255/8.242, allocations: 8.272 MB / 4.261 GB, free: 27.98 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/8.242, allocations: 256.9 kB / 4.262 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002576/8.245, allocations: 1.581 MB / 4.263 GB, free: 27.52 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000284/8.245, allocations: 61.44 kB / 4.263 GB, free: 27.48 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007376/8.246, allocations: 0.8898 MB / 4.264 GB, free: 27.14 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000544/8.247, allocations: 0.5259 MB / 4.265 GB, free: 26.8 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/8.247, allocations: 33.88 kB / 4.265 GB, free: 26.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001923/8.247, allocations: 377.4 kB / 4.265 GB, free: 26.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/8.249, allocations: 1.035 MB / 4.266 GB, free: 26.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/8.251, allocations: 1.412 MB / 4.267 GB, free: 26.11 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003856/8.255, allocations: 2.561 MB / 4.27 GB, free: 25.62 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/8.255, allocations: 13.38 kB / 4.27 GB, free: 25.62 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.006272/8.261, allocations: 3.203 MB / 4.273 GB, free: 25.34 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002477/8.261, allocations: 440.3 kB / 4.273 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/8.261, allocations: 13.75 kB / 4.273 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002639/8.264, allocations: 0.6059 MB / 4.274 GB, free: 24.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/8.266, allocations: 431.1 kB / 4.274 GB, free: 24.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/8.268, allocations: 2.838 MB / 4.277 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/8.27, allocations: 237.4 kB / 4.277 GB, free: 22.67 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004114/8.271, allocations: 94.8 kB / 4.278 GB, free: 22.67 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/8.271, allocations: 2.562 kB / 4.278 GB, free: 22.67 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005447/8.276, allocations: 2.816 MB / 4.28 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/8.276, allocations: 8.656 kB / 4.28 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006432/8.277, allocations: 208.8 kB / 4.28 GB, free: 22.49 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/8.279, allocations: 447.6 kB / 4.281 GB, free: 22.49 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/8.28, allocations: 1.876 MB / 4.283 GB, free: 20.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/8.282, allocations: 231.5 kB / 4.283 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/8.283, allocations: 95.88 kB / 4.283 GB, free: 20.9 MB / 0.5886 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 (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_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_b.phase,pipe2.state_b.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 (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001595/8.284, allocations: 0.7106 MB / 4.284 GB, free: 20.63 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005309/8.285, allocations: 198.7 kB / 4.284 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009586/8.294, allocations: 7.555 MB / 4.291 GB, free: 19.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.719e-05/8.294, allocations: 90.36 kB / 4.291 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/8.294, allocations: 0 / 4.291 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007197/8.302, allocations: 6.625 MB / 4.298 GB, free: 18.93 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/8.315, allocations: 10.51 MB / 4.308 GB, free: 18.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/8.315, allocations: 4.094 kB / 4.308 GB, free: 18.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/8.316, allocations: 344.9 kB / 4.308 GB, free: 18.19 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002839/8.319, allocations: 1.359 MB / 4.31 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/8.319, allocations: 58.95 kB / 4.31 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/8.322, allocations: 3.482 MB / 4.313 GB, free: 16.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/8.322, allocations: 4.062 kB / 4.313 GB, free: 16 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009314/8.331, allocations: 7.385 MB / 4.32 GB, free: 14.76 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/8.333, allocations: 0.7246 MB / 4.321 GB, free: 14.31 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006226/8.333, allocations: 44.89 kB / 4.321 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001791/8.335, allocations: 202.2 kB / 4.321 GB, free: 14.23 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/8.336, allocations: 133.4 kB / 4.322 GB, free: 14.21 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/8.336, allocations: 77.62 kB / 4.322 GB, free: 14.2 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002138/8.338, allocations: 1.269 MB / 4.323 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.81e-07/8.338, allocations: 0 / 4.323 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01069/8.349, allocations: 2.624 MB / 4.325 GB, free: 13.17 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01113/8.36, allocations: 2.748 MB / 4.328 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0087/8.369, allocations: 4.854 MB / 4.333 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/8.369, allocations: 0 / 4.333 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003285/8.372, allocations: 2.317 MB / 4.335 GB, free: 9.625 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005565/8.377, allocations: 0.979 MB / 4.336 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/8.388, allocations: 8.056 MB / 4.344 GB, free: 5.059 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/8.39, allocations: 2.075 MB / 4.346 GB, free: 4.195 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009906/8.391, allocations: 193.5 kB / 4.346 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of SimCode: time 9.01e-07/8.392, allocations: 0 / 4.346 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of Templates: time 0.4192/8.811, allocations: 112.6 MB / 4.456 GB, free: 61.05 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches