Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_4_1_0-beta_om_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.001239/0.001239, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 199.5 kB / 18.79 MB, free: 4.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.437/1.437, allocations: 230.4 MB / 250 MB, free: 9.055 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 63.84 kB / 366.9 MB, free: 7.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3109, allocations: 53.31 MB / 420.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01834/0.3293, allocations: 13.76 MB / 433.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01337/0.3426, allocations: 5.389 MB / 439.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003546/0.3462, allocations: 75.69 kB / 439.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003957/0.3501, allocations: 1.029 MB / 440.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005454/0.3556, allocations: 1.217 MB / 441.6 MB, free: 2.738 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.003618/0.3592, allocations: 1.002 MB / 442.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008074/0.3673, allocations: 4.333 MB / 447 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004968/0.3722, allocations: 2.23 MB / 449.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004514/0.3768, allocations: 1.92 MB / 451.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005254/0.382, allocations: 2.37 MB / 453.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002018/0.384, allocations: 0.5703 MB / 454.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002956/0.387, allocations: 0.8862 MB / 454.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002502/0.3895, allocations: 1.426 MB / 456.4 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004471/0.394, allocations: 2.283 MB / 458.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/0.4062, allocations: 7.545 MB / 466.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.4062, allocations: 4 kB / 466.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4062, allocations: 0 / 466.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002849/0.4065, allocations: 3.938 kB / 466.2 MB, free: 10.03 MB / 382.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.01585/0.4223, allocations: 4.498 MB / 470.7 MB, free: 5.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.4224, allocations: 12.03 kB / 470.7 MB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001707/0.4241, allocations: 443 kB / 471.2 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002712/0.4268, allocations: 486.2 kB / 471.6 MB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00749/0.4343, allocations: 2.488 MB / 474.1 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007733/0.4351, allocations: 339.3 kB / 474.4 MB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/0.4369, allocations: 315.9 kB / 474.8 MB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.4512, allocations: 4.257 MB / 479 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/0.4515, allocations: 7.953 kB / 479 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/0.4527, allocations: 128 kB / 479.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/0.4529, allocations: 150.1 kB / 479.3 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.464, allocations: 3.83 MB / 483.1 MB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03543/0.4994, allocations: 14.08 MB / 497.2 MB, free: 10.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004622/0.5041, allocations: 2.021 MB / 499.2 MB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002898/0.5069, allocations: 1.189 MB / 0.4887 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004581/0.5074, allocations: 216.2 kB / 0.4889 GB, free: 6.871 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003451/0.5109, allocations: 1.302 MB / 0.4902 GB, free: 5.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 6.001e-06/0.5109, allocations: 4 kB / 0.4902 GB, free: 5.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.04096/0.5518, allocations: 12.85 MB / 0.5027 GB, free: 8.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004546/0.5564, allocations: 3.342 MB / 0.506 GB, free: 5.062 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004977/0.5613, allocations: 2.311 MB / 0.5082 GB, free: 2.723 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006018/0.5619, allocations: 81.69 kB / 0.5083 GB, free: 2.637 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001868/0.5638, allocations: 1.536 MB / 0.5098 GB, free: 1.082 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/0.5652, allocations: 0.8257 MB / 0.5106 GB, free: 256 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001463/0.5666, allocations: 489.5 kB / 0.5111 GB, free: 15.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.5668, allocations: 305.1 kB / 0.5114 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/0.5695, allocations: 1.286 MB / 0.5126 GB, free: 14.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003386/0.5729, allocations: 1.929 MB / 0.5145 GB, free: 11.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006411/0.5793, allocations: 3.288 MB / 0.5177 GB, free: 8.422 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.449e-05/0.5793, allocations: 4 kB / 0.5177 GB, free: 8.418 MB / 446.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009772/0.5891, allocations: 3.89 MB / 0.5215 GB, free: 4.465 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.5892, allocations: 12.34 kB / 0.5215 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-05/0.5892, allocations: 24 kB / 0.5216 GB, free: 4.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.5908, allocations: 0.5421 MB / 0.5221 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/0.594, allocations: 0.6474 MB / 0.5227 GB, free: 3.227 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007965/0.6019, allocations: 5.049 MB / 0.5277 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00309/0.605, allocations: 195.8 kB / 0.5279 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007175/0.6057, allocations: 115.9 kB / 0.528 GB, free: 13.59 MB / 462.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.003363/0.6091, allocations: 1.09 MB / 0.529 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/0.6105, allocations: 270.3 kB / 0.5293 GB, free: 12.22 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/0.621, allocations: 3.612 MB / 0.5328 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.848e-05/0.6211, allocations: 24 kB / 0.5328 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/0.6211, allocations: 4 kB / 0.5328 GB, free: 8.547 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.488e-05/0.6212, allocations: 11.95 kB / 0.5329 GB, free: 8.535 MB / 462.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.2926/0.9138, allocations: 9.276 MB / 0.5419 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.223e-05/0.9138, allocations: 2.094 kB / 0.5419 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003753/0.9176, allocations: 423.4 kB / 0.5423 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/0.9206, allocations: 0.6805 MB / 0.543 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006334/0.9213, allocations: 55.16 kB / 0.543 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/0.9342, allocations: 8.145 MB / 0.551 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004683/0.9389, allocations: 3.113 MB / 0.554 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/0.9545, allocations: 5.353 MB / 0.5593 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003532/0.958, allocations: 0.651 MB / 0.5599 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001962/0.96, allocations: 49.38 kB / 0.5599 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003875/0.9639, allocations: 145.4 kB / 0.5601 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001168/0.965, allocations: 191.5 kB / 0.5603 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003419/0.9654, allocations: 68.8 kB / 0.5603 GB, free: 103.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004985/0.9704, allocations: 1.569 MB / 0.5619 GB, free: 102.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.9704, allocations: 0 / 0.5619 GB, free: 102.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006804/0.9772, allocations: 0.7717 MB / 0.5626 GB, free: 102.7 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.01776/0.9949, allocations: 6.41 MB / 0.5689 GB, free: 98.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009183/1.004, allocations: 3.555 MB / 0.5723 GB, free: 94.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/1.004, allocations: 0 / 0.5723 GB, free: 94.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004496/1.009, allocations: 2.139 MB / 0.5744 GB, free: 92.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003092/1.012, allocations: 0.6625 MB / 0.5751 GB, free: 92.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04246/1.054, allocations: 26.54 MB / 0.601 GB, free: 64.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001972/1.056, allocations: 2.385 MB / 0.6033 GB, free: 62.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002326/1.058, allocations: 0.6147 MB / 0.6039 GB, free: 61.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002124/1.061, allocations: 1.351 MB / 0.6052 GB, free: 60.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.923e-06/1.061, allocations: 0 / 0.6052 GB, free: 60.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1266/1.187, allocations: 71.84 MB / 0.6754 GB, free: 5.078 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.87/20.06, allocations: 3.938 kB / 0.6754 GB, free: 5.074 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ActuatorWithNoise.pipe 2>&1)