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.001295/0.001295, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 199.8 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2959, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01735/0.3133, allocations: 13.69 MB / 422.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.3256, allocations: 5.362 MB / 427.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002774/0.3284, allocations: 79.69 kB / 427.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002728/0.3312, allocations: 0.9621 MB / 428.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.3353, allocations: 1.165 MB / 430 MB, free: 12.18 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.002548/0.3378, allocations: 0.9783 MB / 431 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006532/0.3444, allocations: 4.331 MB / 435.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004974/0.3494, allocations: 3.174 MB / 438.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003642/0.353, allocations: 1.897 MB / 440.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004444/0.3575, allocations: 2.328 MB / 442.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/0.3589, allocations: 0.5742 MB / 443.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.361, allocations: 0.8628 MB / 444.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.3625, allocations: 1.414 MB / 445.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003019/0.3655, allocations: 2.283 MB / 447.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009665/0.3752, allocations: 7.549 MB / 455.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3753, allocations: 0 / 455.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3753, allocations: 0 / 455.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001719/0.3755, allocations: 0 / 455.4 MB, free: 2.648 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.01227/0.3877, allocations: 4.499 MB / 459.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.3878, allocations: 8.031 kB / 459.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008079/0.3886, allocations: 447 kB / 460.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.3902, allocations: 486.2 kB / 460.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004867/0.3951, allocations: 2.488 MB / 463.3 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/0.3956, allocations: 339.3 kB / 463.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005999/0.3962, allocations: 315.9 kB / 464 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008169/0.4043, allocations: 4.254 MB / 468.2 MB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-05/0.4045, allocations: 11.89 kB / 468.2 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003282/0.4048, allocations: 140 kB / 468.4 MB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.405, allocations: 146.1 kB / 468.5 MB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007405/0.4124, allocations: 3.826 MB / 472.3 MB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02602/0.4384, allocations: 14.08 MB / 486.4 MB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003679/0.4422, allocations: 2.142 MB / 488.5 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002335/0.4445, allocations: 1.259 MB / 489.8 MB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003703/0.4449, allocations: 220.2 kB / 490 MB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002374/0.4473, allocations: 1.303 MB / 491.3 MB, free: 13.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 3.697e-06/0.4473, allocations: 0 / 491.3 MB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.02984/0.4772, allocations: 12.87 MB / 0.4924 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004258/0.4814, allocations: 3.342 MB / 0.4956 GB, free: 13.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.4853, allocations: 2.314 MB / 0.4979 GB, free: 11.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004292/0.4858, allocations: 69.7 kB / 0.498 GB, free: 11.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/0.4873, allocations: 1.54 MB / 0.4995 GB, free: 9.492 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009602/0.4883, allocations: 0.8328 MB / 0.5003 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008189/0.4891, allocations: 485.5 kB / 0.5007 GB, free: 8.172 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4892, allocations: 309 kB / 0.501 GB, free: 7.867 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002386/0.4916, allocations: 1.286 MB / 0.5023 GB, free: 6.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/0.4946, allocations: 1.933 MB / 0.5042 GB, free: 4.383 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00531/0.4999, allocations: 3.281 MB / 0.5074 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-05/0.5, allocations: 8 kB / 0.5074 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00749/0.5075, allocations: 3.89 MB / 0.5112 GB, free: 12.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.5076, allocations: 16 kB / 0.5112 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.834e-05/0.5076, allocations: 16 kB / 0.5112 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.509, allocations: 0.5576 MB / 0.5118 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/0.5117, allocations: 0.6552 MB / 0.5124 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/0.5182, allocations: 5.049 MB / 0.5173 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.5207, allocations: 191.8 kB / 0.5175 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/0.521, allocations: 116 kB / 0.5176 GB, free: 5.98 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.002118/0.5231, allocations: 1.086 MB / 0.5187 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005656/0.5237, allocations: 274.2 kB / 0.519 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007038/0.5307, allocations: 3.628 MB / 0.5225 GB, free: 0.957 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.5308, allocations: 27.98 kB / 0.5225 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.5308, allocations: 4 kB / 0.5225 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/0.5308, allocations: 7.969 kB / 0.5225 GB, free: 0.918 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.01706/0.5479, allocations: 9.303 MB / 0.5316 GB, free: 7.457 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.5479, allocations: 4 kB / 0.5316 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/0.5499, allocations: 423.5 kB / 0.532 GB, free: 7.039 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/0.5517, allocations: 0.6824 MB / 0.5327 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.5519, allocations: 51.97 kB / 0.5327 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2323/0.7842, allocations: 8.141 MB / 0.5407 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003784/0.788, allocations: 3.118 MB / 0.5437 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009811/0.7979, allocations: 5.381 MB / 0.549 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.7997, allocations: 0.6438 MB / 0.5496 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005307/0.8002, allocations: 53.55 kB / 0.5497 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.8017, allocations: 142.5 kB / 0.5498 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005313/0.8022, allocations: 196.7 kB / 0.55 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.8024, allocations: 70.72 kB / 0.5501 GB, free: 116.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002421/0.8048, allocations: 1.57 MB / 0.5516 GB, free: 116.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8048, allocations: 0 / 0.5516 GB, free: 116.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002283/0.8071, allocations: 0.7675 MB / 0.5523 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.009093/0.8162, allocations: 6.409 MB / 0.5586 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005129/0.8214, allocations: 3.691 MB / 0.5622 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8214, allocations: 0 / 0.5622 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.8243, allocations: 2.263 MB / 0.5644 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.002809/0.8272, allocations: 0.6597 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.03535/0.8625, allocations: 26.54 MB / 0.591 GB, free: 80.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.8642, allocations: 2.393 MB / 0.5933 GB, free: 77.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001756/0.8659, allocations: 0.5991 MB / 0.5939 GB, free: 77.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/0.8674, allocations: 1.354 MB / 0.5952 GB, free: 75.93 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/0.8674, allocations: 3.719 kB / 0.5952 GB, free: 75.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.112/0.9794, allocations: 70.86 MB / 0.6644 GB, free: 5.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.78/19.76, allocations: 0 / 0.6644 GB, free: 5.473 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.ActuatorWithNoise_res.csv --start-time 0 --stop-time 8 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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