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.speed_PI.x|controller.positionToSpeed.x|controller.position_PI.x|controller.busdelay.y|gearbox.phi_rel|gearbox.w_rel|slewRateLimiter.y|rodMass.s|rodMass.v|elastoGap.s_rel|elastoGap.v_rel",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise") translateModel(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1600,variableFilter="time|controller.speed_PI.x|controller.positionToSpeed.x|controller.position_PI.x|controller.busdelay.y|gearbox.phi_rel|gearbox.w_rel|slewRateLimiter.y|rodMass.s|rodMass.v|elastoGap.s_rel|elastoGap.v_rel",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.00129/0.00129, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002547/0.002547, allocations: 66.78 kB / 307 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1299, allocations: 50.53 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01736/0.1473, allocations: 13.7 MB / 371.2 MB, free: 300 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2173/0.3646, allocations: 5.349 MB / 376.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.3679, allocations: 78.31 kB / 376.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003571/0.3715, allocations: 0.9713 MB / 377.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005001/0.3765, allocations: 1.173 MB / 378.8 MB, free: 8.875 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.003081/0.3796, allocations: 0.9666 MB / 379.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005953/0.3856, allocations: 4.313 MB / 384.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004119/0.3897, allocations: 3.171 MB / 387.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003436/0.3932, allocations: 1.899 MB / 389.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004697/0.3979, allocations: 2.329 MB / 391.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002599/0.4005, allocations: 0.5694 MB / 392 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003691/0.4043, allocations: 0.86 MB / 392.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002266/0.4065, allocations: 1.411 MB / 394.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005898/0.4125, allocations: 2.284 MB / 396.6 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01358/0.4261, allocations: 7.45 MB / 404 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.4261, allocations: 0 / 404 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4261, allocations: 0 / 404 MB, free: 10.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002595/0.4264, allocations: 4 kB / 404 MB, free: 10.76 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.01497/0.4414, allocations: 4.398 MB / 408.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4415, allocations: 8.031 kB / 408.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002163/0.4436, allocations: 464 kB / 408.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005412/0.4491, allocations: 2.402 MB / 411.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009892/0.4501, allocations: 409.7 kB / 411.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.4511, allocations: 315.9 kB / 412 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.4612, allocations: 4.253 MB / 416.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/0.4615, allocations: 7.906 kB / 416.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003582/0.4618, allocations: 131 kB / 416.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000167/0.462, allocations: 146.1 kB / 416.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008557/0.4706, allocations: 3.834 MB / 420.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03004/0.5006, allocations: 14.18 MB / 434.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004054/0.5047, allocations: 2.137 MB / 436.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00258/0.5074, allocations: 1.282 MB / 438 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003818/0.5078, allocations: 219.1 kB / 438.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002492/0.5103, allocations: 1.302 MB / 439.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.737e-06/0.5103, allocations: 4 kB / 439.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.03266/0.543, allocations: 12.8 MB / 452.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004443/0.5475, allocations: 3.351 MB / 455.6 MB, free: 6.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004422/0.5519, allocations: 2.31 MB / 458 MB, free: 4.598 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000576/0.5525, allocations: 77.7 kB / 458 MB, free: 4.516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001739/0.5543, allocations: 1.501 MB / 459.5 MB, free: 3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001077/0.5554, allocations: 0.7844 MB / 460.3 MB, free: 2.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009216/0.5563, allocations: 481.3 kB / 460.8 MB, free: 1.746 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5564, allocations: 313.1 kB / 461.1 MB, free: 1.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00239/0.5588, allocations: 1.282 MB / 462.4 MB, free: 156 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003025/0.5619, allocations: 1.933 MB / 464.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005472/0.5674, allocations: 3.284 MB / 467.6 MB, free: 10.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/0.5674, allocations: 7.938 kB / 467.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007783/0.5752, allocations: 3.885 MB / 471.5 MB, free: 6.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.5752, allocations: 16.59 kB / 471.5 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/0.5753, allocations: 20 kB / 471.5 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.5768, allocations: 0.5509 MB / 472.1 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/0.5796, allocations: 0.6513 MB / 472.7 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/0.5866, allocations: 5.048 MB / 477.8 MB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/0.5897, allocations: 199.6 kB / 478 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003729/0.5901, allocations: 112 kB / 478.1 MB, free: 15.57 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.002495/0.5926, allocations: 1.082 MB / 479.2 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008935/0.5935, allocations: 260.8 kB / 479.4 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007568/0.601, allocations: 3.628 MB / 483 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/0.6011, allocations: 23.98 kB / 483.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.6011, allocations: 4 kB / 483.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/0.6011, allocations: 7.969 kB / 483.1 MB, free: 10.52 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.01838/0.6195, allocations: 9.403 MB / 492.5 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.6196, allocations: 0 / 492.5 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/0.6214, allocations: 419.4 kB / 492.9 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001881/0.6233, allocations: 0.6881 MB / 493.6 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.6235, allocations: 55.97 kB / 493.6 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.6339, allocations: 8.137 MB / 0.49 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003953/0.6379, allocations: 3.113 MB / 0.493 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/0.6489, allocations: 5.36 MB / 0.4983 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/0.6508, allocations: 0.6344 MB / 0.4989 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004454/0.6512, allocations: 51.94 kB / 0.499 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.6527, allocations: 148.3 kB / 0.4991 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000589/0.6533, allocations: 189.7 kB / 0.4993 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.6535, allocations: 67.97 kB / 0.4993 GB, free: 13.53 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002947/0.6565, allocations: 1.575 MB / 0.5009 GB, free: 11.94 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6565, allocations: 0 / 0.5009 GB, free: 11.94 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002962/0.6594, allocations: 0.7812 MB / 0.5016 GB, free: 11.16 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.002045/0.6615, allocations: 0.5758 MB / 0.5022 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01173/0.6732, allocations: 4.945 MB / 0.507 GB, free: 5.711 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.6733, allocations: 0 / 0.507 GB, free: 5.711 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004349/0.6777, allocations: 2.257 MB / 0.5092 GB, free: 3.398 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003643/0.6813, allocations: 0.6501 MB / 0.5099 GB, free: 2.766 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.6955, allocations: 7.216 MB / 0.5169 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002437/0.698, allocations: 2.385 MB / 0.5192 GB, free: 9.082 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002372/0.7004, allocations: 0.603 MB / 0.5198 GB, free: 8.473 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000742/0.7011, allocations: 211.4 kB / 0.52 GB, free: 8.27 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7011, allocations: 0 / 0.52 GB, free: 8.27 MB / 446.1 MB Notification: Performance of Templates: time 0.3101/1.011, allocations: 44.79 MB / 0.5638 GB, free: 126.1 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.1.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