Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") [: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 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 178.8 kB / 8.52 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 221.4 MB / 230.3 MB, free: 7.727 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.0009336/0.0009335, allocations: 85.88 kB / 281.2 MB, free: 5.527 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.1616/0.1616, allocations: 44.16 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.314e-06, allocations: 4.219 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 61.9 MB / 0.4941 GB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.798/4.901, allocations: 2.832 GB / 3.326 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/4.901, allocations: 79.95 kB / 3.326 GB, free: 127.4 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.507/8.408, allocations: 0.8713 GB / 4.197 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002424/8.408, allocations: 70.09 kB / 4.197 GB, free: 34.69 MB / 0.5417 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.0178/8.426, allocations: 3.865 MB / 4.201 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/8.426, allocations: 18.77 kB / 4.201 GB, free: 32.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007831/8.434, allocations: 0.8766 MB / 4.202 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007223/8.441, allocations: 2.105 MB / 4.204 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/8.442, allocations: 96.84 kB / 4.204 GB, free: 31.53 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/8.443, allocations: 116.2 kB / 4.204 GB, free: 31.53 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007088/8.45, allocations: 2.622 MB / 4.207 GB, free: 30.65 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006318/8.456, allocations: 2.862 MB / 4.209 GB, free: 29.36 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/8.456, allocations: 10.69 kB / 4.209 GB, free: 29.35 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002815/8.456, allocations: 7.188 kB / 4.209 GB, free: 29.35 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002344/8.457, allocations: 176.3 kB / 4.21 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5568/9.014, allocations: 94.86 MB / 4.302 GB, free: 90.61 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/9.016, allocations: 1.134 MB / 4.303 GB, free: 90.6 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/9.017, allocations: 1.024 MB / 4.304 GB, free: 90.59 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03409/9.051, allocations: 16.93 MB / 4.321 GB, free: 80.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002953/9.054, allocations: 1.212 MB / 4.322 GB, free: 80.02 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 6.392e-06/9.054, allocations: 0 / 4.322 GB, free: 80.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.0251/9.079, allocations: 8.396 MB / 4.33 GB, free: 78.6 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/9.079, allocations: 388.9 kB / 4.331 GB, free: 78.16 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/9.082, allocations: 1.158 MB / 4.332 GB, free: 77.99 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000322/9.082, allocations: 30.58 kB / 4.332 GB, free: 77.96 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008977/9.083, allocations: 0.7717 MB / 4.333 GB, free: 77.62 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007502/9.084, allocations: 0.5366 MB / 4.333 GB, free: 77.34 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/9.084, allocations: 0 / 4.333 GB, free: 77.34 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001601/9.084, allocations: 384.6 kB / 4.333 GB, free: 77.04 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/9.086, allocations: 1.161 MB / 4.335 GB, free: 77.03 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/9.088, allocations: 1.606 MB / 4.336 GB, free: 76.54 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006589/9.094, allocations: 2.114 MB / 4.338 GB, free: 76.51 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/9.094, allocations: 7.219 kB / 4.338 GB, free: 76.51 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01395/9.108, allocations: 5.124 MB / 4.343 GB, free: 76.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002074/9.11, allocations: 4.693 MB / 4.348 GB, free: 71.54 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.385e-05/9.111, allocations: 17.08 kB / 4.348 GB, free: 71.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008158/9.119, allocations: 2.145 MB / 4.35 GB, free: 71.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/9.12, allocations: 318.3 kB / 4.35 GB, free: 71.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00846/9.129, allocations: 4.307 MB / 4.354 GB, free: 70.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004198/9.133, allocations: 260.2 kB / 4.355 GB, free: 70.94 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008006/9.134, allocations: 107.9 kB / 4.355 GB, free: 70.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/9.134, allocations: 6.062 kB / 4.355 GB, free: 70.94 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01345/9.148, allocations: 3.893 MB / 4.359 GB, free: 70.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/9.148, allocations: 14.72 kB / 4.359 GB, free: 70.89 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00625/9.154, allocations: 1.614 MB / 4.36 GB, free: 70.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/9.156, allocations: 354.3 kB / 4.361 GB, free: 70.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004371/9.16, allocations: 3.014 MB / 4.363 GB, free: 70.31 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/9.163, allocations: 238.5 kB / 4.364 GB, free: 70.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004913/9.164, allocations: 101.8 kB / 4.364 GB, free: 70.3 MB / 0.573 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.0009317/9.164, allocations: 193.3 kB / 4.364 GB, free: 70.16 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002438/9.167, allocations: 0.6469 MB / 4.365 GB, free: 70.07 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/9.179, allocations: 6.68 MB / 4.371 GB, free: 69.57 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.925e-05/9.179, allocations: 65.41 kB / 4.371 GB, free: 69.56 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/9.179, allocations: 3.75 kB / 4.371 GB, free: 69.56 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007594/9.186, allocations: 5.485 MB / 4.377 GB, free: 68.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/9.202, allocations: 9.267 MB / 4.386 GB, free: 68.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/9.202, allocations: 0 / 4.386 GB, free: 68.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/9.204, allocations: 332.8 kB / 4.386 GB, free: 68.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009308/9.205, allocations: 340.1 kB / 4.386 GB, free: 68.05 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/9.205, allocations: 45.06 kB / 4.386 GB, free: 68.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001515/9.206, allocations: 2.719 MB / 4.389 GB, free: 65.97 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/9.206, allocations: 7 kB / 4.389 GB, free: 65.97 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01114/9.218, allocations: 7.147 MB / 4.396 GB, free: 65.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/9.22, allocations: 0.6922 MB / 4.397 GB, free: 65.17 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008581/9.221, allocations: 21.3 kB / 4.397 GB, free: 65.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002211/9.223, allocations: 160.9 kB / 4.397 GB, free: 65.16 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/9.223, allocations: 123.9 kB / 4.397 GB, free: 65.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/9.223, allocations: 71.2 kB / 4.397 GB, free: 65.16 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001616/9.225, allocations: 1.111 MB / 4.398 GB, free: 65.05 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01194/9.237, allocations: 2.705 MB / 4.401 GB, free: 65 MB / 0.573 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.01463/9.252, allocations: 3.059 MB / 4.404 GB, free: 64.71 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01074/9.262, allocations: 5.573 MB / 4.409 GB, free: 64.49 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.554e-05/9.262, allocations: 3.625 kB / 4.409 GB, free: 64.49 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004659/9.267, allocations: 2.867 MB / 4.412 GB, free: 64.45 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005051/9.272, allocations: 0.726 MB / 4.413 GB, free: 64.44 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/9.284, allocations: 5.938 MB / 4.418 GB, free: 63.34 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00231/9.287, allocations: 2.306 MB / 4.421 GB, free: 62.54 MB / 0.573 GB Notification: Performance of SimCode: time 1.342e-06/9.287, allocations: 0 / 4.421 GB, free: 62.54 MB / 0.573 GB Notification: Performance of Templates: time 0.1401/9.427, allocations: 95.65 MB / 4.514 GB, free: 20.13 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes13/SeriesPipes13.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches