Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo", uses=false) Using package Modelica_Noise with version 1.0 Beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.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 3.2.1+maint.om/package.mo): time 0.0047/0.0047, allocations: 168.2 kB / 7.453 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 0.9622/0.9622, allocations: 170.6 MB / 178.4 MB, free: 15.71 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00166/0.00166, allocations: 119.8 kB / 217.7 MB, free: 8.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo): time 0.02223/0.02223, allocations: 3.033 MB / 259.8 MB, free: 28.63 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.641e-06, allocations: 0 / 305.3 MB, free: 15.15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1463, allocations: 39.38 MB / 344.7 MB, free: 38.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06488/0.2112, allocations: 66.7 MB / 411.4 MB, free: 9.137 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.2115, allocations: 79.95 kB / 411.4 MB, free: 9.059 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift64star.random. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift128plus.random. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift1024star.random. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift64star.random. Notification: Performance of FrontEnd: time 0.01095/0.2224, allocations: 4.142 MB / 415.6 MB, free: 4.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.2225, allocations: 4 kB / 415.6 MB, free: 4.906 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0004732/0.2229, allocations: 0.5581 MB / 416.1 MB, free: 4.293 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.223, allocations: 8.75 kB / 416.1 MB, free: 4.285 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.2231, allocations: 23.75 kB / 416.2 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.2232, allocations: 182.9 kB / 416.3 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2233, allocations: 7.906 kB / 416.4 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.2233, allocations: 4 kB / 416.4 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001556/0.2234, allocations: 140.3 kB / 416.5 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.2237, allocations: 276.4 kB / 416.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-06/0.2237, allocations: 0 / 416.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.2238, allocations: 4 kB / 416.8 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2238, allocations: 0.5 kB / 416.8 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.2239, allocations: 178.8 kB / 416.9 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.2243, allocations: 0.4889 MB / 417.4 MB, free: 2.887 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.2246, allocations: 473.7 kB / 417.9 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.2246, allocations: 0 / 417.9 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003717/0.225, allocations: 482.7 kB / 418.4 MB, free: 1.906 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 1.713e-06/0.225, allocations: 0 / 418.4 MB, free: 1.906 MB / 282.7 MB Notification: Performance of matching and sorting (n=47): time 0.0006819/0.2257, allocations: 0.5597 MB / 418.9 MB, free: 1.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.2258, allocations: 160.5 kB / 419.1 MB, free: 1.152 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.096e-05/0.2258, allocations: 89 kB / 419.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2259, allocations: 29.7 kB / 419.2 MB, free: 1.023 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.446e-05/0.2259, allocations: 80.92 kB / 419.3 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.226, allocations: 86.77 kB / 419.4 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-06/0.226, allocations: 8.062 kB / 419.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.2261, allocations: 330.8 kB / 419.7 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.327e-05/0.2262, allocations: 88.36 kB / 419.8 MB, free: 440 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.721e-05/0.2263, allocations: 104.3 kB / 419.9 MB, free: 328 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.2264, allocations: 119.8 kB / 420 MB, free: 208 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2264, allocations: 0 / 420 MB, free: 208 kB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004249/0.2269, allocations: 417.4 kB / 420.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2269, allocations: 7.984 kB / 420.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2269, allocations: 4.094 kB / 420.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.2269, allocations: 0 / 420.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.2269, allocations: 3.938 kB / 420.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2269, allocations: 4 kB / 420.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.15e-05/0.227, allocations: 15.75 kB / 420.4 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.227, allocations: 0 / 420.4 MB, free: 15.75 MB / 298.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: 47 ($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,id,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.0002318/0.2272, allocations: 266.9 kB / 420.7 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.2273, allocations: 23.81 kB / 420.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.536e-05/0.2273, allocations: 9.625 kB / 420.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2273, allocations: 7.891 kB / 420.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2273, allocations: 0 / 420.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2273, allocations: 3.984 kB / 420.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.2275, allocations: 209.9 kB / 421 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2275, allocations: 3.984 kB / 421 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.81e-07/0.2275, allocations: 0 / 421 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2275, allocations: 0 / 421 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.2276, allocations: 23.98 kB / 421 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2276, allocations: 0 / 421 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.2276, allocations: 0.6562 kB / 421 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008625/0.2285, allocations: 0.7568 MB / 421.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.2285, allocations: 92.86 kB / 421.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.2287, allocations: 83.91 kB / 421.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.968e-05/0.2287, allocations: 8 kB / 421.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.2288, allocations: 8 kB / 421.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.2288, allocations: 35.95 kB / 422 MB, free: 14.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.804e-05/0.2289, allocations: 76.03 kB / 422 MB, free: 14.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003377/0.2292, allocations: 95.94 kB / 422.1 MB, free: 13.96 MB / 298.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: 47 ($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,id,rImpure,iImpure) * Number of discrete states: 47 (iImpure,rImpure,id,$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.0005776/0.2298, allocations: 275.9 kB / 422.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004762/0.2303, allocations: 0.5122 MB / 422.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2303, allocations: 0 / 422.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.2319, allocations: 2.155 MB / 425.1 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.2321, allocations: 16.56 kB / 425.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.2325, allocations: 304.9 kB / 425.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.2328, allocations: 0.738 MB / 426.1 MB, free: 9.898 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2329, allocations: 0 / 426.1 MB, free: 9.898 MB / 298.7 MB Notification: Performance of Templates: time 0.006029/0.2389, allocations: 3.354 MB / 429.5 MB, free: 6.566 MB / 298.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.makefile clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Math_Random_Examples_GenerateRandomNumbers -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.o Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:287:59: error: use of undeclared identifier '$Pstate'; did you mean 'setstate'? integer_array_create(&tmp3, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^~~~~~~ setstate /usr/include/stdlib.h:415:14: note: 'setstate' declared here extern char *setstate (char *__statebuf) __THROW __nonnull ((1)); ^ Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:287:97: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp3, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:287:141: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp3, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:292:59: error: use of undeclared identifier '$Pstate'; did you mean 'setstate'? integer_array_create(&tmp6, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^~~~~~~ setstate /usr/include/stdlib.h:415:14: note: 'setstate' declared here extern char *setstate (char *__statebuf) __THROW __nonnull ((1)); ^ Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:292:97: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp6, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.c:292:141: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp6, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ 6 errors generated. make: *** [: Modelica_Noise_Modelica_Noise.Math.Random.Examples.GenerateRandomNumbers.o] Error 1