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.001503/0.001503, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002002/0.002002, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2933, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01526/0.3086, allocations: 13.68 MB / 422.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.3195, allocations: 5.373 MB / 427.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002959/0.3225, allocations: 83.62 kB / 427.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002502/0.325, allocations: 0.9583 MB / 428.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003959/0.329, allocations: 1.17 MB / 430 MB, free: 12.19 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.002196/0.3312, allocations: 0.9744 MB / 431 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00518/0.3364, allocations: 4.342 MB / 435.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003535/0.34, allocations: 3.17 MB / 438.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.3426, allocations: 1.904 MB / 440.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003281/0.3459, allocations: 2.33 MB / 442.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007654/0.3467, allocations: 0.5664 MB / 443.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.3483, allocations: 0.8785 MB / 444.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.3495, allocations: 1.414 MB / 445.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002639/0.3522, allocations: 2.283 MB / 447.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007644/0.3598, allocations: 7.521 MB / 455.4 MB, free: 2.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3599, allocations: 4 kB / 455.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3599, allocations: 0 / 455.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001408/0.36, allocations: 0 / 455.4 MB, free: 2.656 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.009514/0.3696, allocations: 4.391 MB / 459.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3696, allocations: 16.03 kB / 459.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000569/0.3702, allocations: 443 kB / 460.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.3716, allocations: 460 kB / 460.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00449/0.3761, allocations: 2.482 MB / 463.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.3764, allocations: 339.3 kB / 463.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005811/0.377, allocations: 311.9 kB / 463.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008307/0.3853, allocations: 4.257 MB / 468.1 MB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.3855, allocations: 7.906 kB / 468.1 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000295/0.3858, allocations: 128 kB / 468.2 MB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.3859, allocations: 154.1 kB / 468.4 MB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00695/0.3929, allocations: 3.826 MB / 472.2 MB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02104/0.414, allocations: 14.05 MB / 486.2 MB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003389/0.4174, allocations: 2.134 MB / 488.4 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/0.4195, allocations: 1.256 MB / 489.6 MB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003178/0.4199, allocations: 224.1 kB / 489.8 MB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002205/0.4221, allocations: 1.299 MB / 491.1 MB, free: 14.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 3.697e-06/0.4221, allocations: 4 kB / 491.1 MB, free: 14.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.02886/0.451, allocations: 12.8 MB / 0.4921 GB, free: 1.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003877/0.4549, allocations: 3.346 MB / 0.4954 GB, free: 13.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003718/0.4586, allocations: 2.306 MB / 0.4977 GB, free: 11.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003012/0.4589, allocations: 81.59 kB / 0.4977 GB, free: 11.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.4603, allocations: 1.497 MB / 0.4992 GB, free: 9.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000773/0.4611, allocations: 0.7857 MB / 0.5 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000777/0.4619, allocations: 489.3 kB / 0.5004 GB, free: 8.488 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.462, allocations: 305.1 kB / 0.5007 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/0.4641, allocations: 1.286 MB / 0.502 GB, free: 6.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002538/0.4667, allocations: 1.937 MB / 0.5039 GB, free: 4.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004748/0.4714, allocations: 3.285 MB / 0.5071 GB, free: 1.141 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/0.4715, allocations: 4 kB / 0.5071 GB, free: 1.137 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007031/0.4785, allocations: 3.881 MB / 0.5109 GB, free: 13.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.4786, allocations: 12 kB / 0.5109 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.4786, allocations: 24.34 kB / 0.5109 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.48, allocations: 0.5499 MB / 0.5114 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/0.4825, allocations: 0.6513 MB / 0.5121 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005858/0.4884, allocations: 5.038 MB / 0.517 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.4908, allocations: 195.7 kB / 0.5172 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/0.4911, allocations: 112.4 kB / 0.5173 GB, free: 6.32 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.002069/0.4931, allocations: 1.098 MB / 0.5184 GB, free: 5.211 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006036/0.4937, allocations: 256.8 kB / 0.5186 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006484/0.5002, allocations: 3.632 MB / 0.5222 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.5003, allocations: 20 kB / 0.5222 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.709e-06/0.5003, allocations: 7.938 kB / 0.5222 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/0.5003, allocations: 11.95 kB / 0.5222 GB, free: 1.254 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.01637/0.5167, allocations: 9.307 MB / 0.5313 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.5167, allocations: 0 / 0.5313 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/0.5185, allocations: 427.5 kB / 0.5317 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.5202, allocations: 0.6761 MB / 0.5323 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/0.5204, allocations: 47.97 kB / 0.5324 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2508/0.7712, allocations: 8.145 MB / 0.5403 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003958/0.7752, allocations: 3.104 MB / 0.5434 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009459/0.7847, allocations: 5.366 MB / 0.5486 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/0.7865, allocations: 0.6385 MB / 0.5492 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003977/0.787, allocations: 47.06 kB / 0.5493 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.7884, allocations: 139.6 kB / 0.5494 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000512/0.7889, allocations: 195.4 kB / 0.5496 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.789, allocations: 66.61 kB / 0.5497 GB, free: 117.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002472/0.7915, allocations: 1.576 MB / 0.5512 GB, free: 117 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7915, allocations: 1.031 kB / 0.5512 GB, free: 117 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002354/0.7939, allocations: 0.7741 MB / 0.552 GB, free: 116.9 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.008841/0.8027, allocations: 6.4 MB / 0.5582 GB, free: 113.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005371/0.8082, allocations: 3.69 MB / 0.5618 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8082, allocations: 0 / 0.5618 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.8114, allocations: 2.254 MB / 0.564 GB, free: 108.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.8145, allocations: 0.6619 MB / 0.5647 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03734/0.8519, allocations: 26.42 MB / 0.5905 GB, free: 81.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001688/0.8536, allocations: 2.381 MB / 0.5928 GB, free: 79.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.8555, allocations: 0.6108 MB / 0.5934 GB, free: 78.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/0.8571, allocations: 1.351 MB / 0.5947 GB, free: 77.04 MB / 462.1 MB Notification: Performance of SimCode: time 1.011e-06/0.8571, allocations: 0 / 0.5947 GB, free: 77.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/0.9667, allocations: 71.84 MB / 0.6649 GB, free: 5.594 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.55/19.52, allocations: 3.75 kB / 0.6649 GB, free: 5.59 MB / 462.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