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.001031/0.001031, allocations: 196.5 kB / 14.16 MB, free: 1.16 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: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000932/0.0009319, allocations: 85.03 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1817/0.1817, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.126e-05, allocations: 4 kB / 460.4 MB, free: 70.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 63.24 MB / 0.5114 GB, free: 6.785 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.813/6.921, allocations: 2.831 GB / 3.342 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/6.922, allocations: 79.95 kB / 3.342 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.418/9.34, allocations: 0.5824 GB / 3.925 GB, free: 48.31 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.175e-06/9.34, allocations: 0 / 3.925 GB, free: 48.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002327/9.34, allocations: 51.09 kB / 3.925 GB, free: 48.3 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.01231/9.352, allocations: 2.86 MB / 3.927 GB, free: 46.67 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/9.352, allocations: 10.53 kB / 3.927 GB, free: 46.67 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00436/9.357, allocations: 0.5383 MB / 3.928 GB, free: 46.54 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004459/9.361, allocations: 1.436 MB / 3.929 GB, free: 45.86 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/9.361, allocations: 113.7 kB / 3.929 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005901/9.362, allocations: 123.8 kB / 3.93 GB, free: 45.77 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005349/9.367, allocations: 2.284 MB / 3.932 GB, free: 44.78 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.028e-05/9.367, allocations: 3.938 kB / 3.932 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/9.368, allocations: 58.03 kB / 3.932 GB, free: 44.74 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001306/9.368, allocations: 95.48 kB / 3.932 GB, free: 44.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003989/9.372, allocations: 1.98 MB / 3.934 GB, free: 44.1 MB / 0.5417 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.01262/9.384, allocations: 9.802 MB / 3.943 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002753/9.387, allocations: 1.344 MB / 3.945 GB, free: 34.91 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007899/9.388, allocations: 0.6265 MB / 3.945 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04625/9.434, allocations: 27.09 MB / 3.972 GB, free: 7.133 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002894/9.437, allocations: 1.053 MB / 3.973 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 4.268e-06/9.437, allocations: 4 kB / 3.973 GB, free: 6.305 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01109/9.448, allocations: 4.478 MB / 3.977 GB, free: 1.945 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.513e-05/9.448, allocations: 282 kB / 3.978 GB, free: 1.609 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/9.45, allocations: 1.016 MB / 3.979 GB, free: 0.582 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/9.45, allocations: 49.7 kB / 3.979 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006087/9.451, allocations: 0.6485 MB / 3.979 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004114/9.451, allocations: 359.1 kB / 3.98 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/9.452, allocations: 24 kB / 3.98 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001889/9.452, allocations: 349.9 kB / 3.98 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/9.453, allocations: 0.6234 MB / 3.981 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/9.454, allocations: 0.9047 MB / 3.981 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/9.456, allocations: 0.7641 MB / 3.982 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/9.456, allocations: 0 / 3.982 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003622/9.459, allocations: 1.889 MB / 3.984 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001363/9.461, allocations: 2.755 MB / 3.987 GB, free: 7.883 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/9.461, allocations: 8 kB / 3.987 GB, free: 7.875 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005643/9.461, allocations: 137.6 kB / 3.987 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/9.463, allocations: 311.6 kB / 3.987 GB, free: 7.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009539/9.464, allocations: 1.253 MB / 3.988 GB, free: 6.125 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/9.465, allocations: 155.8 kB / 3.988 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/9.465, allocations: 67.97 kB / 3.989 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/9.465, allocations: 5.094 kB / 3.989 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003082/9.468, allocations: 1.705 MB / 3.99 GB, free: 4.188 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.921e-05/9.468, allocations: 12.72 kB / 3.99 GB, free: 4.176 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004361/9.469, allocations: 137.5 kB / 3.99 GB, free: 4.035 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/9.47, allocations: 311.6 kB / 3.991 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009063/9.471, allocations: 1.249 MB / 3.992 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/9.473, allocations: 151.9 kB / 3.992 GB, free: 2.281 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/9.473, allocations: 63.98 kB / 3.992 GB, free: 2.219 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 () * 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.0004678/9.473, allocations: 226.7 kB / 3.992 GB, free: 1.988 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004099/9.474, allocations: 138.3 kB / 3.992 GB, free: 1.852 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3922/9.866, allocations: 4.727 MB / 3.997 GB, free: 67.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.843e-05/9.866, allocations: 56.14 kB / 3.997 GB, free: 67.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/9.866, allocations: 0 / 3.997 GB, free: 67.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003902/9.87, allocations: 3.959 MB / 4.001 GB, free: 67.09 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/9.88, allocations: 6.767 MB / 4.008 GB, free: 66.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/9.88, allocations: 1.594 kB / 4.008 GB, free: 66.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/9.881, allocations: 262.9 kB / 4.008 GB, free: 66.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006241/9.882, allocations: 173.8 kB / 4.008 GB, free: 66.62 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.925e-05/9.882, allocations: 37.28 kB / 4.008 GB, free: 66.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007112/9.883, allocations: 1.293 MB / 4.009 GB, free: 65.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/9.883, allocations: 0 / 4.009 GB, free: 65.59 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/9.889, allocations: 4.228 MB / 4.013 GB, free: 65.29 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/9.89, allocations: 0.5541 MB / 4.014 GB, free: 65.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/9.89, allocations: 32.94 kB / 4.014 GB, free: 65.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/9.891, allocations: 126.9 kB / 4.014 GB, free: 65.16 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/9.891, allocations: 93.34 kB / 4.014 GB, free: 65.16 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/9.892, allocations: 46.81 kB / 4.014 GB, free: 65.16 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001637/9.893, allocations: 0.9762 MB / 4.015 GB, free: 65.04 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.1e-07/9.893, allocations: 1.438 kB / 4.015 GB, free: 65.04 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009664/9.903, allocations: 2.227 MB / 4.017 GB, free: 65.04 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) * 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.01256/9.916, allocations: 2.401 MB / 4.02 GB, free: 64.92 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005776/9.921, allocations: 3.092 MB / 4.023 GB, free: 64.69 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/9.921, allocations: 3.188 kB / 4.023 GB, free: 64.69 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001847/9.923, allocations: 1.43 MB / 4.024 GB, free: 64.61 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/9.927, allocations: 0.6443 MB / 4.025 GB, free: 64.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005073/9.932, allocations: 3.814 MB / 4.028 GB, free: 63.87 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008916/9.933, allocations: 1.719 MB / 4.03 GB, free: 63.13 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002945/9.936, allocations: 1.732 MB / 4.032 GB, free: 63.12 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/9.936, allocations: 109.2 kB / 4.032 GB, free: 63.11 MB / 0.5573 GB Notification: Performance of SimCode: time 8.12e-07/9.936, allocations: 0 / 4.032 GB, free: 63.11 MB / 0.5573 GB Notification: Performance of Templates: time 0.08488/10.02, allocations: 67.6 MB / 4.098 GB, free: 60.71 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/jenkins/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