Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.00176/0.001761, allocations: 175.2 kB / 8.476 MB, free: 1.777 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.2 MB / 214.1 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008401/0.0008403, allocations: 90.66 kB / 262.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.665e-06/7.685e-06, allocations: 0 / 315 MB, free: 8.684 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2725, allocations: 47.56 MB / 362.5 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.081/6.353, allocations: 2.795 GB / 3.149 GB, free: 6.348 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/6.353, allocations: 75.95 kB / 3.15 GB, free: 6.273 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.363/8.717, allocations: 0.5455 GB / 3.695 GB, free: 37.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002363/8.717, allocations: 48.16 kB / 3.695 GB, free: 37.63 MB / 442.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.01469/8.732, allocations: 2.811 MB / 3.698 GB, free: 36.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/8.732, allocations: 7.781 kB / 3.698 GB, free: 36.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00569/8.738, allocations: 0.6355 MB / 3.698 GB, free: 36.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00588/8.744, allocations: 1.451 MB / 3.7 GB, free: 35.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/8.744, allocations: 79.52 kB / 3.7 GB, free: 35.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007012/8.745, allocations: 85.59 kB / 3.7 GB, free: 35.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004351/8.749, allocations: 2.031 MB / 3.702 GB, free: 35.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004881/8.754, allocations: 2.223 MB / 3.704 GB, free: 35.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.702e-05/8.754, allocations: 11.16 kB / 3.704 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004308/8.754, allocations: 3.656 kB / 3.704 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/8.755, allocations: 134 kB / 3.704 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1847/8.939, allocations: 83.65 MB / 3.786 GB, free: 14.81 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/8.941, allocations: 0.8098 MB / 3.787 GB, free: 14.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/8.942, allocations: 0.7314 MB / 3.788 GB, free: 14.78 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01899/8.961, allocations: 8.233 MB / 3.796 GB, free: 25.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.385e-05/8.961, allocations: 41.97 kB / 3.796 GB, free: 25.35 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.577e-06/8.962, allocations: 0 / 3.796 GB, free: 25.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.01704/8.979, allocations: 5.157 MB / 3.801 GB, free: 24.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/8.979, allocations: 144.9 kB / 3.801 GB, free: 24.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00213/8.981, allocations: 0.8069 MB / 3.802 GB, free: 24.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/8.981, allocations: 25.7 kB / 3.802 GB, free: 24.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005835/8.982, allocations: 0.6022 MB / 3.802 GB, free: 23.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000529/8.982, allocations: 420.6 kB / 3.803 GB, free: 23.67 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/8.982, allocations: 0 / 3.803 GB, free: 23.67 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002493/8.983, allocations: 369.1 kB / 3.803 GB, free: 23.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/8.984, allocations: 0.8388 MB / 3.804 GB, free: 23.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/8.986, allocations: 1.193 MB / 3.805 GB, free: 22.95 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.02247/9.008, allocations: 5.881 MB / 3.811 GB, free: 22.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.112e-05/9.008, allocations: 7.531 kB / 3.811 GB, free: 22.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01913/9.028, allocations: 4.746 MB / 3.815 GB, free: 21.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001973/9.03, allocations: 4.007 MB / 3.819 GB, free: 16.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.664e-05/9.03, allocations: 11.94 kB / 3.819 GB, free: 16.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/9.031, allocations: 0.5079 MB / 3.82 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/9.033, allocations: 377.5 kB / 3.82 GB, free: 16.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/9.036, allocations: 3.05 MB / 3.823 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/9.039, allocations: 194.5 kB / 3.823 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003497/9.039, allocations: 74.38 kB / 3.823 GB, free: 13.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/9.039, allocations: 8 kB / 3.823 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01469/9.054, allocations: 4.081 MB / 3.827 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/9.054, allocations: 8 kB / 3.827 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001496/9.055, allocations: 0.5005 MB / 3.828 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/9.057, allocations: 382.1 kB / 3.828 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/9.06, allocations: 3.049 MB / 3.831 GB, free: 7.867 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/9.062, allocations: 181.3 kB / 3.831 GB, free: 7.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002597/9.062, allocations: 71.88 kB / 3.831 GB, free: 7.676 MB / 490.7 MB 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.0006815/9.063, allocations: 156.2 kB / 3.832 GB, free: 7.551 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001812/9.065, allocations: 0.4923 MB / 3.832 GB, free: 7.254 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008089/9.073, allocations: 4.83 MB / 3.837 GB, free: 4.492 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.93e-05/9.073, allocations: 40.55 kB / 3.837 GB, free: 4.477 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.231e-05/9.073, allocations: 0 / 3.837 GB, free: 4.477 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006524/9.08, allocations: 4.313 MB / 3.841 GB, free: 1.758 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2651/9.345, allocations: 7.455 MB / 3.848 GB, free: 119.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/9.345, allocations: 3.719 kB / 3.848 GB, free: 119.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/9.346, allocations: 245.1 kB / 3.849 GB, free: 119.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/9.347, allocations: 0.5271 MB / 3.849 GB, free: 119.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/9.347, allocations: 43.05 kB / 3.849 GB, free: 119.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/9.35, allocations: 3.121 MB / 3.852 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/9.35, allocations: 9.406 kB / 3.852 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007761/9.357, allocations: 5.615 MB / 3.858 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/9.359, allocations: 475.8 kB / 3.858 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/9.359, allocations: 20.19 kB / 3.858 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/9.36, allocations: 144.3 kB / 3.858 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002376/9.36, allocations: 118.5 kB / 3.858 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/9.36, allocations: 55.03 kB / 3.858 GB, free: 116.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.000942/9.361, allocations: 0.6483 MB / 3.859 GB, free: 116.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009825/9.371, allocations: 2.104 MB / 3.861 GB, free: 116.8 MB / 490.7 MB 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.01221/9.383, allocations: 2.413 MB / 3.863 GB, free: 116.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006464/9.39, allocations: 4.046 MB / 3.867 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/9.39, allocations: 4.5 kB / 3.867 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003344/9.393, allocations: 2.361 MB / 3.87 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/9.397, allocations: 0.5519 MB / 3.87 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007476/9.404, allocations: 4.393 MB / 3.875 GB, free: 115.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/9.406, allocations: 1.854 MB / 3.876 GB, free: 115.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.573e-06/9.406, allocations: 0 / 3.876 GB, free: 115.1 MB / 490.7 MB Notification: Performance of Templates: time 0.1121/9.518, allocations: 72.86 MB / 3.947 GB, free: 112 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/NonCircularPipes/NonCircularPipes.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches