Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) 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) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Running command: translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") [: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/AdvancedNoise 1.1.0-master/package.mo): time 0.02342/0.02342, allocations: 3.777 MB / 11.07 MB, free: 1.727 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009404/0.0009406, allocations: 180.8 kB / 12.39 MB, free: 0.5 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.157/1.157, allocations: 221.4 MB / 235 MB, free: 3.148 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.0008139/0.000814, allocations: 81.11 kB / 286.6 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.52e-06/5.551e-06, allocations: 0 / 343.8 MB, free: 8.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08783, allocations: 51.16 MB / 394.9 MB, free: 4.898 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2303/0.3181, allocations: 78.13 MB / 473.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.3183, allocations: 66.14 kB / 473.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01469/0.333, allocations: 5.561 MB / 478.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.3331, allocations: 8 kB / 478.7 MB, free: 10.6 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001869/0.3349, allocations: 2.274 MB / 481 MB, free: 8.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.335, allocations: 8.031 kB / 481 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006219/0.3356, allocations: 79.66 kB / 481.1 MB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.3361, allocations: 296.6 kB / 481.4 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.3362, allocations: 11.91 kB / 481.4 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.3362, allocations: 8 kB / 481.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002281/0.3364, allocations: 170.2 kB / 481.5 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.3367, allocations: 220.3 kB / 481.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.3367, allocations: 5.25 kB / 481.8 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.3367, allocations: 4 kB / 481.8 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3367, allocations: 4 kB / 481.8 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.3369, allocations: 227.9 kB / 482 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.3372, allocations: 280.7 kB / 482.3 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.3374, allocations: 260.6 kB / 482.5 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.3374, allocations: 4.312 kB / 482.5 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.3377, allocations: 480.6 kB / 483 MB, free: 6.781 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.3377, allocations: 0 / 483 MB, free: 6.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005592/0.3383, allocations: 406.6 kB / 483.4 MB, free: 6.469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.3384, allocations: 160.6 kB / 483.5 MB, free: 6.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.3385, allocations: 189.1 kB / 483.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3385, allocations: 32.33 kB / 483.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.413e-05/0.3386, allocations: 99.44 kB / 483.9 MB, free: 6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.3386, allocations: 42.73 kB / 483.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.406e-05/0.3386, allocations: 4 kB / 483.9 MB, free: 5.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.3387, allocations: 328.8 kB / 484.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.3388, allocations: 109.6 kB / 484.3 MB, free: 5.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.339, allocations: 111.1 kB / 484.4 MB, free: 5.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.3392, allocations: 137.2 kB / 484.6 MB, free: 5.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3392, allocations: 0 / 484.6 MB, free: 5.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004598/0.3397, allocations: 338.5 kB / 484.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.3397, allocations: 8 kB / 484.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3397, allocations: 4 kB / 484.9 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3397, allocations: 0 / 484.9 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3399, allocations: 26.05 kB / 484.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3399, allocations: 0 / 484.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.34, allocations: 28.33 kB / 485 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.3401, allocations: 8 kB / 485 MB, free: 5.051 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r,$whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,globalSeed.id_impure,timeBasedNoise.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise1.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * 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.0001565/0.3402, allocations: 234.2 kB / 485.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.3403, allocations: 31.72 kB / 485.2 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.3403, allocations: 16.77 kB / 485.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3403, allocations: 0 / 485.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3403, allocations: 0.8125 kB / 485.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3403, allocations: 0 / 485.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.3405, allocations: 234.7 kB / 485.5 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3405, allocations: 4 kB / 485.5 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.719e-05/0.3406, allocations: 11.98 kB / 485.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3406, allocations: 5.406 kB / 485.5 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.3406, allocations: 20.05 kB / 485.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3406, allocations: 7.875 kB / 485.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3406, allocations: 7.984 kB / 485.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005476/0.3412, allocations: 0.4944 MB / 486 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3414, allocations: 151.5 kB / 486.2 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.3414, allocations: 23.67 kB / 486.2 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3416, allocations: 19.98 kB / 486.2 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.3417, allocations: 19.59 kB / 486.2 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.3417, allocations: 28.61 kB / 486.3 MB, free: 3.844 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.531e-05/0.3418, allocations: 138.8 kB / 486.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003374/0.3421, allocations: 87.42 kB / 486.5 MB, free: 3.645 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: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * 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.0004657/0.3426, allocations: 263.3 kB / 486.8 MB, free: 3.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004418/0.3431, allocations: 483.1 kB / 487.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3431, allocations: 4 kB / 487.2 MB, free: 3.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.3435, allocations: 0.569 MB / 487.8 MB, free: 2.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.3437, allocations: 30.28 kB / 487.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005635/0.3442, allocations: 397.1 kB / 488.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.3444, allocations: 0.7531 MB / 489 MB, free: 1.625 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3444, allocations: 0 / 489 MB, free: 1.625 MB / 346.7 MB Notification: Performance of Templates: time 0.006162/0.3506, allocations: 3.753 MB / 492.7 MB, free: 13.97 MB / 362.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise -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 AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.o AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:254:179: error: use of undeclared identifier '$PnBuffer' real_array_create(&tmp25, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1._buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, (((modelica_integer)$PnBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1._bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6],"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:255:94: error: use of undeclared identifier '$PnBuffer' tmp29 = (*real_array_element_addr1(&tmp25, 1, /* modelica_integer */ (((modelica_integer)$PnBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1._bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6],"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:451:178: error: use of undeclared identifier '$PnBuffer' real_array_create(&tmp53, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise._buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, (((modelica_integer)$PnBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise._bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2],"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:452:94: error: use of undeclared identifier '$PnBuffer' tmp57 = (*real_array_element_addr1(&tmp53, 1, /* modelica_integer */ (((modelica_integer)$PnBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise._bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2],"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))); ^ 4 errors generated. make: *** [: AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.o] Error 1