Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009489/0.000949, allocations: 177.6 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008789/0.0008789, allocations: 86.64 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1849/0.1849, allocations: 43.48 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.222e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 58.86 MB / 477.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.833/6.942, allocations: 2.824 GB / 3.29 GB, free: 64.66 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/6.942, allocations: 85.34 kB / 3.29 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.342/9.284, allocations: 0.5715 GB / 3.862 GB, free: 50 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.643e-06/9.284, allocations: 0 / 3.862 GB, free: 50 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002498/9.285, allocations: 45.22 kB / 3.862 GB, free: 49.99 MB / 0.5105 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.01496/9.3, allocations: 2.846 MB / 3.865 GB, free: 48.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.095e-05/9.3, allocations: 11.5 kB / 3.865 GB, free: 48.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/9.305, allocations: 0.5427 MB / 3.865 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/9.31, allocations: 1.438 MB / 3.866 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/9.31, allocations: 62.25 kB / 3.867 GB, free: 47.58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000686/9.311, allocations: 74.84 kB / 3.867 GB, free: 47.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00362/9.314, allocations: 1.561 MB / 3.868 GB, free: 47.04 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004038/9.318, allocations: 1.775 MB / 3.87 GB, free: 46.19 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.791e-05/9.319, allocations: 0 / 3.87 GB, free: 46.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002775/9.319, allocations: 11.66 kB / 3.87 GB, free: 46.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/9.319, allocations: 105.6 kB / 3.87 GB, free: 46.16 MB / 0.5105 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.5819/9.901, allocations: 88.73 MB / 3.957 GB, free: 59.33 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/9.903, allocations: 0.9257 MB / 3.958 GB, free: 59.31 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009012/9.903, allocations: 0.5649 MB / 3.958 GB, free: 59.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03336/9.937, allocations: 16.91 MB / 3.975 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001425/9.938, allocations: 0.7269 MB / 3.975 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 2.915e-06/9.938, allocations: 0 / 3.975 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96): time 0.01146/9.95, allocations: 4.766 MB / 3.98 GB, free: 47.72 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/9.95, allocations: 376.5 kB / 3.98 GB, free: 47.28 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/9.951, allocations: 0.7998 MB / 3.981 GB, free: 47.13 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.208e-05/9.951, allocations: 25.7 kB / 3.981 GB, free: 47.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005068/9.952, allocations: 0.6781 MB / 3.982 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/9.952, allocations: 326.2 kB / 3.982 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/9.952, allocations: 3.969 kB / 3.982 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.473e-05/9.952, allocations: 357.8 kB / 3.982 GB, free: 46.39 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007619/9.953, allocations: 0.604 MB / 3.983 GB, free: 46.39 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009303/9.954, allocations: 0.8844 MB / 3.984 GB, free: 46.08 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006506/9.96, allocations: 1.762 MB / 3.986 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/9.96, allocations: 3.406 kB / 3.986 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00846/9.969, allocations: 2.797 MB / 3.988 GB, free: 45.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005789/9.969, allocations: 2.74 MB / 3.991 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/9.97, allocations: 7.844 kB / 3.991 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/9.97, allocations: 131.2 kB / 3.991 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/9.971, allocations: 314.8 kB / 3.991 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006856/9.972, allocations: 1.263 MB / 3.993 GB, free: 42.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/9.973, allocations: 174.8 kB / 3.993 GB, free: 42.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/9.973, allocations: 67.78 kB / 3.993 GB, free: 42.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/9.973, allocations: 6.438 kB / 3.993 GB, free: 42.03 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007577/9.981, allocations: 2.537 MB / 3.995 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/9.981, allocations: 10.3 kB / 3.995 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002784/9.981, allocations: 122.4 kB / 3.996 GB, free: 41.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/9.983, allocations: 312.3 kB / 3.996 GB, free: 41.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006104/9.983, allocations: 1.269 MB / 3.997 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/9.985, allocations: 150.9 kB / 3.997 GB, free: 40.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/9.985, allocations: 59.67 kB / 3.997 GB, free: 40.92 MB / 0.5261 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.0004071/9.985, allocations: 181.2 kB / 3.997 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/9.985, allocations: 123 kB / 3.998 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004705/9.99, allocations: 3.817 MB / 4.001 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.256e-05/9.99, allocations: 39.94 kB / 4.001 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/9.99, allocations: 6.969 kB / 4.001 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003358/9.994, allocations: 3.014 MB / 4.004 GB, free: 40.01 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006735/10, allocations: 5.349 MB / 4.009 GB, free: 39.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/10, allocations: 0 / 4.009 GB, free: 39.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/10, allocations: 198.9 kB / 4.01 GB, free: 39.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004253/10, allocations: 171.3 kB / 4.01 GB, free: 39.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.496e-05/10, allocations: 24.34 kB / 4.01 GB, free: 39.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006424/10, allocations: 1.343 MB / 4.011 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/10, allocations: 6.844 kB / 4.011 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/10.01, allocations: 3.685 MB / 4.015 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009796/10.01, allocations: 0.4954 MB / 4.015 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/10.01, allocations: 10.56 kB / 4.015 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008647/10.01, allocations: 101.2 kB / 4.015 GB, free: 37.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/10.01, allocations: 75.47 kB / 4.015 GB, free: 37.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/10.01, allocations: 43.67 kB / 4.015 GB, free: 37.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00106/10.01, allocations: 0.8458 MB / 4.016 GB, free: 37.74 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.5e-07/10.01, allocations: 0 / 4.016 GB, free: 37.74 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00921/10.02, allocations: 2.137 MB / 4.018 GB, free: 37.73 MB / 0.5261 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.01208/10.03, allocations: 2.5 MB / 4.021 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004678/10.04, allocations: 2.825 MB / 4.024 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/10.04, allocations: 7.297 kB / 4.024 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/10.04, allocations: 1.205 MB / 4.025 GB, free: 37.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/10.04, allocations: 0.5081 MB / 4.025 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/10.05, allocations: 3.352 MB / 4.029 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/10.05, allocations: 1.634 MB / 4.03 GB, free: 35.71 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003392/10.05, allocations: 1.777 MB / 4.032 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/10.05, allocations: 102.6 kB / 4.032 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.233e-06/10.05, allocations: 0 / 4.032 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of Templates: time 0.08772/10.14, allocations: 55.04 MB / 4.086 GB, free: 31.52 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches