Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [: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.001158/0.001158, allocations: 186.1 kB / 8.136 MB, free: 2.195 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.158/1.158, allocations: 221.4 MB / 229.9 MB, free: 3.055 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.0009192/0.0009192, allocations: 95.41 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.36e-06, allocations: 0 / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1823, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07728/0.2596, allocations: 75.51 MB / 462.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.2599, allocations: 64.59 kB / 462.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007885/0.2678, allocations: 2.667 MB / 465.1 MB, free: 8.574 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.2678, allocations: 4 kB / 465.1 MB, free: 8.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004653/0.2683, allocations: 0.5479 MB / 465.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2683, allocations: 8.031 kB / 465.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.2685, allocations: 20.84 kB / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.2686, allocations: 180.2 kB / 465.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.2686, allocations: 8 kB / 465.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.2687, allocations: 4 kB / 465.9 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000148/0.2688, allocations: 139.9 kB / 466 MB, free: 7.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.2691, allocations: 282.8 kB / 466.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.2691, allocations: 0 / 466.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.2691, allocations: 0 / 466.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2691, allocations: 0 / 466.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.2693, allocations: 178.8 kB / 466.5 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.2696, allocations: 491.5 kB / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.27, allocations: 475.8 kB / 467.4 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.27, allocations: 3.906 kB / 467.4 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.2703, allocations: 468.9 kB / 467.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.233e-06/0.2704, allocations: 0 / 467.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006627/0.271, allocations: 0.5481 MB / 468.4 MB, free: 5.047 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/0.2711, allocations: 164.5 kB / 468.6 MB, free: 4.855 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.173e-05/0.2712, allocations: 89 kB / 468.7 MB, free: 4.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2712, allocations: 25.7 kB / 468.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/0.2712, allocations: 84.92 kB / 468.8 MB, free: 4.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.2713, allocations: 86.7 kB / 468.9 MB, free: 4.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-06/0.2713, allocations: 8 kB / 468.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2714, allocations: 330.8 kB / 469.2 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.957e-05/0.2715, allocations: 80.34 kB / 469.3 MB, free: 4.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.355e-05/0.2716, allocations: 110.2 kB / 469.4 MB, free: 4.027 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.2718, allocations: 107.9 kB / 469.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2718, allocations: 0 / 469.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003748/0.2721, allocations: 413.3 kB / 469.9 MB, free: 3.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.2722, allocations: 8 kB / 469.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2722, allocations: 192 / 469.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2722, allocations: 5.219 kB / 469.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.2722, allocations: 0 / 469.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2722, allocations: 0 / 469.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.956e-05/0.2723, allocations: 19.73 kB / 469.9 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.2723, allocations: 5.031 kB / 470 MB, free: 3.477 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002105/0.2725, allocations: 262.9 kB / 470.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.234e-05/0.2725, allocations: 27.81 kB / 470.2 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.857e-05/0.2726, allocations: 9.422 kB / 470.2 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2726, allocations: 3.906 kB / 470.2 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2726, allocations: 4 kB / 470.3 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2726, allocations: 0 / 470.3 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.2728, allocations: 206.8 kB / 470.5 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2728, allocations: 11.88 kB / 470.5 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.983e-06/0.2728, allocations: 4 kB / 470.5 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.2728, allocations: 0 / 470.5 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.2728, allocations: 20.83 kB / 470.5 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.2728, allocations: 0 / 470.5 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2728, allocations: 4.812 kB / 470.5 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007785/0.2736, allocations: 0.727 MB / 471.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.756e-05/0.2737, allocations: 104.9 kB / 471.3 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.2738, allocations: 75.92 kB / 471.4 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.225e-05/0.2739, allocations: 8 kB / 471.4 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.2739, allocations: 15.98 kB / 471.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.274, allocations: 24.86 kB / 471.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.093e-05/0.274, allocations: 80.12 kB / 471.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000341/0.2744, allocations: 95.86 kB / 471.6 MB, free: 1.703 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005278/0.2749, allocations: 306.5 kB / 471.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004472/0.2754, allocations: 0.5146 MB / 472.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2754, allocations: 0 / 472.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.2769, allocations: 2.147 MB / 474.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.277, allocations: 23.97 kB / 474.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004594/0.2775, allocations: 293.2 kB / 474.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.2778, allocations: 0.736 MB / 475.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2778, allocations: 0 / 475.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of Templates: time 0.005569/0.2834, allocations: 3.25 MB / 478.9 MB, free: 10.42 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches