Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 198.7 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 244.1 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007199/0.0007201, allocations: 100.1 kB / 296.1 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3057/0.3057, allocations: 44.81 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004268/0.0004269, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4253/0.4257, allocations: 62.95 MB / 0.5165 GB, free: 37.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.161/6.586, allocations: 2.853 GB / 3.369 GB, free: 131.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/6.587, allocations: 81 kB / 3.369 GB, free: 131.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.597/9.184, allocations: 0.8744 GB / 4.244 GB, free: 30.07 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.874e-06/9.184, allocations: 0 / 4.244 GB, free: 30.07 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001945/9.184, allocations: 72.06 kB / 4.244 GB, free: 30.06 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01634/9.201, allocations: 4.23 MB / 4.248 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/9.201, allocations: 11.59 kB / 4.248 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006532/9.207, allocations: 0.8752 MB / 4.249 GB, free: 27.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02091/9.228, allocations: 13.61 MB / 4.262 GB, free: 27.25 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/9.228, allocations: 186.2 kB / 4.262 GB, free: 27.25 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005332/9.229, allocations: 205.9 kB / 4.262 GB, free: 27.25 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007248/9.236, allocations: 3.682 MB / 4.266 GB, free: 26.67 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.433e-05/9.236, allocations: 17.78 kB / 4.266 GB, free: 26.66 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002629/9.236, allocations: 90.69 kB / 4.266 GB, free: 26.66 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002139/9.237, allocations: 168.5 kB / 4.266 GB, free: 26.65 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006662/9.243, allocations: 3.357 MB / 4.269 GB, free: 26.61 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.01634/9.26, allocations: 15.61 MB / 4.285 GB, free: 16.76 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005261/9.265, allocations: 2.829 MB / 4.287 GB, free: 15.51 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/9.267, allocations: 1.281 MB / 4.289 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04262/9.31, allocations: 27.06 MB / 4.315 GB, free: 12.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005262/9.315, allocations: 1.753 MB / 4.317 GB, free: 11.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 4.729e-06/9.315, allocations: 4 kB / 4.317 GB, free: 11.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.02544/9.34, allocations: 9.246 MB / 4.326 GB, free: 8.262 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/9.34, allocations: 252.1 kB / 4.326 GB, free: 7.977 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/9.343, allocations: 1.599 MB / 4.328 GB, free: 7.395 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002814/9.343, allocations: 61.52 kB / 4.328 GB, free: 7.336 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008556/9.344, allocations: 0.9705 MB / 4.329 GB, free: 6.586 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006153/9.345, allocations: 0.6277 MB / 4.329 GB, free: 6.102 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/9.345, allocations: 43.22 kB / 4.329 GB, free: 6.07 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000194/9.345, allocations: 381.6 kB / 4.33 GB, free: 5.734 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/9.347, allocations: 1.159 MB / 4.331 GB, free: 5.348 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/9.35, allocations: 1.617 MB / 4.332 GB, free: 4.449 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/9.354, allocations: 2.896 MB / 4.335 GB, free: 2.922 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/9.354, allocations: 3.938 kB / 4.335 GB, free: 2.922 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006254/9.361, allocations: 3.395 MB / 4.339 GB, free: 280 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003966/9.361, allocations: 479.8 kB / 4.339 GB, free: 15.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/9.361, allocations: 16 kB / 4.339 GB, free: 15.63 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009035/9.362, allocations: 256.2 kB / 4.339 GB, free: 15.42 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/9.364, allocations: 0.5192 MB / 4.34 GB, free: 14.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/9.366, allocations: 2.427 MB / 4.342 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/9.368, allocations: 312.3 kB / 4.342 GB, free: 12.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004213/9.369, allocations: 105.6 kB / 4.343 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/9.369, allocations: 6.156 kB / 4.343 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006739/9.376, allocations: 3.128 MB / 4.346 GB, free: 9.449 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/9.376, allocations: 8 kB / 4.346 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008658/9.376, allocations: 256.3 kB / 4.346 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/9.379, allocations: 0.5107 MB / 4.346 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/9.38, allocations: 2.431 MB / 4.349 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/9.383, allocations: 313.8 kB / 4.349 GB, free: 6.105 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003414/9.383, allocations: 101.1 kB / 4.349 GB, free: 6.016 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001908/9.385, allocations: 0.7606 MB / 4.35 GB, free: 5.301 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000753/9.386, allocations: 209.5 kB / 4.35 GB, free: 5.094 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.324/9.71, allocations: 7.807 MB / 4.358 GB, free: 59.05 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.237e-05/9.71, allocations: 83.91 kB / 4.358 GB, free: 59.05 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/9.71, allocations: 0 / 4.358 GB, free: 59.05 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00797/9.718, allocations: 6.68 MB / 4.364 GB, free: 58.17 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01552/9.734, allocations: 12.38 MB / 4.376 GB, free: 56.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/9.734, allocations: 5.406 kB / 4.376 GB, free: 56.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/9.735, allocations: 438.6 kB / 4.377 GB, free: 56.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/9.737, allocations: 371.1 kB / 4.377 GB, free: 56.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/9.737, allocations: 80.59 kB / 4.377 GB, free: 56.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/9.738, allocations: 2.531 MB / 4.38 GB, free: 54.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/9.738, allocations: 12.41 kB / 4.38 GB, free: 54.63 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009218/9.747, allocations: 7.534 MB / 4.387 GB, free: 53.93 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/9.749, allocations: 0.7799 MB / 4.388 GB, free: 53.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/9.749, allocations: 60.64 kB / 4.388 GB, free: 53.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/9.751, allocations: 224.4 kB / 4.388 GB, free: 53.81 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/9.751, allocations: 185 kB / 4.388 GB, free: 53.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/9.751, allocations: 84.31 kB / 4.388 GB, free: 53.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001858/9.753, allocations: 1.265 MB / 4.39 GB, free: 53.66 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/9.753, allocations: 0 / 4.39 GB, free: 53.66 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.008652/9.762, allocations: 2.699 MB / 4.392 GB, free: 53.66 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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) * 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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00997/9.772, allocations: 2.754 MB / 4.395 GB, free: 53.48 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009469/9.781, allocations: 5.377 MB / 4.4 GB, free: 53.15 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/9.781, allocations: 1.031 kB / 4.4 GB, free: 53.15 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004025/9.785, allocations: 2.757 MB / 4.403 GB, free: 53 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006576/9.792, allocations: 1.078 MB / 4.404 GB, free: 52.98 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/9.802, allocations: 8.95 MB / 4.413 GB, free: 49.55 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001363/9.804, allocations: 2.182 MB / 4.415 GB, free: 48.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/9.805, allocations: 217.8 kB / 4.415 GB, free: 48.79 MB / 0.5886 GB Notification: Performance of SimCode: time 1.282e-06/9.805, allocations: 0 / 4.415 GB, free: 48.79 MB / 0.5886 GB Notification: Performance of Templates: time 0.1185/9.923, allocations: 118.7 MB / 4.531 GB, free: 25.43 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches