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.0009653/0.0009653, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 100.4 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2001/0.2001, allocations: 45.15 MB / 383.8 MB, free: 300 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.712e-05, allocations: 6.656 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 63.25 MB / 0.5044 GB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.985/7.092, allocations: 2.83 GB / 3.334 GB, free: 86.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/7.093, allocations: 79.95 kB / 3.335 GB, free: 86.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.467/9.56, allocations: 0.5772 GB / 3.912 GB, free: 53.62 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.244e-06/9.56, allocations: 0 / 3.912 GB, free: 53.62 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002799/9.56, allocations: 44.39 kB / 3.912 GB, free: 53.61 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.01414/9.574, allocations: 2.86 MB / 3.915 GB, free: 52.13 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/9.574, allocations: 11.78 kB / 3.915 GB, free: 52.13 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004781/9.579, allocations: 0.5417 MB / 3.915 GB, free: 52.04 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006252/9.586, allocations: 1.44 MB / 3.917 GB, free: 51.67 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/9.586, allocations: 55.52 kB / 3.917 GB, free: 51.67 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009245/9.587, allocations: 80.97 kB / 3.917 GB, free: 51.67 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004079/9.591, allocations: 1.561 MB / 3.918 GB, free: 51.66 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/9.595, allocations: 1.777 MB / 3.92 GB, free: 51.28 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.403e-05/9.596, allocations: 7.281 kB / 3.92 GB, free: 51.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/9.596, allocations: 2.75 kB / 3.92 GB, free: 51.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/9.596, allocations: 101 kB / 3.92 GB, free: 51.28 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.1801/9.776, allocations: 97.48 MB / 4.015 GB, free: 18.32 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/9.778, allocations: 0.9325 MB / 4.016 GB, free: 18.29 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/9.779, allocations: 0.5676 MB / 4.017 GB, free: 18.01 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03774/9.817, allocations: 18.76 MB / 4.035 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001383/9.819, allocations: 0.7297 MB / 4.036 GB, free: 15.03 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=88): time 2.945e-06/9.819, allocations: 0 / 4.036 GB, free: 15.03 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96): time 0.01363/9.832, allocations: 4.76 MB / 4.04 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003549/9.833, allocations: 380.3 kB / 4.041 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/9.834, allocations: 0.8003 MB / 4.042 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001851/9.834, allocations: 25.7 kB / 4.042 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007086/9.835, allocations: 0.6809 MB / 4.042 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/9.835, allocations: 326.3 kB / 4.043 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.68e-05/9.836, allocations: 0 / 4.043 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002435/9.836, allocations: 353 kB / 4.043 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008676/9.837, allocations: 0.6076 MB / 4.043 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008795/9.838, allocations: 0.887 MB / 4.044 GB, free: 8.781 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003362/9.841, allocations: 1.185 MB / 4.045 GB, free: 8.156 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/9.841, allocations: 3.953 kB / 4.045 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004989/9.846, allocations: 2.223 MB / 4.048 GB, free: 6.844 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001152/9.847, allocations: 2.735 MB / 4.05 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.017e-05/9.847, allocations: 8 kB / 4.05 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/9.847, allocations: 130.6 kB / 4.05 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/9.849, allocations: 319 kB / 4.051 GB, free: 3.641 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009224/9.85, allocations: 1.26 MB / 4.052 GB, free: 2.473 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/9.851, allocations: 173.3 kB / 4.052 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/9.851, allocations: 60.16 kB / 4.052 GB, free: 2.301 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/9.851, allocations: 9.672 kB / 4.052 GB, free: 2.293 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004504/9.856, allocations: 1.97 MB / 4.054 GB, free: 0.7148 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.833e-05/9.856, allocations: 15.84 kB / 4.054 GB, free: 0.7031 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/9.856, allocations: 113.4 kB / 4.054 GB, free: 0.6055 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/9.857, allocations: 320 kB / 4.055 GB, free: 364 kB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4248/10.28, allocations: 1.257 MB / 4.056 GB, free: 99.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/10.28, allocations: 149.3 kB / 4.056 GB, free: 99.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/10.28, allocations: 61.75 kB / 4.056 GB, free: 99.48 MB / 0.5886 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,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,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.0004623/10.28, allocations: 176 kB / 4.056 GB, free: 99.34 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/10.29, allocations: 122.5 kB / 4.056 GB, free: 99.34 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005056/10.29, allocations: 3.818 MB / 4.06 GB, free: 99.09 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.088e-05/10.29, allocations: 47.45 kB / 4.06 GB, free: 99.09 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/10.29, allocations: 3.906 kB / 4.06 GB, free: 99.09 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003398/10.29, allocations: 3.016 MB / 4.063 GB, free: 98.73 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006811/10.3, allocations: 5.342 MB / 4.068 GB, free: 98.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/10.3, allocations: 1.281 kB / 4.068 GB, free: 98.36 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000886/10.3, allocations: 199.9 kB / 4.068 GB, free: 98.36 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004758/10.3, allocations: 175.9 kB / 4.069 GB, free: 98.34 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-05/10.3, allocations: 24.64 kB / 4.069 GB, free: 98.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000764/10.3, allocations: 1.339 MB / 4.07 GB, free: 97.31 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/10.3, allocations: 1.031 kB / 4.07 GB, free: 97.31 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005746/10.31, allocations: 3.69 MB / 4.074 GB, free: 96.91 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/10.31, allocations: 0.497 MB / 4.074 GB, free: 96.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000224/10.31, allocations: 15.33 kB / 4.074 GB, free: 96.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000901/10.31, allocations: 99.67 kB / 4.074 GB, free: 96.71 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/10.31, allocations: 81.92 kB / 4.074 GB, free: 96.71 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-05/10.31, allocations: 42.55 kB / 4.074 GB, free: 96.71 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001341/10.31, allocations: 0.8456 MB / 4.075 GB, free: 96.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.91e-07/10.31, allocations: 1.312 kB / 4.075 GB, free: 96.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01168/10.32, allocations: 2.158 MB / 4.077 GB, free: 96.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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 (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.01401/10.34, allocations: 2.52 MB / 4.08 GB, free: 96.43 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00488/10.34, allocations: 2.827 MB / 4.082 GB, free: 96.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/10.34, allocations: 3.75 kB / 4.082 GB, free: 96.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/10.34, allocations: 1.207 MB / 4.084 GB, free: 96.12 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/10.35, allocations: 0.5053 MB / 4.084 GB, free: 96.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/10.35, allocations: 3.353 MB / 4.087 GB, free: 95.41 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/10.35, allocations: 1.636 MB / 4.089 GB, free: 94.68 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003487/10.36, allocations: 1.78 MB / 4.091 GB, free: 94.66 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/10.36, allocations: 99.84 kB / 4.091 GB, free: 94.66 MB / 0.5886 GB Notification: Performance of SimCode: time 7.11e-07/10.36, allocations: 0 / 4.091 GB, free: 94.66 MB / 0.5886 GB Notification: Performance of Templates: time 0.08218/10.44, allocations: 55.1 MB / 4.145 GB, free: 92.34 MB / 0.5886 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