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.00119/0.00119, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 221.3 MB / 236 MB, free: 2.969 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.0008121/0.0008122, allocations: 91.8 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1719/0.1719, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.561e-05, allocations: 0 / 451.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 61.92 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.028/7.142, allocations: 2.829 GB / 3.331 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/7.142, allocations: 79.95 kB / 3.331 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.821/8.964, allocations: 471.3 MB / 3.791 GB, free: 40.85 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.753e-06/8.964, allocations: 4 kB / 3.791 GB, free: 40.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001209/8.964, allocations: 27.16 kB / 3.791 GB, free: 40.84 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.009073/8.973, allocations: 2.148 MB / 3.793 GB, free: 39.57 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/8.973, allocations: 7.406 kB / 3.793 GB, free: 39.57 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002565/8.975, allocations: 379.9 kB / 3.794 GB, free: 39.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/8.978, allocations: 0.879 MB / 3.794 GB, free: 38.99 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.311e-05/8.978, allocations: 70.06 kB / 3.795 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/8.978, allocations: 81.84 kB / 3.795 GB, free: 38.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/8.98, allocations: 1.461 MB / 3.796 GB, free: 38.26 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/8.98, allocations: 3.938 kB / 3.796 GB, free: 38.26 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.39e-05/8.981, allocations: 39 kB / 3.796 GB, free: 38.23 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.929e-05/8.981, allocations: 52.69 kB / 3.796 GB, free: 38.23 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/8.983, allocations: 1.259 MB / 3.797 GB, free: 37.32 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.006944/8.99, allocations: 6.559 MB / 3.804 GB, free: 31.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/8.992, allocations: 0.9361 MB / 3.805 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004471/8.992, allocations: 395.5 kB / 3.805 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05257/9.045, allocations: 32.1 MB / 3.836 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.135e-05/9.045, allocations: 47.06 kB / 3.836 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 4.509e-06/9.045, allocations: 0 / 3.836 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.006896/9.052, allocations: 2.813 MB / 3.839 GB, free: 8.387 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/9.052, allocations: 188.5 kB / 3.839 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009331/9.053, allocations: 0.6404 MB / 3.84 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.57e-05/9.053, allocations: 33.7 kB / 3.84 GB, free: 7.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/9.053, allocations: 413.3 kB / 3.84 GB, free: 7.07 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/9.053, allocations: 219.1 kB / 3.841 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/9.053, allocations: 12 kB / 3.841 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000192/9.054, allocations: 394.8 kB / 3.841 GB, free: 6.453 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000532/9.054, allocations: 345.4 kB / 3.841 GB, free: 6.117 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/9.055, allocations: 0.5479 MB / 3.842 GB, free: 5.477 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006197/9.055, allocations: 407 kB / 3.842 GB, free: 5.078 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/9.056, allocations: 8 kB / 3.842 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001879/9.057, allocations: 1.202 MB / 3.843 GB, free: 3.859 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008605/9.058, allocations: 2.27 MB / 3.846 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/9.058, allocations: 8 kB / 3.846 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002939/9.061, allocations: 0.6486 MB / 3.846 GB, free: 0.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/9.062, allocations: 163.8 kB / 3.846 GB, free: 0.5898 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4144/9.476, allocations: 1.255 MB / 3.848 GB, free: 67.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/9.478, allocations: 97.78 kB / 3.848 GB, free: 67.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.28e-05/9.478, allocations: 42.06 kB / 3.848 GB, free: 67.22 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/9.478, allocations: 4.594 kB / 3.848 GB, free: 67.22 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002275/9.48, allocations: 1.069 MB / 3.849 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/9.48, allocations: 6.625 kB / 3.849 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/9.482, allocations: 395.3 kB / 3.849 GB, free: 67.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/9.483, allocations: 173.1 kB / 3.849 GB, free: 67.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/9.484, allocations: 1.07 MB / 3.85 GB, free: 66.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/9.485, allocations: 104.8 kB / 3.851 GB, free: 66.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.855e-05/9.485, allocations: 39.06 kB / 3.851 GB, free: 66.68 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,source.medium.phase,pipe.statesFM[2].phase,sink.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.0002944/9.485, allocations: 151.8 kB / 3.851 GB, free: 66.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/9.485, allocations: 85.77 kB / 3.851 GB, free: 66.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/9.489, allocations: 3.24 MB / 3.854 GB, free: 66.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/9.489, allocations: 40.05 kB / 3.854 GB, free: 66.36 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/9.489, allocations: 5.547 kB / 3.854 GB, free: 66.36 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00294/9.492, allocations: 2.687 MB / 3.857 GB, free: 65.86 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005979/9.498, allocations: 4.491 MB / 3.861 GB, free: 65.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/9.498, allocations: 1 kB / 3.861 GB, free: 65.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007009/9.499, allocations: 176.2 kB / 3.861 GB, free: 65.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/9.499, allocations: 94.38 kB / 3.861 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/9.5, allocations: 19.69 kB / 3.861 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003498/9.5, allocations: 0.6428 MB / 3.862 GB, free: 64.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/9.5, allocations: 0 / 3.862 GB, free: 64.91 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/9.503, allocations: 2.746 MB / 3.865 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009564/9.504, allocations: 459.7 kB / 3.865 GB, free: 64.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/9.504, allocations: 17.06 kB / 3.865 GB, free: 64.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007967/9.505, allocations: 95.28 kB / 3.865 GB, free: 64.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/9.505, allocations: 66.25 kB / 3.865 GB, free: 64.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/9.505, allocations: 28.94 kB / 3.865 GB, free: 64.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001202/9.506, allocations: 0.7851 MB / 3.866 GB, free: 64.13 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.21e-07/9.507, allocations: 0 / 3.866 GB, free: 64.13 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00818/9.515, allocations: 1.74 MB / 3.868 GB, free: 64.13 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.01051/9.525, allocations: 1.966 MB / 3.87 GB, free: 63.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003534/9.529, allocations: 1.681 MB / 3.871 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/9.529, allocations: 0 / 3.871 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/9.53, allocations: 0.8377 MB / 3.872 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/9.533, allocations: 472.9 kB / 3.873 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/9.537, allocations: 2.394 MB / 3.875 GB, free: 63.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/9.538, allocations: 1.344 MB / 3.876 GB, free: 62.71 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002272/9.54, allocations: 0.9774 MB / 3.877 GB, free: 62.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/9.54, allocations: 73.91 kB / 3.877 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/9.54, allocations: 1.688 kB / 3.877 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of Templates: time 0.07263/9.613, allocations: 54.77 MB / 3.931 GB, free: 61.02 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