Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 195.6 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001001, allocations: 89.7 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 45.14 MB / 383.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.771e-06/5.811e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1218, allocations: 63.25 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.074/7.195, allocations: 2.829 GB / 3.333 GB, free: 79.83 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003518/7.196, allocations: 75.97 kB / 3.333 GB, free: 79.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.941/9.137, allocations: 467.6 MB / 3.79 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.345e-05/9.137, allocations: 31.84 kB / 3.79 GB, free: 13.8 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.01109/9.148, allocations: 2.158 MB / 3.792 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.576e-05/9.148, allocations: 12.03 kB / 3.792 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003021/9.151, allocations: 386.3 kB / 3.792 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002685/9.154, allocations: 0.882 MB / 3.793 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/9.154, allocations: 36 kB / 3.793 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/9.154, allocations: 47.94 kB / 3.793 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001675/9.156, allocations: 0.9488 MB / 3.794 GB, free: 9.266 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/9.158, allocations: 1.112 MB / 3.795 GB, free: 8.062 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/9.158, allocations: 7.922 kB / 3.795 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.2e-05/9.158, allocations: 4 kB / 3.795 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.771e-05/9.158, allocations: 53.97 kB / 3.795 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6035/9.761, allocations: 113.6 MB / 3.906 GB, free: 54.53 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006358/9.762, allocations: 347.2 kB / 3.907 GB, free: 54.51 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003772/9.763, allocations: 284 kB / 3.907 GB, free: 54.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03356/9.796, allocations: 19.16 MB / 3.926 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/9.796, allocations: 40.72 kB / 3.926 GB, free: 41.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 4.018e-06/9.796, allocations: 1.031 kB / 3.926 GB, free: 41.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.007562/9.804, allocations: 2.351 MB / 3.928 GB, free: 41.16 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/9.804, allocations: 135 kB / 3.928 GB, free: 41 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008458/9.805, allocations: 0.5803 MB / 3.929 GB, free: 40.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/9.805, allocations: 25.7 kB / 3.929 GB, free: 40.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/9.805, allocations: 399.9 kB / 3.929 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/9.805, allocations: 157.2 kB / 3.929 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/9.805, allocations: 0 / 3.929 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001257/9.805, allocations: 379.1 kB / 3.93 GB, free: 40.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/9.806, allocations: 371 kB / 3.93 GB, free: 40.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/9.807, allocations: 0.5632 MB / 3.931 GB, free: 40.01 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/9.809, allocations: 0.735 MB / 3.931 GB, free: 39.99 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/9.809, allocations: 3.844 kB / 3.931 GB, free: 39.99 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004802/9.814, allocations: 1.924 MB / 3.933 GB, free: 39.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006125/9.814, allocations: 2.266 MB / 3.935 GB, free: 37.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/9.814, allocations: 11.22 kB / 3.935 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/9.816, allocations: 0.4954 MB / 3.936 GB, free: 37.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005941/9.817, allocations: 168.2 kB / 3.936 GB, free: 37.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/9.819, allocations: 1.546 MB / 3.938 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/9.82, allocations: 122.4 kB / 3.938 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-05/9.82, allocations: 45.84 kB / 3.938 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/9.82, allocations: 6.625 kB / 3.938 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003629/9.824, allocations: 1.325 MB / 3.939 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/9.824, allocations: 7.562 kB / 3.939 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/9.826, allocations: 397.1 kB / 3.939 GB, free: 36.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/9.826, allocations: 175.4 kB / 3.94 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/9.828, allocations: 1.17 MB / 3.941 GB, free: 36.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/9.829, allocations: 106.2 kB / 3.941 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.85e-05/9.829, allocations: 38.03 kB / 3.941 GB, free: 36.35 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.0003012/9.829, allocations: 129.8 kB / 3.941 GB, free: 36.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008905/9.83, allocations: 329.9 kB / 3.941 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/9.833, allocations: 1.857 MB / 3.943 GB, free: 36.06 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/9.833, allocations: 18.14 kB / 3.943 GB, free: 36.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/9.833, allocations: 2.531 kB / 3.943 GB, free: 36.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00196/9.835, allocations: 1.775 MB / 3.945 GB, free: 35.64 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003938/9.839, allocations: 2.809 MB / 3.948 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/9.839, allocations: 0 / 3.948 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/9.839, allocations: 119.5 kB / 3.948 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002714/9.839, allocations: 85.3 kB / 3.948 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/9.84, allocations: 13.83 kB / 3.948 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003726/9.84, allocations: 0.6846 MB / 3.948 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/9.84, allocations: 3.656 kB / 3.948 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003326/9.843, allocations: 2.323 MB / 3.951 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/9.844, allocations: 283.5 kB / 3.951 GB, free: 34.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/9.844, allocations: 3.344 kB / 3.951 GB, free: 34.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/9.845, allocations: 66.02 kB / 3.951 GB, free: 34.28 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/9.845, allocations: 45.08 kB / 3.951 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-05/9.845, allocations: 26.28 kB / 3.951 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005409/9.845, allocations: 440.7 kB / 3.952 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0077/9.853, allocations: 1.692 MB / 3.953 GB, free: 34.18 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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01009/9.863, allocations: 2.152 MB / 3.955 GB, free: 33.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002885/9.866, allocations: 1.667 MB / 3.957 GB, free: 33.94 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/9.866, allocations: 4.188 kB / 3.957 GB, free: 33.94 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/9.867, allocations: 0.8029 MB / 3.958 GB, free: 33.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/9.869, allocations: 301.3 kB / 3.958 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/9.872, allocations: 1.821 MB / 3.96 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008136/9.873, allocations: 1.241 MB / 3.961 GB, free: 32.75 MB / 0.5417 GB Notification: Performance of SimCode: time 6.71e-07/9.873, allocations: 0 / 3.961 GB, free: 32.75 MB / 0.5417 GB Notification: Performance of Templates: time 0.07722/9.95, allocations: 51.22 MB / 4.011 GB, free: 20.55 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches