Running command: translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") Notification: Performance of loadModel(AdvancedNoise): time 1.928/1.928, allocations: 209.8 MB / 221.9 MB, free: 4.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.362e-05, allocations: 3.984 kB / 273.2 MB, free: 2.352 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08308/0.08314, allocations: 48.33 MB / 321.5 MB, free: 1.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4301, allocations: 78.37 MB / 399.9 MB, free: 1.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4303, allocations: 64.84 kB / 399.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02485/0.4552, allocations: 5.847 MB / 405.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.098e-06/0.4552, allocations: 0 / 405.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.4553, allocations: 3.938 kB / 405.8 MB, free: 12.25 MB / 330.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.003234/0.4585, allocations: 2.25 MB / 408 MB, free: 10.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4586, allocations: 8.031 kB / 408 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008279/0.4594, allocations: 75.17 kB / 408.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007029/0.4602, allocations: 300.1 kB / 408.4 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.4602, allocations: 11.95 kB / 408.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.4603, allocations: 11.98 kB / 408.4 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.4608, allocations: 230.4 kB / 408.6 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4608, allocations: 4 kB / 408.6 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.4608, allocations: 8 kB / 408.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.562e-06/0.4608, allocations: 0 / 408.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003786/0.4612, allocations: 168.5 kB / 408.8 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003747/0.4616, allocations: 258.5 kB / 409.1 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/0.4621, allocations: 285.8 kB / 409.3 MB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/0.4625, allocations: 263.8 kB / 409.6 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.4625, allocations: 4 kB / 409.6 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007032/0.4633, allocations: 496 kB / 410.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.677e-06/0.4633, allocations: 0 / 410.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001096/0.4644, allocations: 0.5011 MB / 410.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.4645, allocations: 155.8 kB / 410.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.4648, allocations: 191 kB / 410.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.4649, allocations: 29.7 kB / 411 MB, free: 7.586 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.017e-05/0.465, allocations: 117.8 kB / 411.1 MB, free: 7.488 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.859e-05/0.4651, allocations: 42.8 kB / 411.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.4651, allocations: 3.5 kB / 411.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.4653, allocations: 329.7 kB / 411.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.4656, allocations: 114.5 kB / 411.6 MB, free: 7.047 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.4658, allocations: 111.7 kB / 411.7 MB, free: 6.973 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.4662, allocations: 207.8 kB / 411.9 MB, free: 6.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.01e-06/0.4662, allocations: 8 kB / 411.9 MB, free: 6.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000759/0.4669, allocations: 408 kB / 412.3 MB, free: 6.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.4671, allocations: 92.25 kB / 412.4 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.89e-06/0.4671, allocations: 0 / 412.4 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.4671, allocations: 0 / 412.4 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.4673, allocations: 23.97 kB / 412.4 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.227e-06/0.4674, allocations: 0 / 412.4 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.4675, allocations: 27.78 kB / 412.4 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.4676, allocations: 15.98 kB / 412.4 MB, free: 6.293 MB / 330.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.0003075/0.4679, allocations: 244.4 kB / 412.7 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.541e-05/0.468, allocations: 31.86 kB / 412.7 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.4681, allocations: 17.2 kB / 412.7 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.794e-06/0.4681, allocations: 7.938 kB / 412.7 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.342e-06/0.4681, allocations: 0 / 412.7 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.718e-06/0.4681, allocations: 0 / 412.7 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.4685, allocations: 266.5 kB / 413 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.712e-06/0.4685, allocations: 4 kB / 413 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.4686, allocations: 8 kB / 413 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.159e-06/0.4686, allocations: 0 / 413 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.4687, allocations: 23.69 kB / 413 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.279e-06/0.4687, allocations: 4 kB / 413 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.542e-06/0.4687, allocations: 0 / 413 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.47, allocations: 0.6376 MB / 413.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002137/0.4702, allocations: 148.2 kB / 413.8 MB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.4703, allocations: 26.88 kB / 413.8 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.4705, allocations: 16 kB / 413.8 MB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4707, allocations: 23.47 kB / 413.9 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.88e-05/0.4708, allocations: 27.72 kB / 413.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001744/0.471, allocations: 142.3 kB / 414 MB, free: 4.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.471, allocations: 4 kB / 414 MB, free: 4.777 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000507/0.4715, allocations: 94.98 kB / 414.1 MB, free: 4.691 MB / 330.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.0007113/0.4722, allocations: 278.9 kB / 414.4 MB, free: 4.445 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.4733, allocations: 0.7167 MB / 415.1 MB, free: 3.957 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.229e-06/0.4733, allocations: 4.188 kB / 415.1 MB, free: 3.953 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.4741, allocations: 0.6268 MB / 415.8 MB, free: 3.559 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.4744, allocations: 23.73 kB / 415.8 MB, free: 3.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008739/0.4753, allocations: 403.4 kB / 416.2 MB, free: 3.188 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.4757, allocations: 0.7318 MB / 416.9 MB, free: 2.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.629e-05/0.4758, allocations: 24.47 kB / 416.9 MB, free: 2.406 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.4759, allocations: 19.05 kB / 416.9 MB, free: 2.391 MB / 330.7 MB Notification: Performance of SimCode: time 1.801e-06/0.4759, allocations: 3.938 kB / 416.9 MB, free: 2.387 MB / 330.7 MB Notification: Performance of Templates: time 0.01122/0.4871, allocations: 3.891 MB / 420.8 MB, free: 14.52 MB / 346.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../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:259:160: error: use of undeclared identifier '_omcQuot_6E427566666572' real_array_create(&tmp25, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((_omcQuot_6E427566666572 == ((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 PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:260:53: error: use of undeclared identifier '_omcQuot_6E427566666572' tmp29 = (*real_array_element_addr1(&tmp25, 1, ((_omcQuot_6E427566666572 == ((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 PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:441:159: error: use of undeclared identifier '_omcQuot_6E427566666572' real_array_create(&tmp53, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((_omcQuot_6E427566666572 == ((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 PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:442:53: error: use of undeclared identifier '_omcQuot_6E427566666572' tmp57 = (*real_array_element_addr1(&tmp53, 1, ((_omcQuot_6E427566666572 == ((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 PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))); ^ 4 errors generated. : recipe for target 'AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.o' failed make: *** [AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.o] Error 1