Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") [: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.001872/0.001872, allocations: 206.2 kB / 8.543 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 225.5 MB / 234.4 MB, free: 3.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000874/0.0008741, allocations: 92.33 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1725/0.1725, allocations: 45.15 MB / 383.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.202e-06/6.232e-06, allocations: 4 kB / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.09766, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.88/4.978, allocations: 2.833 GB / 3.336 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/4.978, allocations: 79.36 kB / 3.336 GB, free: 101.7 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 3.316/8.295, allocations: 0.8074 GB / 4.144 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002339/8.295, allocations: 65.48 kB / 4.144 GB, free: 44.67 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01852/8.313, allocations: 3.888 MB / 4.148 GB, free: 42.81 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.748e-05/8.313, allocations: 7.156 kB / 4.148 GB, free: 42.81 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007555/8.321, allocations: 0.883 MB / 4.149 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007398/8.328, allocations: 2.112 MB / 4.151 GB, free: 42.21 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/8.329, allocations: 99.41 kB / 4.151 GB, free: 42.21 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006034/8.329, allocations: 112.8 kB / 4.151 GB, free: 42.21 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005036/8.334, allocations: 2.621 MB / 4.153 GB, free: 42.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005226/8.34, allocations: 2.869 MB / 4.156 GB, free: 41.65 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.118e-05/8.34, allocations: 10.78 kB / 4.156 GB, free: 41.64 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/8.34, allocations: 9.281 kB / 4.156 GB, free: 41.64 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002559/8.34, allocations: 171.7 kB / 4.156 GB, free: 41.64 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2435/8.584, allocations: 105.8 MB / 4.26 GB, free: 19.53 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/8.586, allocations: 1.144 MB / 4.261 GB, free: 18.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/8.588, allocations: 1.018 MB / 4.262 GB, free: 18.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5125/9.101, allocations: 19.31 MB / 4.281 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002186/9.103, allocations: 1.211 MB / 4.282 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 4.228e-06/9.103, allocations: 0 / 4.282 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02308/9.126, allocations: 8.402 MB / 4.29 GB, free: 134 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/9.126, allocations: 390.2 kB / 4.291 GB, free: 133.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/9.128, allocations: 1.152 MB / 4.292 GB, free: 133.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001614/9.128, allocations: 29.23 kB / 4.292 GB, free: 133.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000664/9.129, allocations: 0.7658 MB / 4.292 GB, free: 133 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005447/9.129, allocations: 0.5406 MB / 4.293 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/9.129, allocations: 0 / 4.293 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001371/9.13, allocations: 381.6 kB / 4.293 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/9.131, allocations: 1.164 MB / 4.294 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/9.133, allocations: 1.607 MB / 4.296 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007272/9.14, allocations: 2.336 MB / 4.298 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/9.14, allocations: 4.266 kB / 4.298 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01342/9.154, allocations: 5.347 MB / 4.304 GB, free: 131.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001395/9.155, allocations: 4.692 MB / 4.308 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.143e-05/9.155, allocations: 21.78 kB / 4.308 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007836/9.163, allocations: 2.148 MB / 4.31 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/9.165, allocations: 307.3 kB / 4.311 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00764/9.172, allocations: 4.314 MB / 4.315 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003308/9.176, allocations: 264.1 kB / 4.315 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002853/9.176, allocations: 107.8 kB / 4.315 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/9.176, allocations: 3.938 kB / 4.315 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0103/9.186, allocations: 4.13 MB / 4.319 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.093e-05/9.186, allocations: 14.5 kB / 4.319 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005894/9.192, allocations: 1.607 MB / 4.321 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/9.194, allocations: 353.8 kB / 4.321 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004252/9.198, allocations: 3.012 MB / 4.324 GB, free: 125.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/9.201, allocations: 240.9 kB / 4.324 GB, free: 125.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002668/9.201, allocations: 102.6 kB / 4.324 GB, free: 125.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.000831/9.202, allocations: 191 kB / 4.324 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002042/9.204, allocations: 0.6569 MB / 4.325 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009885/9.214, allocations: 6.671 MB / 4.332 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.526e-05/9.214, allocations: 57.8 kB / 4.332 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/9.214, allocations: 5.844 kB / 4.332 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006963/9.221, allocations: 5.486 MB / 4.337 GB, free: 124.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/9.238, allocations: 9.262 MB / 4.346 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/9.238, allocations: 5.469 kB / 4.346 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/9.239, allocations: 329.1 kB / 4.346 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/9.24, allocations: 342.8 kB / 4.347 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/9.241, allocations: 45.86 kB / 4.347 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/9.242, allocations: 2.722 MB / 4.349 GB, free: 121.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/9.243, allocations: 3.5 kB / 4.349 GB, free: 121.4 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01285/9.255, allocations: 7.142 MB / 4.356 GB, free: 120.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/9.258, allocations: 0.6875 MB / 4.357 GB, free: 120.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/9.259, allocations: 23.41 kB / 4.357 GB, free: 120.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002687/9.262, allocations: 172.4 kB / 4.357 GB, free: 120.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/9.262, allocations: 131.6 kB / 4.357 GB, free: 120.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002551/9.262, allocations: 64.88 kB / 4.357 GB, free: 120.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.002996/9.265, allocations: 1.111 MB / 4.359 GB, free: 120.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02053/9.286, allocations: 2.717 MB / 4.361 GB, free: 120.4 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0196/9.306, allocations: 3.079 MB / 4.364 GB, free: 120.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01315/9.319, allocations: 5.574 MB / 4.37 GB, free: 119.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/9.319, allocations: 5.406 kB / 4.37 GB, free: 119.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005453/9.324, allocations: 2.87 MB / 4.372 GB, free: 119.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006013/9.33, allocations: 0.7334 MB / 4.373 GB, free: 119.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/9.347, allocations: 5.933 MB / 4.379 GB, free: 118.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004391/9.351, allocations: 2.302 MB / 4.381 GB, free: 118.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.024e-06/9.351, allocations: 0 / 4.381 GB, free: 118.1 MB / 0.6042 GB Notification: Performance of Templates: time 0.1809/9.532, allocations: 95.59 MB / 4.475 GB, free: 93.64 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes12/SeriesPipes12.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches