Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009541/0.0009541, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007512/0.007512, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008195/0.0008197, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3443, allocations: 47.59 MB / 327 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise): time 0.02131/0.3657, allocations: 12.77 MB / 339.8 MB, free: 6.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.3818, allocations: 5.121 MB / 344.9 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005754/0.3877, allocations: 67.62 kB / 345 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005155/0.3929, allocations: 0.804 MB / 345.8 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008502/0.4014, allocations: 1.026 MB / 346.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004039/0.4055, allocations: 0.874 MB / 347.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01127/0.4168, allocations: 4.459 MB / 352.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005375/0.4223, allocations: 2.581 MB / 354.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003976/0.4263, allocations: 1.365 MB / 356.1 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004639/0.431, allocations: 1.871 MB / 358 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001733/0.4328, allocations: 208 kB / 358.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003426/0.4362, allocations: 0.5034 MB / 358.7 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001708/0.438, allocations: 0.9927 MB / 359.7 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003645/0.4416, allocations: 1.836 MB / 361.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009917/0.4515, allocations: 6.957 MB / 368.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.117e-05/0.4516, allocations: 0 / 368.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.571e-06/0.4517, allocations: 4 kB / 368.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000304/0.452, allocations: 0 / 368.5 MB, free: 9.707 MB / 302.1 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.01177/0.4637, allocations: 3.639 MB / 372.1 MB, free: 6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.4638, allocations: 12.03 kB / 372.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002646/0.4665, allocations: 452.1 kB / 372.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005808/0.4723, allocations: 2.284 MB / 374.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007963/0.4731, allocations: 415.2 kB / 375.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009827/0.4741, allocations: 319.8 kB / 375.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.4873, allocations: 4.277 MB / 379.8 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001571/0.4875, allocations: 7.906 kB / 379.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003929/0.4879, allocations: 127.9 kB / 380 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/0.4881, allocations: 150.1 kB / 380.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01066/0.4988, allocations: 3.877 MB / 384 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03112/0.53, allocations: 14.24 MB / 398.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/0.5339, allocations: 2.177 MB / 400.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002374/0.5363, allocations: 1.318 MB / 401.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003602/0.5367, allocations: 212.2 kB / 401.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002409/0.5391, allocations: 1.33 MB / 403.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=186): time 3.787e-06/0.5392, allocations: 4 kB / 403.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=234): time 0.03214/0.5713, allocations: 13.04 MB / 416.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004475/0.5759, allocations: 3.264 MB / 419.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004824/0.5807, allocations: 2.284 MB / 421.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008813/0.5816, allocations: 77.69 kB / 421.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001811/0.5835, allocations: 1.497 MB / 423.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.5846, allocations: 0.7857 MB / 424.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.585, allocations: 219.1 kB / 424.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5851, allocations: 301.1 kB / 424.7 MB, free: 344 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002369/0.5875, allocations: 1.298 MB / 426 MB, free: 15.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002703/0.5902, allocations: 1.948 MB / 428 MB, free: 12.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004958/0.5952, allocations: 3.312 MB / 431.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.5952, allocations: 4 kB / 431.3 MB, free: 9.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007269/0.6025, allocations: 3.92 MB / 435.2 MB, free: 5.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.6025, allocations: 12 kB / 435.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.504e-05/0.6026, allocations: 16 kB / 435.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.6039, allocations: 0.4993 MB / 435.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.6066, allocations: 0.667 MB / 436.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006302/0.6129, allocations: 4.658 MB / 441 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/0.6156, allocations: 203.8 kB / 441.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.6158, allocations: 108 kB / 441.4 MB, free: 14.81 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,motor.uniformNoise.actualGlobalSeed,motor.uniformNoise.localSeed,gearbox.lossyGear.ideal,gearbox.lossyGear.mode,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.locked,gearbox.lossyGear.startBackward,gearbox.lossyGear.startForward,gearbox.lossyGear.tau_aPos,motor.uniformNoise.r_raw,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r,$PRE.motor.uniformNoise.r,motor.uniformNoise.state[4],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 303 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of prepare postOptimizeDAE: time 0.003294/0.6191, allocations: 1.094 MB / 442.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008369/0.6199, allocations: 256.8 kB / 442.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00732/0.6273, allocations: 3.663 MB / 446.4 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.6273, allocations: 31.94 kB / 446.4 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.6273, allocations: 4 kB / 446.4 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.037e-05/0.6274, allocations: 7.969 kB / 446.4 MB, free: 9.711 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01606/0.6434, allocations: 9.411 MB / 455.8 MB, free: 156 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.6435, allocations: 0 / 455.8 MB, free: 156 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2071/0.8506, allocations: 422.6 kB / 456.2 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002215/0.8529, allocations: 0.6389 MB / 456.9 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003309/0.8532, allocations: 50.73 kB / 456.9 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007823/0.861, allocations: 7.485 MB / 464.4 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002843/0.8639, allocations: 3.021 MB / 467.4 MB, free: 102.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008011/0.8719, allocations: 5.443 MB / 472.9 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.8732, allocations: 0.6388 MB / 473.5 MB, free: 100.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003403/0.8736, allocations: 45.97 kB / 473.5 MB, free: 100.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.875, allocations: 169.3 kB / 473.7 MB, free: 100.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00045/0.8754, allocations: 192.2 kB / 473.9 MB, free: 100.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/0.8756, allocations: 65.34 kB / 474 MB, free: 100.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002012/0.8776, allocations: 1.556 MB / 475.5 MB, free: 99.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8776, allocations: 0 / 475.5 MB, free: 99.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00235/0.8799, allocations: 0.7856 MB / 476.3 MB, free: 99.65 MB / 382.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (3,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,22)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007453/0.8807, allocations: 374.4 kB / 476.7 MB, free: 99.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005128/0.8858, allocations: 3.718 MB / 480.4 MB, free: 95.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.8859, allocations: 0 / 480.4 MB, free: 95.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003127/0.889, allocations: 2.275 MB / 482.7 MB, free: 93.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003606/0.8926, allocations: 0.6133 MB / 483.3 MB, free: 93.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.9043, allocations: 8.806 MB / 492.1 MB, free: 84.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.906, allocations: 2.377 MB / 494.5 MB, free: 81.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002163/0.9082, allocations: 0.5953 MB / 495.1 MB, free: 81.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006405/0.9088, allocations: 199.4 kB / 495.3 MB, free: 81.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.9088, allocations: 4 kB / 495.3 MB, free: 81.11 MB / 382.1 MB Notification: Performance of Templates: time 0.06151/0.9704, allocations: 41.64 MB / 0.5243 GB, free: 39.41 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.pipe 2>&1)