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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 57.81 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.0997, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01557/0.1153, allocations: 13.68 MB / 371.3 MB, free: 240 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2026/0.318, allocations: 5.356 MB / 376.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003664/0.3217, allocations: 81.75 kB / 376.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004299/0.3261, allocations: 0.9688 MB / 377.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.3319, allocations: 1.168 MB / 378.8 MB, free: 8.859 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.003739/0.3357, allocations: 0.9718 MB / 379.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008003/0.3437, allocations: 4.312 MB / 384.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006358/0.3501, allocations: 3.164 MB / 387.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004193/0.3543, allocations: 1.892 MB / 389.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005588/0.36, allocations: 2.33 MB / 391.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002618/0.3626, allocations: 0.5686 MB / 392.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003934/0.3666, allocations: 0.8682 MB / 392.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003066/0.3697, allocations: 1.416 MB / 394.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005182/0.3749, allocations: 2.281 MB / 396.6 MB, free: 352 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.3852, allocations: 7.449 MB / 404.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3852, allocations: 0 / 404.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3852, allocations: 2.812 kB / 404.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002321/0.3855, allocations: 0 / 404.1 MB, free: 10.74 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.01467/0.4001, allocations: 4.397 MB / 408.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4002, allocations: 8.031 kB / 408.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001443/0.4016, allocations: 449.4 kB / 408.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002479/0.4041, allocations: 456 kB / 409.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005915/0.4101, allocations: 2.405 MB / 411.8 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001102/0.4112, allocations: 406 kB / 412.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001543/0.4128, allocations: 315.9 kB / 412.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/0.4249, allocations: 4.264 MB / 416.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.425, allocations: 7.906 kB / 416.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003911/0.4254, allocations: 128 kB / 416.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/0.4256, allocations: 146.1 kB / 417 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00896/0.4346, allocations: 3.83 MB / 420.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02583/0.4605, allocations: 14.18 MB / 435 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003655/0.4642, allocations: 2.146 MB / 437.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/0.4666, allocations: 1.281 MB / 438.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000373/0.467, allocations: 217.2 kB / 438.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002263/0.4692, allocations: 1.303 MB / 440 MB, free: 6.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=186): time 3.547e-06/0.4693, allocations: 0 / 440 MB, free: 6.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.0331/0.5024, allocations: 12.79 MB / 452.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00426/0.5067, allocations: 3.356 MB / 456.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004911/0.5116, allocations: 2.31 MB / 458.4 MB, free: 4.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006475/0.5123, allocations: 77.7 kB / 458.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.5139, allocations: 1.497 MB / 460 MB, free: 2.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.515, allocations: 0.7842 MB / 460.8 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/0.5159, allocations: 491.8 kB / 461.3 MB, free: 1.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.5159, allocations: 301.1 kB / 461.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.5182, allocations: 1.282 MB / 462.9 MB, free: 15.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002656/0.5209, allocations: 1.933 MB / 464.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005056/0.526, allocations: 3.296 MB / 468.1 MB, free: 9.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-05/0.526, allocations: 4 kB / 468.1 MB, free: 9.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007642/0.5337, allocations: 3.881 MB / 472 MB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.5338, allocations: 15.94 kB / 472 MB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.036e-05/0.5338, allocations: 20 kB / 472 MB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.5353, allocations: 0.5552 MB / 472.6 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002897/0.5382, allocations: 0.6513 MB / 473.2 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006694/0.5449, allocations: 5.044 MB / 478.3 MB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002827/0.5478, allocations: 195.8 kB / 478.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005402/0.5483, allocations: 112 kB / 478.6 MB, free: 15.07 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.002741/0.5511, allocations: 1.082 MB / 479.6 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009898/0.5521, allocations: 260.8 kB / 479.9 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008182/0.5603, allocations: 3.632 MB / 483.5 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/0.5604, allocations: 20.28 kB / 483.5 MB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.5604, allocations: 4 kB / 483.6 MB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/0.5604, allocations: 7.969 kB / 483.6 MB, free: 10.02 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.02087/0.5813, allocations: 9.405 MB / 493 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.5813, allocations: 0 / 493 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/0.5833, allocations: 423.6 kB / 493.4 MB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.5852, allocations: 0.6882 MB / 494.1 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000276/0.5855, allocations: 47.97 kB / 494.1 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009694/0.5952, allocations: 8.139 MB / 0.4905 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003931/0.5992, allocations: 3.11 MB / 0.4935 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/0.6099, allocations: 5.358 MB / 0.4987 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/0.6116, allocations: 0.6383 MB / 0.4994 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008948/0.6125, allocations: 47.94 kB / 0.4994 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/0.6146, allocations: 143.8 kB / 0.4996 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005546/0.6151, allocations: 201.7 kB / 0.4997 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001916/0.6154, allocations: 63.97 kB / 0.4998 GB, free: 13.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003154/0.6185, allocations: 1.571 MB / 0.5013 GB, free: 11.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6186, allocations: 0 / 0.5013 GB, free: 11.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003671/0.6222, allocations: 0.7773 MB / 0.5021 GB, free: 10.67 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.01193/0.6342, allocations: 6.405 MB / 0.5084 GB, free: 4.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01225/0.6465, allocations: 4.945 MB / 0.5132 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.6466, allocations: 1 kB / 0.5132 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004287/0.6509, allocations: 2.251 MB / 0.5154 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003853/0.6547, allocations: 0.6652 MB / 0.516 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2212/0.876, allocations: 30 MB / 0.5453 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0022/0.8782, allocations: 2.384 MB / 0.5477 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00214/0.8804, allocations: 0.6152 MB / 0.5483 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/0.8821, allocations: 1.352 MB / 0.5496 GB, free: 136.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8821, allocations: 0 / 0.5496 GB, free: 136.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/0.9936, allocations: 71.3 MB / 0.6192 GB, free: 73.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/16.42, allocations: 7.859 kB / 0.6192 GB, free: 73.38 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ActuatorWithNoise/ActuatorWithNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches