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.001129/0.001129, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001098, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3899, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01746/0.4074, allocations: 13.67 MB / 422.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.4223, allocations: 5.373 MB / 428.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004237/0.4266, allocations: 83.62 kB / 428.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.431, allocations: 0.9583 MB / 429.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00623/0.4372, allocations: 1.169 MB / 430.5 MB, free: 12.22 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.003323/0.4406, allocations: 0.9789 MB / 431.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007706/0.4483, allocations: 4.331 MB / 435.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004599/0.4529, allocations: 3.172 MB / 439 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004768/0.4577, allocations: 1.912 MB / 440.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005746/0.4635, allocations: 2.32 MB / 443.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001441/0.465, allocations: 0.5742 MB / 443.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002635/0.4676, allocations: 0.8668 MB / 444.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00171/0.4694, allocations: 1.414 MB / 446.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003842/0.4732, allocations: 2.283 MB / 448.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.4839, allocations: 7.532 MB / 455.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4839, allocations: 0 / 455.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.484, allocations: 0 / 455.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001901/0.4842, allocations: 0 / 455.9 MB, free: 2.699 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.01222/0.4964, allocations: 4.395 MB / 460.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.4964, allocations: 12.02 kB / 460.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.498, allocations: 456 kB / 460.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.5019, allocations: 2.471 MB / 463.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003134/0.5023, allocations: 343.2 kB / 463.6 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004954/0.5028, allocations: 319.8 kB / 463.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007196/0.51, allocations: 4.257 MB / 468.1 MB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.38e-05/0.5101, allocations: 11.89 kB / 468.1 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003044/0.5104, allocations: 124 kB / 468.3 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.5105, allocations: 154.1 kB / 468.4 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006527/0.5171, allocations: 3.826 MB / 472.2 MB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02198/0.5391, allocations: 14.06 MB / 486.3 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/0.5428, allocations: 2.13 MB / 488.4 MB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002293/0.5451, allocations: 1.259 MB / 489.7 MB, free: 224 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004845/0.5456, allocations: 220.2 kB / 489.9 MB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00261/0.5483, allocations: 1.302 MB / 491.2 MB, free: 14.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 3.056e-06/0.5483, allocations: 4 kB / 491.2 MB, free: 14.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.03498/0.5833, allocations: 12.79 MB / 0.4922 GB, free: 1.734 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004761/0.5881, allocations: 3.345 MB / 0.4955 GB, free: 14.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004426/0.5926, allocations: 2.307 MB / 0.4977 GB, free: 11.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005551/0.5931, allocations: 77.7 kB / 0.4978 GB, free: 11.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.5948, allocations: 1.505 MB / 0.4992 GB, free: 10.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008308/0.5956, allocations: 0.7857 MB / 0.5 GB, free: 9.461 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008967/0.5965, allocations: 485.3 kB / 0.5005 GB, free: 8.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.5967, allocations: 305.1 kB / 0.5008 GB, free: 8.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002298/0.599, allocations: 1.282 MB / 0.502 GB, free: 7.395 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002804/0.6018, allocations: 1.933 MB / 0.5039 GB, free: 5.199 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004944/0.6068, allocations: 3.292 MB / 0.5071 GB, free: 1.633 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/0.6068, allocations: 4 kB / 0.5071 GB, free: 1.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007373/0.6142, allocations: 3.877 MB / 0.5109 GB, free: 13.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.6143, allocations: 16.28 kB / 0.5109 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.222e-05/0.6143, allocations: 27.98 kB / 0.511 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.6157, allocations: 0.5459 MB / 0.5115 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.6185, allocations: 0.6552 MB / 0.5121 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006295/0.6248, allocations: 5.045 MB / 0.5171 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003345/0.6282, allocations: 191.7 kB / 0.5172 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006706/0.6289, allocations: 112 kB / 0.5173 GB, free: 6.809 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.003225/0.6321, allocations: 1.098 MB / 0.5184 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008877/0.633, allocations: 260.8 kB / 0.5187 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007449/0.6405, allocations: 3.632 MB / 0.5222 GB, free: 1.777 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.6406, allocations: 20 kB / 0.5222 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6406, allocations: 4 kB / 0.5222 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/0.6406, allocations: 11.95 kB / 0.5222 GB, free: 1.742 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.02385/0.6645, allocations: 9.307 MB / 0.5313 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/0.6645, allocations: 0 / 0.5313 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/0.6666, allocations: 419.6 kB / 0.5317 GB, free: 7.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.6687, allocations: 0.6785 MB / 0.5324 GB, free: 7.176 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000458/0.6692, allocations: 51.97 kB / 0.5324 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3563/1.025, allocations: 8.14 MB / 0.5404 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004076/1.03, allocations: 3.104 MB / 0.5434 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009752/1.039, allocations: 5.369 MB / 0.5487 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.041, allocations: 0.6352 MB / 0.5493 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006847/1.042, allocations: 53.06 kB / 0.5493 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/1.043, allocations: 143.1 kB / 0.5495 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004865/1.044, allocations: 193.8 kB / 0.5497 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/1.044, allocations: 69.88 kB / 0.5497 GB, free: 117.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002578/1.047, allocations: 1.569 MB / 0.5513 GB, free: 117 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.047, allocations: 0 / 0.5513 GB, free: 117 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00365/1.05, allocations: 0.7769 MB / 0.552 GB, free: 117 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.001685/1.052, allocations: 0.5736 MB / 0.5526 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007201/1.059, allocations: 3.689 MB / 0.5562 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.059, allocations: 0 / 0.5562 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003927/1.063, allocations: 2.254 MB / 0.5584 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004183/1.067, allocations: 0.6556 MB / 0.559 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/1.08, allocations: 7.121 MB / 0.566 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/1.082, allocations: 2.386 MB / 0.5683 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00233/1.084, allocations: 0.6124 MB / 0.5689 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008891/1.085, allocations: 211.3 kB / 0.5691 GB, free: 104 MB / 462.1 MB Notification: Performance of SimCode: time 3.206e-06/1.085, allocations: 0 / 0.5691 GB, free: 104 MB / 462.1 MB Notification: Performance of Templates: time 0.06588/1.151, allocations: 43.73 MB / 0.6118 GB, free: 60.56 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