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.0009387/0.0009389, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002471/0.0002472, allocations: 4 kB / 308.4 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.09036, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01307/0.1035, allocations: 12.94 MB / 372.8 MB, free: 288 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1737/0.2772, allocations: 5.238 MB / 378.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002725/0.28, allocations: 71.81 kB / 378.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003213/0.2832, allocations: 0.8368 MB / 379 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004895/0.2882, allocations: 1.052 MB / 380 MB, free: 9.059 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.003056/0.2912, allocations: 0.8627 MB / 380.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006936/0.2982, allocations: 4.494 MB / 385.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004499/0.3027, allocations: 2.632 MB / 388 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003321/0.3061, allocations: 1.392 MB / 389.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004401/0.3105, allocations: 1.916 MB / 391.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.3118, allocations: 206.2 kB / 391.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.3143, allocations: 0.5005 MB / 392 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001618/0.316, allocations: 0.986 MB / 393 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003655/0.3196, allocations: 1.842 MB / 394.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006653/0.3263, allocations: 6.146 MB / 401 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3264, allocations: 0 / 401 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3264, allocations: 0 / 401 MB, free: 13.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002796/0.3267, allocations: 0 / 401 MB, free: 13.87 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.009887/0.3366, allocations: 3.681 MB / 404.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3366, allocations: 8.156 kB / 404.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002316/0.3389, allocations: 471.1 kB / 405.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.3439, allocations: 2.402 MB / 407.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008159/0.3448, allocations: 419.2 kB / 408 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.3458, allocations: 334.3 kB / 408.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009606/0.3555, allocations: 4.279 MB / 412.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.3556, allocations: 15.83 kB / 412.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003544/0.356, allocations: 128 kB / 412.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.3562, allocations: 146.1 kB / 412.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008588/0.3647, allocations: 3.873 MB / 416.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02744/0.3922, allocations: 14.27 MB / 431 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004151/0.3964, allocations: 2.181 MB / 433.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002824/0.3993, allocations: 1.306 MB / 434.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004172/0.3997, allocations: 226.4 kB / 434.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002889/0.4027, allocations: 1.322 MB / 436 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 5.23e-06/0.4027, allocations: 0 / 436 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.03451/0.4372, allocations: 13.06 MB / 449.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003891/0.4411, allocations: 3.264 MB / 452.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004507/0.4457, allocations: 2.306 MB / 454.7 MB, free: 9.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005218/0.4462, allocations: 77.7 kB / 454.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.4477, allocations: 1.506 MB / 456.2 MB, free: 7.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.4489, allocations: 0.785 MB / 457 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000577/0.4495, allocations: 215.1 kB / 457.2 MB, free: 6.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4496, allocations: 301.1 kB / 457.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/0.4523, allocations: 1.298 MB / 458.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003032/0.4553, allocations: 1.948 MB / 460.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005647/0.461, allocations: 3.308 MB / 464.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.839e-05/0.461, allocations: 4 kB / 464.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008136/0.4692, allocations: 3.908 MB / 468 MB, free: 11.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/0.4693, allocations: 14.81 kB / 468 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/0.4693, allocations: 24 kB / 468 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.4707, allocations: 0.5546 MB / 468.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/0.4736, allocations: 0.6669 MB / 469.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005887/0.4795, allocations: 4.675 MB / 473.9 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002695/0.4823, allocations: 207.7 kB / 474.1 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004874/0.4828, allocations: 104 kB / 474.2 MB, free: 4.801 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.002599/0.4854, allocations: 1.086 MB / 475.3 MB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008356/0.4862, allocations: 256.8 kB / 475.6 MB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007791/0.494, allocations: 3.687 MB / 479.3 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.4941, allocations: 28 kB / 479.3 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.4941, allocations: 0 / 479.3 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.018e-05/0.4942, allocations: 15.89 kB / 479.3 MB, free: 15.69 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.01916/0.5133, allocations: 9.498 MB / 488.8 MB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.5134, allocations: 4 kB / 488.8 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/0.5153, allocations: 431.6 kB / 489.2 MB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.5172, allocations: 0.6669 MB / 489.9 MB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003112/0.5175, allocations: 55.97 kB / 490 MB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008851/0.5264, allocations: 7.495 MB / 497.4 MB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003678/0.5301, allocations: 3.024 MB / 0.4887 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/0.5411, allocations: 5.444 MB / 0.4941 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002476/0.5436, allocations: 0.6615 MB / 0.4947 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008444/0.5445, allocations: 51.98 kB / 0.4948 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00211/0.5466, allocations: 163.8 kB / 0.4949 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005945/0.5472, allocations: 193.6 kB / 0.4951 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/0.5474, allocations: 67.97 kB / 0.4952 GB, free: 3.234 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003229/0.5507, allocations: 1.571 MB / 0.4967 GB, free: 1.648 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5507, allocations: 0 / 0.4967 GB, free: 1.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003628/0.5543, allocations: 0.7695 MB / 0.4974 GB, free: 0.8789 MB / 414.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.001645/0.556, allocations: 0.567 MB / 0.498 GB, free: 464 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007176/0.5632, allocations: 3.719 MB / 0.5016 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/0.5632, allocations: 4 kB / 0.5016 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004388/0.5676, allocations: 2.275 MB / 0.5039 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005239/0.5729, allocations: 0.6191 MB / 0.5045 GB, free: 9.719 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/0.5901, allocations: 8.904 MB / 0.5132 GB, free: 0.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003335/0.5935, allocations: 2.362 MB / 0.5155 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/0.5948, allocations: 227.3 kB / 0.5157 GB, free: 14.13 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5949, allocations: 0 / 0.5157 GB, free: 14.13 MB / 446.1 MB Notification: Performance of Templates: time 0.2743/0.8692, allocations: 115.9 MB / 0.6288 GB, free: 59.4 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 -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