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.0009305/0.0009305, allocations: 97.12 kB / 17.01 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 196.7 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002248, allocations: 8 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1098, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01291/0.1227, allocations: 12.14 MB / 370.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2145/0.3373, allocations: 5.045 MB / 375.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003365/0.3407, allocations: 74.5 kB / 375.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003884/0.3446, allocations: 0.7435 MB / 376.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.3499, allocations: 0.9633 MB / 377.6 MB, free: 9.055 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.003051/0.353, allocations: 0.5983 MB / 378.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006912/0.3599, allocations: 4.128 MB / 382.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005316/0.3653, allocations: 2.177 MB / 384.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003724/0.369, allocations: 1.368 MB / 385.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004312/0.3734, allocations: 1.833 MB / 387.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.3751, allocations: 206.3 kB / 387.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003318/0.3785, allocations: 461.2 kB / 388.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002444/0.381, allocations: 0.9793 MB / 389.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.3838, allocations: 0.7585 MB / 390.1 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007415/0.3913, allocations: 6.15 MB / 396.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3913, allocations: 0 / 396.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3913, allocations: 1.375 kB / 396.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002729/0.3916, allocations: 0 / 396.2 MB, free: 1.855 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.01238/0.404, allocations: 3.718 MB / 400 MB, free: 15.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4041, allocations: 7.562 kB / 400 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00322/0.4073, allocations: 463 kB / 400.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007194/0.4145, allocations: 2.335 MB / 402.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009139/0.4155, allocations: 432 kB / 403.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/0.417, allocations: 312.7 kB / 403.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/0.4303, allocations: 4.259 MB / 407.7 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.4304, allocations: 15.91 kB / 407.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004667/0.4309, allocations: 126.7 kB / 407.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001649/0.4311, allocations: 146.1 kB / 408 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009034/0.4401, allocations: 3.854 MB / 411.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02771/0.4679, allocations: 14.27 MB / 426.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003958/0.4719, allocations: 2.169 MB / 428.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002532/0.4744, allocations: 1.306 MB / 429.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003622/0.4748, allocations: 217.2 kB / 429.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002635/0.4775, allocations: 1.322 MB / 431.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=186): time 3.727e-06/0.4775, allocations: 4 kB / 431.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=234): time 0.03094/0.5085, allocations: 13.02 MB / 444.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003702/0.5122, allocations: 3.258 MB / 447.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003802/0.516, allocations: 2.291 MB / 449.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004901/0.5166, allocations: 81.69 kB / 449.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.5179, allocations: 1.501 MB / 451.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009676/0.5189, allocations: 0.7855 MB / 452.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.5191, allocations: 48 kB / 452.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.5193, allocations: 415.3 kB / 452.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002299/0.5216, allocations: 1.286 MB / 453.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002813/0.5244, allocations: 1.941 MB / 455.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/0.5274, allocations: 1.545 MB / 457.3 MB, free: 6.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.5274, allocations: 4 kB / 457.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007853/0.5353, allocations: 3.877 MB / 461.2 MB, free: 2.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.5354, allocations: 13.97 kB / 461.2 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.5354, allocations: 16 kB / 461.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.5368, allocations: 0.5509 MB / 461.8 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002873/0.5397, allocations: 0.6669 MB / 462.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005898/0.5457, allocations: 4.671 MB / 467.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003668/0.5494, allocations: 195.8 kB / 467.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006843/0.5501, allocations: 112 kB / 467.4 MB, free: 12.37 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,$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 () * 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 (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.003493/0.5536, allocations: 1.091 MB / 468.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.5546, allocations: 264.8 kB / 468.7 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007279/0.5619, allocations: 3.655 MB / 472.4 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/0.562, allocations: 20 kB / 472.4 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.562, allocations: 7.984 kB / 472.4 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.51e-05/0.562, allocations: 7.969 kB / 472.4 MB, free: 7.289 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.01927/0.5813, allocations: 9.456 MB / 481.9 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.5814, allocations: 7.953 kB / 481.9 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/0.5834, allocations: 439.6 kB / 482.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.5852, allocations: 0.6747 MB / 483 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003308/0.5855, allocations: 52.14 kB / 483.1 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008717/0.5943, allocations: 7.489 MB / 490.5 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003403/0.5977, allocations: 3.025 MB / 493.6 MB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.6082, allocations: 5.428 MB / 499 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/0.6101, allocations: 0.65 MB / 499.6 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007859/0.611, allocations: 48 kB / 499.7 MB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/0.613, allocations: 171.8 kB / 499.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/0.6135, allocations: 203.1 kB / 0.4883 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/0.6137, allocations: 71.95 kB / 0.4884 GB, free: 10.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002984/0.6166, allocations: 1.555 MB / 0.4899 GB, free: 9.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6167, allocations: 0 / 0.4899 GB, free: 9.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00406/0.6207, allocations: 0.7695 MB / 0.4907 GB, free: 8.559 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 (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%) 8} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001613/0.6224, allocations: 0.5462 MB / 0.4912 GB, free: 8.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007244/0.6296, allocations: 3.704 MB / 0.4948 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.6297, allocations: 0 / 0.4948 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004363/0.6341, allocations: 2.275 MB / 0.4971 GB, free: 2.047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/0.6383, allocations: 0.6098 MB / 0.4976 GB, free: 1.445 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.6529, allocations: 8.454 MB / 0.5059 GB, free: 8.934 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002387/0.6554, allocations: 2.381 MB / 0.5082 GB, free: 6.516 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00258/0.658, allocations: 0.6147 MB / 0.5088 GB, free: 5.895 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000912/0.6589, allocations: 203.4 kB / 0.509 GB, free: 5.695 MB / 430.1 MB Notification: Performance of SimCode: time 1.293e-06/0.6589, allocations: 0 / 0.509 GB, free: 5.695 MB / 430.1 MB Notification: Performance of Templates: time 0.2919/0.9509, allocations: 41.16 MB / 0.5492 GB, free: 137 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches