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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.03593/0.03593, allocations: 3.793 MB / 11.27 MB, free: 1.129 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.001254/0.001254, allocations: 165.2 kB / 12.58 MB, free: 8 kB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 221.5 MB / 235.3 MB, free: 2.922 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.000801/0.0008011, allocations: 82.95 kB / 286.9 MB, free: 5.578 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.683e-05/1.685e-05, allocations: 4 kB / 344.3 MB, free: 8.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09633, allocations: 51.17 MB / 395.5 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3131/0.4095, allocations: 78.19 MB / 473.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001425/0.4097, allocations: 68.27 kB / 473.7 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01532/0.425, allocations: 5.871 MB / 479.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.425, allocations: 0 / 479.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.4251, allocations: 4 kB / 479.6 MB, free: 10.76 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.001942/0.427, allocations: 2.247 MB / 481.9 MB, free: 8.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4271, allocations: 12.02 kB / 481.9 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006005/0.4277, allocations: 82.91 kB / 482 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.4282, allocations: 291 kB / 482.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.4282, allocations: 7.984 kB / 482.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.4282, allocations: 8 kB / 482.3 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002247/0.4285, allocations: 160.5 kB / 482.4 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.4287, allocations: 230.3 kB / 482.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.4287, allocations: 4 kB / 482.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.4288, allocations: 4 kB / 482.7 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.4288, allocations: 0 / 482.7 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.429, allocations: 225 kB / 482.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.4292, allocations: 277.1 kB / 483.1 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.4294, allocations: 259.4 kB / 483.4 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.4294, allocations: 7.984 kB / 483.4 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.4298, allocations: 476.3 kB / 483.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.552e-06/0.4298, allocations: 0 / 483.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006105/0.4304, allocations: 403.5 kB / 484.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4305, allocations: 160.4 kB / 484.4 MB, free: 6.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.4306, allocations: 194.5 kB / 484.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.4306, allocations: 25.7 kB / 484.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.697e-05/0.4307, allocations: 113.6 kB / 484.7 MB, free: 6.203 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.4307, allocations: 46.36 kB / 484.8 MB, free: 6.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.468e-05/0.4308, allocations: 4 kB / 484.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.01e-05/0.4308, allocations: 325.5 kB / 485.1 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.4309, allocations: 110.7 kB / 485.2 MB, free: 5.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.4311, allocations: 101.5 kB / 485.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.4313, allocations: 136.6 kB / 485.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4313, allocations: 6.625 kB / 485.5 MB, free: 5.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004366/0.4318, allocations: 319.8 kB / 485.8 MB, free: 5.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.702e-05/0.4318, allocations: 95.64 kB / 485.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.4318, allocations: 4 kB / 485.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.4319, allocations: 0 / 485.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.432, allocations: 19.98 kB / 485.9 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.432, allocations: 0 / 485.9 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.4321, allocations: 27.78 kB / 485.9 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.4322, allocations: 19.98 kB / 485.9 MB, free: 5.188 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.0001517/0.4323, allocations: 234 kB / 486.2 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.4324, allocations: 31.66 kB / 486.2 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.826e-05/0.4324, allocations: 13.47 kB / 486.2 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4324, allocations: 0 / 486.2 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.4324, allocations: 4 kB / 486.2 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4324, allocations: 0 / 486.2 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.4326, allocations: 244.9 kB / 486.5 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4326, allocations: 4 kB / 486.5 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.285e-05/0.4327, allocations: 11.98 kB / 486.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4327, allocations: 4 kB / 486.5 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.4327, allocations: 15.81 kB / 486.5 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4327, allocations: 4 kB / 486.5 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4327, allocations: 0 / 486.5 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.4333, allocations: 0.4891 MB / 487 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.4334, allocations: 144.1 kB / 487.1 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.573e-05/0.4335, allocations: 25.42 kB / 487.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.4336, allocations: 15.98 kB / 487.2 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.4337, allocations: 30.39 kB / 487.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.984e-05/0.4338, allocations: 28.77 kB / 487.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001021/0.4339, allocations: 140.6 kB / 487.4 MB, free: 3.871 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4339, allocations: 4 kB / 487.4 MB, free: 3.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003628/0.4343, allocations: 95.67 kB / 487.5 MB, free: 3.777 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.0004708/0.4347, allocations: 263 kB / 487.7 MB, free: 3.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005468/0.4353, allocations: 0.7013 MB / 488.4 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4353, allocations: 4 kB / 488.4 MB, free: 3.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004138/0.4357, allocations: 0.6175 MB / 489 MB, free: 2.707 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.436, allocations: 15.94 kB / 489 MB, free: 2.695 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005737/0.4365, allocations: 395.4 kB / 489.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.4367, allocations: 0.7352 MB / 490.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.553e-05/0.4368, allocations: 16.55 kB / 490.2 MB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.4368, allocations: 22.67 kB / 490.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4369, allocations: 0 / 490.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of Templates: time 0.007929/0.4448, allocations: 3.73 MB / 493.9 MB, free: 13.93 MB / 362.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -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:242:178: 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:243: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:424:177: 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:425: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