Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 221.5 MB / 230.7 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009074/0.0009074, allocations: 82.23 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1849/0.1849, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.425e-05/1.418e-05, allocations: 224 / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1224, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.377/8.499, allocations: 2.828 GB / 3.323 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/8.5, allocations: 78.58 kB / 3.323 GB, free: 148.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.889/10.39, allocations: 466.7 MB / 3.779 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.473e-06/10.39, allocations: 0 / 3.779 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001235/10.39, allocations: 23.17 kB / 3.779 GB, free: 62.59 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.00975/10.4, allocations: 2.151 MB / 3.781 GB, free: 61.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/10.4, allocations: 14.89 kB / 3.781 GB, free: 61.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003074/10.4, allocations: 378.4 kB / 3.781 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/10.4, allocations: 0.8912 MB / 3.782 GB, free: 60.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.666e-05/10.4, allocations: 32.94 kB / 3.782 GB, free: 60.82 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002904/10.41, allocations: 43.97 kB / 3.782 GB, free: 60.82 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001838/10.41, allocations: 0.9225 MB / 3.783 GB, free: 60.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/10.41, allocations: 1.084 MB / 3.784 GB, free: 59.94 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/10.41, allocations: 3.906 kB / 3.784 GB, free: 59.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/10.41, allocations: 0 / 3.784 GB, free: 59.94 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.805e-05/10.41, allocations: 64.98 kB / 3.784 GB, free: 59.93 MB / 0.5261 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.6434/11.05, allocations: 101.7 MB / 3.884 GB, free: 75.61 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008101/11.05, allocations: 481.5 kB / 3.884 GB, free: 75.59 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/11.05, allocations: 269.2 kB / 3.884 GB, free: 75.58 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03256/11.09, allocations: 16.77 MB / 3.901 GB, free: 65.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/11.09, allocations: 37.83 kB / 3.901 GB, free: 65.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.996e-06/11.09, allocations: 5.188 kB / 3.901 GB, free: 65.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.0083/11.1, allocations: 2.276 MB / 3.903 GB, free: 64.87 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/11.1, allocations: 133.6 kB / 3.903 GB, free: 64.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009649/11.1, allocations: 0.5632 MB / 3.904 GB, free: 64.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/11.1, allocations: 26.83 kB / 3.904 GB, free: 64.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/11.1, allocations: 472.1 kB / 3.904 GB, free: 64.36 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/11.1, allocations: 161.4 kB / 3.904 GB, free: 64.28 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/11.1, allocations: 0 / 3.904 GB, free: 64.28 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001423/11.1, allocations: 381 kB / 3.905 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005197/11.1, allocations: 331.2 kB / 3.905 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006837/11.1, allocations: 0.5167 MB / 3.906 GB, free: 63.73 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/11.1, allocations: 0.6083 MB / 3.906 GB, free: 63.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/11.1, allocations: 5.938 kB / 3.906 GB, free: 63.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003074/11.1, allocations: 1.335 MB / 3.908 GB, free: 63.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005898/11.1, allocations: 2.267 MB / 3.91 GB, free: 61.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/11.1, allocations: 10.91 kB / 3.91 GB, free: 61.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001589/11.11, allocations: 485.2 kB / 3.91 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/11.11, allocations: 160.2 kB / 3.91 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/11.11, allocations: 1.35 MB / 3.912 GB, free: 60.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/11.11, allocations: 121.5 kB / 3.912 GB, free: 60.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.696e-05/11.11, allocations: 43.91 kB / 3.912 GB, free: 60.74 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/11.11, allocations: 3.969 kB / 3.912 GB, free: 60.74 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002668/11.11, allocations: 1.141 MB / 3.913 GB, free: 60.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/11.11, allocations: 7.812 kB / 3.913 GB, free: 60.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/11.11, allocations: 379.4 kB / 3.913 GB, free: 60.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005915/11.11, allocations: 175.5 kB / 3.913 GB, free: 60.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/11.11, allocations: 1.07 MB / 3.915 GB, free: 60.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009849/11.12, allocations: 97.7 kB / 3.915 GB, free: 60.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/11.12, allocations: 33.42 kB / 3.915 GB, free: 60.18 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0002719/11.12, allocations: 136.2 kB / 3.915 GB, free: 60.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/11.12, allocations: 74.06 kB / 3.915 GB, free: 60.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/11.12, allocations: 1.872 MB / 3.917 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/11.12, allocations: 19.41 kB / 3.917 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/11.12, allocations: 0 / 3.917 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00196/11.12, allocations: 1.784 MB / 3.918 GB, free: 59.45 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/11.13, allocations: 2.849 MB / 3.921 GB, free: 59.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/11.13, allocations: 0 / 3.921 GB, free: 59.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/11.13, allocations: 127.3 kB / 3.921 GB, free: 59.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/11.13, allocations: 79.55 kB / 3.921 GB, free: 59.08 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/11.13, allocations: 12.78 kB / 3.921 GB, free: 59.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004038/11.13, allocations: 0.6812 MB / 3.922 GB, free: 58.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/11.13, allocations: 1.594 kB / 3.922 GB, free: 58.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/11.13, allocations: 1.971 MB / 3.924 GB, free: 58.22 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/11.13, allocations: 259.4 kB / 3.924 GB, free: 58.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/11.13, allocations: 3.938 kB / 3.924 GB, free: 58.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005734/11.13, allocations: 60.98 kB / 3.924 GB, free: 58.07 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/11.13, allocations: 53.42 kB / 3.924 GB, free: 58.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.185e-05/11.13, allocations: 20.84 kB / 3.924 GB, free: 58.07 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006888/11.13, allocations: 427.1 kB / 3.925 GB, free: 57.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.71e-07/11.13, allocations: 0 / 3.925 GB, free: 57.98 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009339/11.14, allocations: 1.639 MB / 3.926 GB, free: 57.98 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01078/11.15, allocations: 2.061 MB / 3.928 GB, free: 57.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002686/11.15, allocations: 1.407 MB / 3.93 GB, free: 57.78 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/11.15, allocations: 0 / 3.93 GB, free: 57.78 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000844/11.16, allocations: 0.5846 MB / 3.93 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/11.16, allocations: 324.1 kB / 3.931 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/11.16, allocations: 1.725 MB / 3.932 GB, free: 57.37 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006652/11.16, allocations: 1.177 MB / 3.934 GB, free: 56.67 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001906/11.16, allocations: 1.08 MB / 3.935 GB, free: 56.66 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/11.16, allocations: 64.89 kB / 3.935 GB, free: 56.65 MB / 0.5417 GB Notification: Performance of SimCode: time 1.132e-06/11.16, allocations: 0 / 3.935 GB, free: 56.65 MB / 0.5417 GB Notification: Performance of Templates: time 0.06174/11.22, allocations: 43.57 MB / 3.977 GB, free: 54.44 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches