Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.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) 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(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes") [: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.001054/0.001054, allocations: 183.4 kB / 8.136 MB, free: 2.207 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.269/1.269, allocations: 221.4 MB / 229.9 MB, free: 3.133 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.0009222/0.0009223, allocations: 104.4 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.022e-05/1.023e-05, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2916, allocations: 50.39 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.814/6.106, allocations: 2.8 GB / 3.178 GB, free: 126.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/6.106, allocations: 82.16 kB / 3.178 GB, free: 126.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.96/8.066, allocations: 0.5518 GB / 3.73 GB, free: 42.23 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001547/8.066, allocations: 45.62 kB / 3.73 GB, free: 42.23 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.0131/8.079, allocations: 2.802 MB / 3.733 GB, free: 40.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/8.079, allocations: 9.375 kB / 3.733 GB, free: 40.97 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005591/8.085, allocations: 0.6357 MB / 3.733 GB, free: 40.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00429/8.089, allocations: 1.448 MB / 3.735 GB, free: 40.51 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/8.089, allocations: 78 kB / 3.735 GB, free: 40.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/8.089, allocations: 87.47 kB / 3.735 GB, free: 40.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003569/8.093, allocations: 2.029 MB / 3.737 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004043/8.097, allocations: 2.235 MB / 3.739 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.159e-05/8.097, allocations: 10.17 kB / 3.739 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002092/8.097, allocations: 7.562 kB / 3.739 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/8.097, allocations: 132 kB / 3.739 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1551/8.253, allocations: 83.67 MB / 3.821 GB, free: 19.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/8.254, allocations: 0.8129 MB / 3.822 GB, free: 19.24 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008659/8.255, allocations: 0.7271 MB / 3.822 GB, free: 19.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01724/8.272, allocations: 8.224 MB / 3.83 GB, free: 13.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/8.272, allocations: 52.27 kB / 3.83 GB, free: 13.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.647e-06/8.272, allocations: 4 kB / 3.83 GB, free: 13.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.01343/8.286, allocations: 5.155 MB / 3.835 GB, free: 11.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/8.286, allocations: 142.7 kB / 3.836 GB, free: 11.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/8.287, allocations: 0.8056 MB / 3.836 GB, free: 10.85 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001217/8.287, allocations: 29.5 kB / 3.836 GB, free: 10.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/8.287, allocations: 0.6046 MB / 3.837 GB, free: 10.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/8.288, allocations: 423.8 kB / 3.837 GB, free: 10.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/8.288, allocations: 0 / 3.837 GB, free: 10.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/8.288, allocations: 368.5 kB / 3.838 GB, free: 9.695 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/8.289, allocations: 0.8339 MB / 3.839 GB, free: 9.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/8.29, allocations: 1.201 MB / 3.84 GB, free: 8.355 MB / 490.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/8.302, allocations: 4.467 MB / 3.844 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/8.302, allocations: 0 / 3.844 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007322/8.309, allocations: 3.351 MB / 3.847 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001442/8.311, allocations: 4.006 MB / 3.851 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/8.311, allocations: 8 kB / 3.851 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/8.312, allocations: 0.5017 MB / 3.852 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/8.314, allocations: 385.2 kB / 3.852 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/8.316, allocations: 3.046 MB / 3.855 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/8.318, allocations: 192.8 kB / 3.855 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/8.318, allocations: 83.72 kB / 3.855 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/8.318, allocations: 4 kB / 3.855 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005176/8.323, allocations: 2.672 MB / 3.858 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/8.323, allocations: 8 kB / 3.858 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/8.325, allocations: 0.5008 MB / 3.859 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/8.326, allocations: 382 kB / 3.859 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/8.329, allocations: 3.048 MB / 3.862 GB, free: 7.488 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/8.331, allocations: 176.4 kB / 3.862 GB, free: 7.355 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/8.331, allocations: 74.48 kB / 3.862 GB, free: 7.301 MB / 0.4948 GB Warning: Assuming redundant initial conditions for the following 2 initial equations: annulus_pipe.mediums[1].p = 1000000.0 circular_pipe.mediums[1].p = 1000000.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.circular_pipe.mediums[1].u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 11 (massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,boundary.medium.phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 171 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00052/8.331, allocations: 162.1 kB / 3.862 GB, free: 7.168 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/8.333, allocations: 492.8 kB / 3.863 GB, free: 6.879 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007119/8.34, allocations: 4.831 MB / 3.867 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-05/8.34, allocations: 42.27 kB / 3.867 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/8.34, allocations: 0 / 3.867 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005297/8.345, allocations: 4.317 MB / 3.872 GB, free: 1.387 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2493/8.595, allocations: 7.495 MB / 3.879 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/8.595, allocations: 3.938 kB / 3.879 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/8.596, allocations: 250.7 kB / 3.879 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001579/8.597, allocations: 0.5248 MB / 3.88 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/8.598, allocations: 35.72 kB / 3.88 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/8.6, allocations: 3.127 MB / 3.883 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/8.6, allocations: 9.812 kB / 3.883 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007992/8.608, allocations: 5.618 MB / 3.888 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/8.609, allocations: 485 kB / 3.889 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/8.61, allocations: 12.83 kB / 3.889 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/8.611, allocations: 139.4 kB / 3.889 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/8.611, allocations: 121.2 kB / 3.889 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/8.611, allocations: 58.14 kB / 3.889 GB, free: 115 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001007/8.612, allocations: 0.6487 MB / 3.89 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01028/8.623, allocations: 2.107 MB / 3.892 GB, free: 114.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 26 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 103 * 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: 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,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01298/8.636, allocations: 2.42 MB / 3.894 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006799/8.642, allocations: 4.045 MB / 3.898 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/8.642, allocations: 8.891 kB / 3.898 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002975/8.645, allocations: 2.355 MB / 3.9 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/8.649, allocations: 0.5468 MB / 3.901 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007903/8.657, allocations: 4.397 MB / 3.905 GB, free: 114 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001681/8.658, allocations: 1.86 MB / 3.907 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.041e-06/8.658, allocations: 1.969 kB / 3.907 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.1174/8.776, allocations: 72.9 MB / 3.978 GB, free: 110.5 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/NonCircularPipes/NonCircularPipes.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches