Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Noise.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_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.Noise.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_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 60.19 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.118, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.2509/0.3689, allocations: 13.68 MB / 372.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.3797, allocations: 5.356 MB / 377.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.3823, allocations: 85.38 kB / 378 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.3853, allocations: 0.9614 MB / 379 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005175/0.3905, allocations: 1.166 MB / 380.1 MB, free: 9.562 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.003244/0.3937, allocations: 0.9748 MB / 381.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007516/0.4013, allocations: 4.342 MB / 385.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004786/0.4061, allocations: 3.17 MB / 388.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004615/0.4107, allocations: 1.896 MB / 390.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005044/0.4158, allocations: 2.335 MB / 392.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001694/0.4175, allocations: 0.5683 MB / 393.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.4204, allocations: 0.8681 MB / 394.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.4218, allocations: 1.413 MB / 395.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002942/0.4248, allocations: 2.284 MB / 398 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007631/0.4324, allocations: 7.525 MB / 405.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4325, allocations: 0 / 405.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4325, allocations: 4 kB / 405.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001659/0.4326, allocations: 0 / 405.5 MB, free: 11.16 MB / 318.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.01006/0.4427, allocations: 4.396 MB / 409.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.4428, allocations: 16.03 kB / 409.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001477/0.4442, allocations: 456 kB / 410.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004727/0.449, allocations: 2.472 MB / 412.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/0.4494, allocations: 342.3 kB / 413.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005746/0.4499, allocations: 315.8 kB / 413.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007395/0.4574, allocations: 4.255 MB / 417.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-05/0.4575, allocations: 7.906 kB / 417.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000296/0.4578, allocations: 130.6 kB / 417.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.4579, allocations: 146.1 kB / 418 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007059/0.465, allocations: 3.83 MB / 421.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02246/0.4875, allocations: 14.05 MB / 435.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003306/0.4908, allocations: 2.137 MB / 438 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/0.493, allocations: 1.275 MB / 439.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003242/0.4933, allocations: 221.2 kB / 439.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002146/0.4955, allocations: 1.306 MB / 440.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.176e-06/0.4955, allocations: 0 / 440.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.02733/0.5229, allocations: 12.79 MB / 453.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003607/0.5265, allocations: 3.353 MB / 457 MB, free: 7.195 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/0.53, allocations: 2.318 MB / 459.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.5303, allocations: 69.7 kB / 459.4 MB, free: 4.773 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.5316, allocations: 1.505 MB / 460.9 MB, free: 3.254 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009217/0.5325, allocations: 0.7846 MB / 461.7 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009102/0.5335, allocations: 489.3 kB / 462.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5336, allocations: 301.1 kB / 462.4 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.5361, allocations: 1.286 MB / 463.7 MB, free: 416 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002622/0.5387, allocations: 1.933 MB / 465.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005083/0.5438, allocations: 3.285 MB / 468.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.5439, allocations: 11.94 kB / 468.9 MB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00732/0.5512, allocations: 3.877 MB / 472.8 MB, free: 6.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.5513, allocations: 19.92 kB / 472.8 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/0.5513, allocations: 19.94 kB / 472.9 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.5527, allocations: 0.5548 MB / 473.4 MB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002604/0.5553, allocations: 0.6435 MB / 474.1 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/0.5617, allocations: 5.044 MB / 479.1 MB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.5644, allocations: 201.4 kB / 479.3 MB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/0.5647, allocations: 116 kB / 479.4 MB, free: 15.83 MB / 398.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.002062/0.5668, allocations: 1.086 MB / 480.5 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006376/0.5674, allocations: 260.8 kB / 480.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006797/0.5742, allocations: 3.624 MB / 484.4 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.5743, allocations: 24 kB / 484.4 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.5743, allocations: 4 kB / 484.4 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.5743, allocations: 15.89 kB / 484.4 MB, free: 10.78 MB / 398.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.5904, allocations: 9.303 MB / 493.7 MB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.5904, allocations: 4 kB / 493.7 MB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/0.5922, allocations: 423.4 kB / 494.1 MB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001733/0.594, allocations: 0.6856 MB / 494.8 MB, free: 276 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/0.5942, allocations: 59.91 kB / 494.9 MB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00983/0.604, allocations: 8.124 MB / 0.4912 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003723/0.6078, allocations: 3.113 MB / 0.4943 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009413/0.6172, allocations: 5.367 MB / 0.4995 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/0.6188, allocations: 0.6305 MB / 0.5001 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/0.6193, allocations: 55.92 kB / 0.5002 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/0.6207, allocations: 143.8 kB / 0.5003 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004589/0.6212, allocations: 193.8 kB / 0.5005 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/0.6213, allocations: 71.91 kB / 0.5006 GB, free: 13.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002388/0.6237, allocations: 1.567 MB / 0.5021 GB, free: 12.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6238, allocations: 0 / 0.5021 GB, free: 12.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00252/0.6263, allocations: 0.7739 MB / 0.5028 GB, free: 11.53 MB / 430.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.001321/0.6276, allocations: 0.5843 MB / 0.5034 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005995/0.6336, allocations: 3.688 MB / 0.507 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.6336, allocations: 4.062 kB / 0.507 GB, free: 7.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003585/0.6372, allocations: 2.253 MB / 0.5092 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.6401, allocations: 0.6539 MB / 0.5099 GB, free: 4.375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.6515, allocations: 7.128 MB / 0.5168 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.6536, allocations: 2.389 MB / 0.5192 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001967/0.6556, allocations: 0.603 MB / 0.5197 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000704/0.6563, allocations: 207.4 kB / 0.5199 GB, free: 9.965 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6563, allocations: 4 kB / 0.5199 GB, free: 9.961 MB / 446.1 MB Notification: Performance of Templates: time 0.2448/0.9011, allocations: 42.85 MB / 0.5618 GB, free: 129.9 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches