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.001607/0.001607, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 59.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3105, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01601/0.3266, allocations: 13.69 MB / 422.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.3384, allocations: 5.365 MB / 427.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002758/0.3412, allocations: 75.69 kB / 428 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.3444, allocations: 0.97 MB / 428.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.3489, allocations: 1.161 MB / 430.1 MB, free: 12.11 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.002868/0.3518, allocations: 0.9789 MB / 431.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006341/0.3582, allocations: 4.338 MB / 435.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004464/0.3627, allocations: 3.17 MB / 438.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00342/0.3661, allocations: 1.9 MB / 440.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004319/0.3705, allocations: 2.323 MB / 442.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.3719, allocations: 0.5664 MB / 443.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/0.3742, allocations: 0.8667 MB / 444.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.376, allocations: 1.418 MB / 445.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004079/0.3801, allocations: 2.287 MB / 447.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.3908, allocations: 7.541 MB / 455.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3909, allocations: 0 / 455.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3909, allocations: 0 / 455.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000238/0.3911, allocations: 4 kB / 455.5 MB, free: 2.578 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.01495/0.4061, allocations: 4.495 MB / 460 MB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.4062, allocations: 12.03 kB / 460 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00105/0.4072, allocations: 447 kB / 460.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/0.4091, allocations: 486.2 kB / 460.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005496/0.4146, allocations: 2.488 MB / 463.4 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004128/0.415, allocations: 339.3 kB / 463.7 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007134/0.4158, allocations: 315.9 kB / 464 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009581/0.4254, allocations: 4.254 MB / 468.3 MB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/0.4255, allocations: 15.89 kB / 468.3 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003438/0.4259, allocations: 120 kB / 468.4 MB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/0.426, allocations: 150.1 kB / 468.6 MB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008451/0.4345, allocations: 3.834 MB / 472.4 MB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02816/0.4627, allocations: 14.08 MB / 486.5 MB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004024/0.4668, allocations: 2.138 MB / 488.6 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002569/0.4694, allocations: 1.263 MB / 489.9 MB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003671/0.4698, allocations: 216.2 kB / 490.1 MB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002513/0.4723, allocations: 1.299 MB / 491.4 MB, free: 13.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 4.007e-06/0.4723, allocations: 0 / 491.4 MB, free: 13.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.03305/0.5054, allocations: 12.88 MB / 0.4925 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004417/0.5098, allocations: 3.346 MB / 0.4957 GB, free: 13.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004001/0.5139, allocations: 2.307 MB / 0.498 GB, free: 11.06 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005102/0.5144, allocations: 77.7 kB / 0.4981 GB, free: 10.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.5161, allocations: 1.536 MB / 0.4996 GB, free: 9.422 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/0.5175, allocations: 0.8212 MB / 0.5004 GB, free: 8.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009817/0.5185, allocations: 493.4 kB / 0.5008 GB, free: 8.105 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.5186, allocations: 305.7 kB / 0.5011 GB, free: 7.805 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002636/0.5213, allocations: 1.29 MB / 0.5024 GB, free: 6.512 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003094/0.5244, allocations: 1.933 MB / 0.5043 GB, free: 4.316 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006386/0.5308, allocations: 3.281 MB / 0.5075 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.67e-05/0.5309, allocations: 4 kB / 0.5075 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01281/0.5437, allocations: 3.898 MB / 0.5113 GB, free: 12.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.012e-05/0.5438, allocations: 12 kB / 0.5113 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-05/0.5439, allocations: 23.94 kB / 0.5113 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/0.5462, allocations: 0.5541 MB / 0.5119 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00468/0.5509, allocations: 0.6552 MB / 0.5125 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.5623, allocations: 5.045 MB / 0.5174 GB, free: 6.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004363/0.5668, allocations: 195.9 kB / 0.5176 GB, free: 6.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006201/0.5674, allocations: 108 kB / 0.5177 GB, free: 5.918 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.004001/0.5714, allocations: 1.082 MB / 0.5188 GB, free: 4.824 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/0.5727, allocations: 270.3 kB / 0.519 GB, free: 4.559 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/0.5859, allocations: 3.632 MB / 0.5226 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.221e-05/0.586, allocations: 20 kB / 0.5226 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.586, allocations: 4 kB / 0.5226 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.566e-05/0.5861, allocations: 15.95 kB / 0.5226 GB, free: 0.8555 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.02853/0.6146, allocations: 9.315 MB / 0.5317 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.6147, allocations: 0 / 0.5317 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/0.6167, allocations: 423.3 kB / 0.5321 GB, free: 6.969 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.6185, allocations: 0.6826 MB / 0.5328 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000221/0.6188, allocations: 51.97 kB / 0.5328 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2178/0.8366, allocations: 8.136 MB / 0.5408 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002999/0.8397, allocations: 3.119 MB / 0.5438 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007547/0.8472, allocations: 5.376 MB / 0.5491 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.8485, allocations: 0.647 MB / 0.5497 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004546/0.8489, allocations: 52.75 kB / 0.5497 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.8503, allocations: 148.4 kB / 0.5499 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004361/0.8508, allocations: 188.1 kB / 0.5501 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.8509, allocations: 71.39 kB / 0.5501 GB, free: 116.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002155/0.8531, allocations: 1.567 MB / 0.5517 GB, free: 116.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8531, allocations: 0 / 0.5517 GB, free: 116.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002319/0.8554, allocations: 0.7765 MB / 0.5524 GB, free: 116.1 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.009301/0.8647, allocations: 6.411 MB / 0.5587 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005722/0.8705, allocations: 3.69 MB / 0.5623 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.8706, allocations: 0 / 0.5623 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003232/0.8738, allocations: 2.257 MB / 0.5645 GB, free: 107.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/0.8768, allocations: 0.6637 MB / 0.5651 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/0.9114, allocations: 26.54 MB / 0.5911 GB, free: 80.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.9129, allocations: 2.381 MB / 0.5934 GB, free: 77.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001651/0.9146, allocations: 0.6147 MB / 0.594 GB, free: 77.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/0.916, allocations: 1.354 MB / 0.5953 GB, free: 75.87 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.916, allocations: 0 / 0.5953 GB, free: 75.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1431/1.059, allocations: 70.85 MB / 0.6645 GB, free: 5.422 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.98/21.04, allocations: 3.984 kB / 0.6645 GB, free: 5.418 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.1.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