Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002207/0.002207, allocations: 200.9 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 226.5 MB / 245.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 110.8 kB / 297.5 MB, free: 6.832 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3438/0.3438, allocations: 44.83 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003932, allocations: 12 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4975/0.498, allocations: 62.95 MB / 0.5184 GB, free: 37.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.432/6.93, allocations: 2.831 GB / 3.35 GB, free: 155.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/6.93, allocations: 87.41 kB / 3.35 GB, free: 155.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.739/8.669, allocations: 0.5572 GB / 3.907 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.382e-06/8.669, allocations: 3.938 kB / 3.907 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000155/8.67, allocations: 43.36 kB / 3.907 GB, free: 8.91 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009769/8.679, allocations: 3.027 MB / 3.91 GB, free: 5.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/8.679, allocations: 8.031 kB / 3.91 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003912/8.683, allocations: 0.5481 MB / 3.91 GB, free: 5.285 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0175/8.701, allocations: 9.498 MB / 3.92 GB, free: 12.49 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002303/8.701, allocations: 112.9 kB / 3.92 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007261/8.702, allocations: 122.2 kB / 3.92 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/8.709, allocations: 2.302 MB / 3.922 GB, free: 9.836 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.224e-05/8.709, allocations: 7.844 kB / 3.922 GB, free: 9.828 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003474/8.709, allocations: 58.25 kB / 3.922 GB, free: 9.777 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/8.709, allocations: 98.2 kB / 3.922 GB, free: 9.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005527/8.715, allocations: 2.062 MB / 3.924 GB, free: 7.609 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.3615/9.077, allocations: 9.777 MB / 3.934 GB, free: 49.79 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003636/9.08, allocations: 1.416 MB / 3.935 GB, free: 49.77 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/9.081, allocations: 0.7 MB / 3.936 GB, free: 49.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04078/9.122, allocations: 27.01 MB / 3.962 GB, free: 32.22 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002921/9.125, allocations: 1.063 MB / 3.963 GB, free: 32.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=96): time 3.847e-06/9.125, allocations: 0 / 3.963 GB, free: 32.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=104): time 0.01248/9.138, allocations: 5.24 MB / 3.968 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.772e-05/9.138, allocations: 271.4 kB / 3.969 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/9.139, allocations: 1.164 MB / 3.97 GB, free: 31.14 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001496/9.14, allocations: 43.8 kB / 3.97 GB, free: 31.11 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000595/9.14, allocations: 0.6458 MB / 3.971 GB, free: 30.9 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003151/9.141, allocations: 353.1 kB / 3.971 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.54e-05/9.141, allocations: 26.55 kB / 3.971 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.271e-05/9.141, allocations: 362.1 kB / 3.971 GB, free: 30.42 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/9.142, allocations: 0.6893 MB / 3.972 GB, free: 30.42 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/9.144, allocations: 0.9935 MB / 3.973 GB, free: 30.11 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002767/9.146, allocations: 1.714 MB / 3.975 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/9.146, allocations: 0 / 3.975 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003596/9.15, allocations: 2.039 MB / 3.977 GB, free: 29.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001692/9.15, allocations: 326.8 kB / 3.977 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/9.15, allocations: 15.62 kB / 3.977 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004877/9.151, allocations: 135.4 kB / 3.977 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/9.152, allocations: 319.2 kB / 3.977 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006184/9.153, allocations: 1.256 MB / 3.979 GB, free: 28.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/9.154, allocations: 149.6 kB / 3.979 GB, free: 28.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/9.154, allocations: 63.8 kB / 3.979 GB, free: 28.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/9.154, allocations: 5.062 kB / 3.979 GB, free: 28.2 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003296/9.157, allocations: 1.863 MB / 3.981 GB, free: 28.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/9.157, allocations: 7.406 kB / 3.981 GB, free: 28.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004661/9.158, allocations: 146.5 kB / 3.981 GB, free: 28.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/9.159, allocations: 312.3 kB / 3.981 GB, free: 28.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005975/9.16, allocations: 1.25 MB / 3.982 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/9.161, allocations: 157.2 kB / 3.982 GB, free: 27.06 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/9.161, allocations: 70.09 kB / 3.982 GB, free: 27.06 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.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 (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00107/9.163, allocations: 0.5309 MB / 3.983 GB, free: 26.84 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002762/9.163, allocations: 139.1 kB / 3.983 GB, free: 26.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006926/9.17, allocations: 4.824 MB / 3.988 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-05/9.17, allocations: 54.83 kB / 3.988 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/9.17, allocations: 0 / 3.988 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005193/9.175, allocations: 4.048 MB / 3.992 GB, free: 25.88 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008803/9.184, allocations: 6.862 MB / 3.999 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/9.184, allocations: 2.312 kB / 3.999 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009663/9.185, allocations: 246 kB / 3.999 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006658/9.186, allocations: 192.4 kB / 3.999 GB, free: 25.34 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-05/9.186, allocations: 43.2 kB / 3.999 GB, free: 25.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005779/9.186, allocations: 1.286 MB / 4 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/9.186, allocations: 0 / 4 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005807/9.192, allocations: 4.456 MB / 4.005 GB, free: 23.88 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/9.193, allocations: 0.551 MB / 4.005 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004743/9.194, allocations: 39.34 kB / 4.005 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/9.195, allocations: 122.6 kB / 4.005 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/9.195, allocations: 91.42 kB / 4.005 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/9.196, allocations: 46.27 kB / 4.005 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001869/9.197, allocations: 0.9886 MB / 4.006 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3e-07/9.197, allocations: 0 / 4.006 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008822/9.206, allocations: 2.152 MB / 4.008 GB, free: 23.54 MB / 0.5573 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (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 (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01062/9.217, allocations: 2.289 MB / 4.011 GB, free: 23.31 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006832/9.224, allocations: 3.234 MB / 4.014 GB, free: 23.07 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/9.224, allocations: 0.9844 kB / 4.014 GB, free: 23.07 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002417/9.226, allocations: 1.485 MB / 4.015 GB, free: 23 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004493/9.231, allocations: 0.6441 MB / 4.016 GB, free: 23 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008359/9.239, allocations: 5.661 MB / 4.021 GB, free: 20.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/9.241, allocations: 1.673 MB / 4.023 GB, free: 20.09 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002811/9.244, allocations: 1.606 MB / 4.025 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/9.244, allocations: 130.8 kB / 4.025 GB, free: 20.07 MB / 0.5573 GB Notification: Performance of SimCode: time 7.42e-07/9.244, allocations: 1.969 kB / 4.025 GB, free: 20.07 MB / 0.5573 GB Notification: Performance of Templates: time 0.08158/9.325, allocations: 64.94 MB / 4.088 GB, free: 16.74 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches