Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.busdelay.y|controller.positionToSpeed.x|controller.position_PI.x|controller.speed_PI.x|elastoGap.s_rel|elastoGap.v_rel|gearbox.phi_rel|gearbox.w_rel|rodMass.s|rodMass.v|slewRateLimiter.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.busdelay.y|controller.positionToSpeed.x|controller.position_PI.x|controller.speed_PI.x|elastoGap.s_rel|elastoGap.v_rel|gearbox.phi_rel|gearbox.w_rel|rodMass.s|rodMass.v|slewRateLimiter.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") [: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.3+maint.om/package.mo): time 0.002449/0.002454, allocations: 179.1 kB / 8.151 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.791/1.791, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001287/0.001286, allocations: 90.31 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.868e-06/1.002e-05, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2727, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.4718, allocations: 123.8 MB / 485.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.4722, allocations: 83.95 kB / 485.7 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4934/0.9656, allocations: 78 MB / 0.5505 GB, free: 92.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004719/0.9661, allocations: 83.94 kB / 0.5506 GB, free: 92.18 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.01358/0.9797, allocations: 3.302 MB / 0.5538 GB, free: 88.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.9798, allocations: 8.031 kB / 0.5538 GB, free: 88.81 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003466/0.9833, allocations: 463 kB / 0.5543 GB, free: 88.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009477/0.9928, allocations: 2.576 MB / 0.5568 GB, free: 85.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007537/0.9936, allocations: 255.3 kB / 0.557 GB, free: 85.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/0.9951, allocations: 195.9 kB / 0.5572 GB, free: 85.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01185/1.007, allocations: 3.336 MB / 0.5605 GB, free: 81.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/1.021, allocations: 3.685 MB / 0.5641 GB, free: 78.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/1.021, allocations: 15.81 kB / 0.5641 GB, free: 78.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008269/1.022, allocations: 4 kB / 0.5641 GB, free: 78.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/1.022, allocations: 138.1 kB / 0.5642 GB, free: 77.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0388/1.061, allocations: 13.43 MB / 0.5773 GB, free: 64.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/1.065, allocations: 1.329 MB / 0.5786 GB, free: 62.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003655/1.069, allocations: 1.218 MB / 0.5798 GB, free: 61.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006292/1.07, allocations: 227.9 kB / 0.58 GB, free: 61.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003508/1.073, allocations: 1.205 MB / 0.5812 GB, free: 60.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=197): time 6.482e-06/1.073, allocations: 3.938 kB / 0.5812 GB, free: 60.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=250): time 0.03379/1.107, allocations: 9.472 MB / 0.5905 GB, free: 50.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.403e-05/1.107, allocations: 188.2 kB / 0.5906 GB, free: 50.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004572/1.112, allocations: 1.65 MB / 0.5922 GB, free: 48.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007517/1.113, allocations: 41.69 kB / 0.5923 GB, free: 48.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/1.114, allocations: 1.069 MB / 0.5933 GB, free: 47.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00147/1.115, allocations: 0.8044 MB / 0.5941 GB, free: 46.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/1.115, allocations: 8 kB / 0.5941 GB, free: 46.92 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002527/1.116, allocations: 416.5 kB / 0.5945 GB, free: 46.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/1.119, allocations: 1.247 MB / 0.5957 GB, free: 45.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/1.124, allocations: 1.868 MB / 0.5976 GB, free: 43.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004618/1.129, allocations: 1.538 MB / 0.5991 GB, free: 41.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-05/1.129, allocations: 7.938 kB / 0.5991 GB, free: 41.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.01139/1.14, allocations: 3.542 MB / 0.6025 GB, free: 37.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/1.14, allocations: 8.031 kB / 0.6025 GB, free: 37.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-05/1.14, allocations: 16 kB / 0.6026 GB, free: 37.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/1.142, allocations: 499 kB / 0.603 GB, free: 37.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005978/1.148, allocations: 0.6826 MB / 0.6037 GB, free: 36.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007335/1.156, allocations: 4.237 MB / 0.6078 GB, free: 32.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003132/1.159, allocations: 123.8 kB / 0.608 GB, free: 32.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007874/1.16, allocations: 120 kB / 0.6081 GB, free: 32.07 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$PRE.motor.uniformNoise.state[1],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[4],$PRE.motor.uniformNoise.r,motor.uniformNoise.r,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.mode,gearbox.lossyGear.ideal,motor.uniformNoise.localSeed,motor.uniformNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 316 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008342/1.16, allocations: 120 kB / 0.6082 GB, free: 31.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008863/1.161, allocations: 244.9 kB / 0.6084 GB, free: 31.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/1.173, allocations: 3.416 MB / 0.6118 GB, free: 28.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/1.173, allocations: 24 kB / 0.6118 GB, free: 28.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.173, allocations: 7.938 kB / 0.6118 GB, free: 28.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-05/1.173, allocations: 11.95 kB / 0.6118 GB, free: 28.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02847/1.202, allocations: 8.971 MB / 0.6206 GB, free: 19.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.9e-05/1.202, allocations: 4 kB / 0.6206 GB, free: 19.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004623/1.207, allocations: 479.5 kB / 0.621 GB, free: 18.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003093/1.21, allocations: 0.6318 MB / 0.6216 GB, free: 18.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006806/1.21, allocations: 27.95 kB / 0.6217 GB, free: 18.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/1.224, allocations: 7.137 MB / 0.6286 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005926/1.23, allocations: 3.089 MB / 0.6316 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01498/1.245, allocations: 5.373 MB / 0.6369 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002528/1.247, allocations: 0.6307 MB / 0.6375 GB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.248, allocations: 15.91 kB / 0.6375 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003571/1.252, allocations: 111.9 kB / 0.6376 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007913/1.253, allocations: 157.6 kB / 0.6378 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.253, allocations: 71.95 kB / 0.6379 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003391/1.256, allocations: 1.233 MB / 0.6391 GB, free: 15.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005176/1.262, allocations: 0.7147 MB / 0.6398 GB, free: 14.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 ($STATESET1.x,controller.speed_PI.x,controller.positionToSpeed.x,controller.position_PI.x,gearbox.phi_rel,gearbox.w_rel,slewRateLimiter.y,rodMass.s,rodMass.v,elastoGap.s_rel,elastoGap.v_rel) * Number of discrete variables: 12 ($whenCondition1,motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],motor.uniformNoise.r,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,gearbox.lossyGear.mode) * Number of discrete states: 5 (motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],gearbox.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(3,100.0%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.002014/1.264, allocations: 0.5477 MB / 0.6403 GB, free: 14.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01072/1.275, allocations: 3.473 MB / 0.6437 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/1.275, allocations: 5.547 kB / 0.6437 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006728/1.281, allocations: 2.064 MB / 0.6457 GB, free: 8.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005276/1.287, allocations: 466.3 kB / 0.6461 GB, free: 8.273 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0245/1.311, allocations: 6.015 MB / 0.652 GB, free: 2.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1657/1.477, allocations: 2.638 MB / 0.6546 GB, free: 133.3 MB / 410.7 MB Notification: Performance of SimCode: time 2.665e-06/1.477, allocations: 0 / 0.6546 GB, free: 133.3 MB / 410.7 MB Notification: Performance of Templates: time 0.1704/1.647, allocations: 108.7 MB / 0.7608 GB, free: 68 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseInitialize.cpp:3203:3: error: use of undeclared identifier \'$PRE_P_motor_P_uniformNoise_P_state_\'; did you mean \'_motor_P_uniformNoise_P_state_\'?\n $PRE_P_motor_P_uniformNoise_P_state_=tmp179;\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n _motor_P_uniformNoise_P_state_\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.h:1383:34: note: \'_motor_P_uniformNoise_P_state_\' declared here\n StatArrayDim1 _motor_P_uniformNoise_P_state_;\n ^\n1 error generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoiseCalcHelperMain.o] Error 1\n'