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.001349/0.001349, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001714, allocations: 202 kB / 18.73 MB, free: 4.312 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.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 63.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3814, allocations: 50.54 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01489/0.3964, allocations: 13.69 MB / 422.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.4071, allocations: 5.369 MB / 428.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.4105, allocations: 79.69 kB / 428.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003335/0.4139, allocations: 0.9622 MB / 429.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005016/0.4189, allocations: 1.17 MB / 430.5 MB, free: 12.2 MB / 350.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.004152/0.4231, allocations: 0.975 MB / 431.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008339/0.4314, allocations: 4.335 MB / 435.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008104/0.4396, allocations: 3.159 MB / 439 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003942/0.4436, allocations: 1.897 MB / 440.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006079/0.4497, allocations: 2.33 MB / 443.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002697/0.4524, allocations: 0.5703 MB / 443.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004937/0.4574, allocations: 0.8668 MB / 444.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003491/0.4609, allocations: 1.422 MB / 446.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006518/0.4674, allocations: 2.276 MB / 448.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0163/0.4838, allocations: 7.549 MB / 455.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.4839, allocations: 0 / 455.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.4839, allocations: 0 / 455.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002691/0.4842, allocations: 0 / 455.9 MB, free: 2.684 MB / 366.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.02743/0.5116, allocations: 4.499 MB / 460.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001112/0.5118, allocations: 12.02 kB / 460.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004547/0.5163, allocations: 482.2 kB / 460.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009751/0.5261, allocations: 2.496 MB / 463.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006835/0.5269, allocations: 335.3 kB / 463.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.5287, allocations: 319.9 kB / 464 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01656/0.5453, allocations: 4.257 MB / 468.3 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/0.5455, allocations: 11.94 kB / 468.3 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005178/0.546, allocations: 124 kB / 468.4 MB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002552/0.5463, allocations: 150.1 kB / 468.5 MB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.5603, allocations: 3.834 MB / 472.4 MB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04037/0.6007, allocations: 14.08 MB / 486.5 MB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003638/0.6044, allocations: 2.134 MB / 488.6 MB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002325/0.6068, allocations: 1.263 MB / 489.9 MB, free: 28 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003554/0.6072, allocations: 224 kB / 490.1 MB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003022/0.6102, allocations: 1.303 MB / 491.4 MB, free: 14.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 3.456e-06/0.6102, allocations: 0 / 491.4 MB, free: 14.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.03065/0.6409, allocations: 12.85 MB / 0.4924 GB, free: 1.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006291/0.6473, allocations: 3.365 MB / 0.4957 GB, free: 13.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004932/0.6522, allocations: 2.307 MB / 0.498 GB, free: 11.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007852/0.6531, allocations: 77.7 kB / 0.498 GB, free: 11.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.6551, allocations: 1.536 MB / 0.4995 GB, free: 9.973 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/0.6563, allocations: 0.8211 MB / 0.5003 GB, free: 9.145 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009237/0.6572, allocations: 497.4 kB / 0.5008 GB, free: 8.652 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6574, allocations: 301.1 kB / 0.5011 GB, free: 8.355 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.6598, allocations: 1.286 MB / 0.5023 GB, free: 7.066 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002978/0.6628, allocations: 1.933 MB / 0.5042 GB, free: 4.871 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00498/0.6678, allocations: 3.288 MB / 0.5074 GB, free: 1.309 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.6678, allocations: 4 kB / 0.5074 GB, free: 1.305 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007071/0.6749, allocations: 3.894 MB / 0.5112 GB, free: 13.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.6749, allocations: 15.94 kB / 0.5113 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/0.675, allocations: 23.98 kB / 0.5113 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.6764, allocations: 0.5463 MB / 0.5118 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/0.6788, allocations: 0.6552 MB / 0.5125 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005947/0.6848, allocations: 5.057 MB / 0.5174 GB, free: 6.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/0.6872, allocations: 191.7 kB / 0.5176 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/0.6875, allocations: 112 kB / 0.5177 GB, free: 6.461 MB / 446.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.002182/0.6897, allocations: 1.094 MB / 0.5188 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006123/0.6903, allocations: 270.3 kB / 0.519 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006712/0.697, allocations: 3.632 MB / 0.5226 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/0.697, allocations: 20 kB / 0.5226 GB, free: 1.406 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.912e-06/0.6971, allocations: 4 kB / 0.5226 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.6971, allocations: 11.95 kB / 0.5226 GB, free: 1.391 MB / 446.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.01633/0.7134, allocations: 9.311 MB / 0.5317 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.7135, allocations: 0 / 0.5317 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/0.7152, allocations: 423.4 kB / 0.5321 GB, free: 7.508 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.717, allocations: 0.684 MB / 0.5328 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/0.7172, allocations: 51.97 kB / 0.5328 GB, free: 6.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2607/0.9779, allocations: 8.137 MB / 0.5408 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003704/0.9817, allocations: 3.112 MB / 0.5438 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008773/0.9905, allocations: 5.382 MB / 0.5491 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/0.9922, allocations: 0.6506 MB / 0.5497 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004806/0.9927, allocations: 48.91 kB / 0.5497 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.9941, allocations: 144.2 kB / 0.5499 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004741/0.9946, allocations: 200 kB / 0.5501 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.9947, allocations: 64.28 kB / 0.5501 GB, free: 117.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.9971, allocations: 1.572 MB / 0.5517 GB, free: 116.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9971, allocations: 0 / 0.5517 GB, free: 116.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002798/1, allocations: 0.7795 MB / 0.5524 GB, free: 116.6 MB / 462.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.001372/1.001, allocations: 0.57 MB / 0.553 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005993/1.007, allocations: 3.689 MB / 0.5566 GB, free: 114.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.007, allocations: 3.969 kB / 0.5566 GB, free: 114.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003312/1.011, allocations: 2.257 MB / 0.5588 GB, free: 113.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/1.014, allocations: 0.6504 MB / 0.5594 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/1.026, allocations: 7.231 MB / 0.5665 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/1.028, allocations: 2.39 MB / 0.5688 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002089/1.03, allocations: 0.6022 MB / 0.5694 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007375/1.031, allocations: 211.4 kB / 0.5696 GB, free: 103.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.222e-06/1.031, allocations: 4 kB / 0.5696 GB, free: 103.5 MB / 462.1 MB Notification: Performance of Templates: time 0.06438/1.095, allocations: 43.73 MB / 0.6123 GB, free: 60.06 MB / 462.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