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.0007724/0.0007724, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008885/0.0008884, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.127/1.127, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000176/0.000176, allocations: 11.98 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07418/0.07437, allocations: 51.52 MB / 359.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.0115/0.0859, allocations: 12.94 MB / 372.2 MB, free: 320 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1358/0.2217, allocations: 5.232 MB / 377.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001912/0.2237, allocations: 75.28 kB / 377.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.2257, allocations: 0.8411 MB / 378.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002613/0.2283, allocations: 1.045 MB / 379.4 MB, free: 9.09 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.001567/0.2299, allocations: 0.8617 MB / 380.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00345/0.2333, allocations: 4.502 MB / 384.7 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.2358, allocations: 2.634 MB / 387.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.2375, allocations: 1.387 MB / 388.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002088/0.2396, allocations: 1.908 MB / 390.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003272/0.2399, allocations: 205.6 kB / 390.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000971/0.2409, allocations: 0.5037 MB / 391.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007265/0.2416, allocations: 0.9859 MB / 392.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.2429, allocations: 1.844 MB / 394.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004339/0.2472, allocations: 7.016 MB / 401.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.2472, allocations: 0 / 401.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2472, allocations: 0 / 401.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.381e-05/0.2473, allocations: 0 / 401.2 MB, free: 13.31 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.006045/0.2533, allocations: 3.683 MB / 404.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.2534, allocations: 9.031 kB / 404.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.2545, allocations: 466.5 kB / 405.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003029/0.2576, allocations: 2.405 MB / 407.8 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006398/0.2582, allocations: 426.9 kB / 408.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004299/0.2586, allocations: 315.8 kB / 408.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006154/0.2648, allocations: 4.282 MB / 412.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-05/0.2649, allocations: 19.83 kB / 412.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/0.2652, allocations: 120 kB / 412.9 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/0.2653, allocations: 154.1 kB / 413.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005958/0.2713, allocations: 3.877 MB / 416.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01692/0.2882, allocations: 14.26 MB / 431.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.2912, allocations: 2.175 MB / 433.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/0.2932, allocations: 1.314 MB / 434.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002601/0.2935, allocations: 224.1 kB / 434.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001992/0.2955, allocations: 1.33 MB / 436.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.186e-06/0.2955, allocations: 0 / 436.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.02493/0.3205, allocations: 13.05 MB / 449.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003262/0.3237, allocations: 3.271 MB / 452.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.3267, allocations: 2.303 MB / 454.9 MB, free: 8.395 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.3269, allocations: 81.69 kB / 454.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.3281, allocations: 1.502 MB / 456.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006057/0.3287, allocations: 0.7825 MB / 457.2 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.3289, allocations: 214.2 kB / 457.4 MB, free: 5.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.93e-05/0.329, allocations: 301.1 kB / 457.7 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.331, allocations: 1.305 MB / 459 MB, free: 4.199 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.3333, allocations: 1.941 MB / 461 MB, free: 1.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004315/0.3377, allocations: 3.314 MB / 464.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.036e-06/0.3377, allocations: 4 kB / 464.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.005823/0.3435, allocations: 3.912 MB / 468.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.3436, allocations: 12 kB / 468.2 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.3436, allocations: 20.34 kB / 468.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.3448, allocations: 0.5466 MB / 468.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/0.347, allocations: 0.6631 MB / 469.5 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004793/0.3518, allocations: 4.669 MB / 474.1 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.3536, allocations: 211.7 kB / 474.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.3537, allocations: 108 kB / 474.4 MB, free: 3.93 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.001557/0.3553, allocations: 1.094 MB / 475.5 MB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/0.3556, allocations: 260.8 kB / 475.8 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/0.3616, allocations: 3.683 MB / 479.5 MB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.3616, allocations: 24 kB / 479.5 MB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3616, allocations: 4 kB / 479.5 MB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.3616, allocations: 11.95 kB / 479.5 MB, free: 14.82 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.01313/0.3748, allocations: 9.481 MB / 489 MB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3748, allocations: 0 / 489 MB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.3764, allocations: 439.8 kB / 489.4 MB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.3779, allocations: 0.6747 MB / 490.1 MB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.378, allocations: 51.97 kB / 490.1 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007473/0.3855, allocations: 7.5 MB / 497.6 MB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002952/0.3885, allocations: 3.028 MB / 0.4889 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007784/0.3963, allocations: 5.445 MB / 0.4943 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009299/0.3972, allocations: 0.6499 MB / 0.4949 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.3975, allocations: 52 kB / 0.4949 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.3989, allocations: 167.8 kB / 0.4951 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/0.3992, allocations: 201.6 kB / 0.4953 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.3994, allocations: 67.97 kB / 0.4954 GB, free: 2.363 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001968/0.4013, allocations: 1.571 MB / 0.4969 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4013, allocations: 0 / 0.4969 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001898/0.4032, allocations: 0.7733 MB / 0.4976 GB, free: 4 kB / 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.001149/0.4044, allocations: 0.5752 MB / 0.4982 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005124/0.4095, allocations: 3.711 MB / 0.5018 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.4095, allocations: 8.062 kB / 0.5018 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003169/0.4127, allocations: 2.273 MB / 0.5041 GB, free: 9.449 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/0.4155, allocations: 0.6131 MB / 0.5047 GB, free: 8.844 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.4259, allocations: 8.82 MB / 0.5133 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001843/0.4277, allocations: 2.385 MB / 0.5156 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001606/0.4293, allocations: 0.6108 MB / 0.5162 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006173/0.43, allocations: 211.3 kB / 0.5164 GB, free: 12.72 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.43, allocations: 0 / 0.5164 GB, free: 12.72 MB / 446.1 MB Notification: Performance of Templates: time 0.1829/0.6129, allocations: 42.26 MB / 0.5577 GB, free: 131.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 -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