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.0012/0.0012, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 58.38 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.2386/0.3497, allocations: 13.68 MB / 372.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.3617, allocations: 5.362 MB / 377.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004101/0.3658, allocations: 78.31 kB / 378 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.3696, allocations: 0.9701 MB / 379 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006747/0.3764, allocations: 1.163 MB / 380.1 MB, free: 9.293 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.004184/0.3806, allocations: 0.9652 MB / 381.1 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.391, allocations: 4.352 MB / 385.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005713/0.3968, allocations: 3.166 MB / 388.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0045/0.4013, allocations: 1.897 MB / 390.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005753/0.4071, allocations: 2.325 MB / 392.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002228/0.4093, allocations: 0.5698 MB / 393.4 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.4133, allocations: 0.8704 MB / 394.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00229/0.4157, allocations: 1.411 MB / 395.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00411/0.4198, allocations: 2.28 MB / 398 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009022/0.4288, allocations: 7.534 MB / 405.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4289, allocations: 0 / 405.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4289, allocations: 0 / 405.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001898/0.4291, allocations: 0 / 405.5 MB, free: 10.95 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.01107/0.4401, allocations: 4.394 MB / 409.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.4402, allocations: 12.03 kB / 409.9 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.4419, allocations: 460 kB / 410.4 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004767/0.4467, allocations: 2.474 MB / 412.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/0.447, allocations: 337.3 kB / 413.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005016/0.4475, allocations: 311.9 kB / 413.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007734/0.4553, allocations: 4.255 MB / 417.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.832e-05/0.4554, allocations: 15.84 kB / 417.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/0.4557, allocations: 130 kB / 417.9 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.4559, allocations: 146.1 kB / 418 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006911/0.4628, allocations: 3.83 MB / 421.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02252/0.4853, allocations: 14.05 MB / 435.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/0.4888, allocations: 2.146 MB / 438 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.491, allocations: 1.273 MB / 439.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003657/0.4914, allocations: 224.1 kB / 439.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002171/0.4935, allocations: 1.303 MB / 440.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.757e-06/0.4936, allocations: 0 / 440.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.02965/0.5232, allocations: 12.79 MB / 453.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004296/0.5276, allocations: 3.352 MB / 457 MB, free: 7.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0045/0.5321, allocations: 2.314 MB / 459.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006207/0.5328, allocations: 81.69 kB / 459.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001522/0.5343, allocations: 1.5 MB / 460.9 MB, free: 3.113 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001093/0.5354, allocations: 0.784 MB / 461.7 MB, free: 2.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008696/0.5363, allocations: 485.3 kB / 462.1 MB, free: 1.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5364, allocations: 305.1 kB / 462.4 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002202/0.5386, allocations: 1.282 MB / 463.7 MB, free: 276 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002597/0.5413, allocations: 1.929 MB / 465.6 MB, free: 14.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004788/0.5461, allocations: 3.288 MB / 468.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.5461, allocations: 7.938 kB / 468.9 MB, free: 10.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00704/0.5531, allocations: 3.885 MB / 472.8 MB, free: 6.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.5532, allocations: 19.25 kB / 472.8 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-05/0.5532, allocations: 24 kB / 472.9 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.5546, allocations: 0.5505 MB / 473.4 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/0.5573, allocations: 0.6474 MB / 474.1 MB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006141/0.5634, allocations: 5.04 MB / 479.1 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/0.5666, allocations: 199.5 kB / 479.3 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000546/0.5672, allocations: 112 kB / 479.4 MB, free: 15.69 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.003598/0.5708, allocations: 1.086 MB / 480.5 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/0.5721, allocations: 256.8 kB / 480.7 MB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/0.5798, allocations: 3.632 MB / 484.4 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.5798, allocations: 20 kB / 484.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.5799, allocations: 4 kB / 484.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.703e-05/0.5799, allocations: 11.95 kB / 484.4 MB, free: 10.64 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.0209/0.6008, allocations: 9.302 MB / 493.7 MB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.6009, allocations: 4 kB / 493.7 MB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/0.6029, allocations: 431.7 kB / 494.1 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/0.6048, allocations: 0.6861 MB / 494.8 MB, free: 128 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002288/0.605, allocations: 55.91 kB / 494.9 MB, free: 72 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.6162, allocations: 8.128 MB / 0.4912 GB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003569/0.6198, allocations: 3.113 MB / 0.4943 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009984/0.6298, allocations: 5.368 MB / 0.4995 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/0.632, allocations: 0.6266 MB / 0.5001 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006646/0.6326, allocations: 59.92 kB / 0.5002 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.6343, allocations: 147.9 kB / 0.5003 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004927/0.6348, allocations: 193.6 kB / 0.5005 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.635, allocations: 67.97 kB / 0.5006 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002611/0.6376, allocations: 1.575 MB / 0.5021 GB, free: 12.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6376, allocations: 0 / 0.5021 GB, free: 12.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003211/0.6408, allocations: 0.7773 MB / 0.5029 GB, free: 11.37 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.001484/0.6423, allocations: 0.5683 MB / 0.5034 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00663/0.649, allocations: 3.688 MB / 0.507 GB, free: 7.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.649, allocations: 3.938 kB / 0.507 GB, free: 7.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00411/0.6531, allocations: 2.256 MB / 0.5092 GB, free: 4.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/0.6572, allocations: 0.6533 MB / 0.5099 GB, free: 4.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.6702, allocations: 7.127 MB / 0.5168 GB, free: 13.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002225/0.6724, allocations: 2.389 MB / 0.5192 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002405/0.6749, allocations: 0.6108 MB / 0.5198 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000729/0.6756, allocations: 215.3 kB / 0.52 GB, free: 9.809 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6756, allocations: 0 / 0.52 GB, free: 9.809 MB / 446.1 MB Notification: Performance of Templates: time 0.3075/0.9831, allocations: 42.84 MB / 0.5618 GB, free: 129.2 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 cvode -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