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.001472/0.001472, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 202 kB / 18.73 MB, free: 4.312 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.461/1.461, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001945/0.001945, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2931, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ActuatorWithNoise): time 0.01775/0.3109, allocations: 13.69 MB / 422.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.3243, allocations: 5.365 MB / 428.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003388/0.3278, allocations: 79.62 kB / 428.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00352/0.3313, allocations: 0.966 MB / 429.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005091/0.3365, allocations: 1.158 MB / 430.3 MB, free: 12.01 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.003159/0.3397, allocations: 0.9819 MB / 431.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006903/0.3466, allocations: 4.331 MB / 435.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005146/0.3518, allocations: 3.178 MB / 438.8 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003914/0.3557, allocations: 1.893 MB / 440.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004762/0.3605, allocations: 2.331 MB / 443 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001595/0.3621, allocations: 0.5703 MB / 443.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.3646, allocations: 0.8668 MB / 444.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001993/0.3666, allocations: 1.418 MB / 445.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003544/0.3701, allocations: 2.283 MB / 448.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.3814, allocations: 7.537 MB / 455.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.259e-05/0.3814, allocations: 11.92 kB / 455.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3815, allocations: 0 / 455.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002772/0.3817, allocations: 0 / 455.7 MB, free: 2.469 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.01347/0.3952, allocations: 4.492 MB / 460.2 MB, free: 13.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3953, allocations: 12.03 kB / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001116/0.3964, allocations: 447 kB / 460.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/0.3983, allocations: 478.2 kB / 461.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005413/0.4037, allocations: 2.5 MB / 463.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004442/0.4042, allocations: 335.3 kB / 464 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008603/0.4051, allocations: 315.9 kB / 464.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009416/0.4145, allocations: 4.257 MB / 468.5 MB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.4147, allocations: 11.95 kB / 468.5 MB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/0.415, allocations: 128 kB / 468.7 MB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.4152, allocations: 146.1 kB / 468.8 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00877/0.424, allocations: 3.834 MB / 472.6 MB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02881/0.4528, allocations: 14.08 MB / 486.7 MB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004013/0.4569, allocations: 2.135 MB / 488.9 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002665/0.4596, allocations: 1.255 MB / 490.1 MB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004117/0.46, allocations: 220.2 kB / 490.3 MB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002852/0.4629, allocations: 1.302 MB / 491.6 MB, free: 13.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=186): time 5.38e-06/0.4629, allocations: 0 / 491.6 MB, free: 13.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=234): time 0.03377/0.4967, allocations: 12.88 MB / 0.4927 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004371/0.5011, allocations: 3.35 MB / 0.496 GB, free: 13.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004203/0.5054, allocations: 2.307 MB / 0.4982 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005041/0.5059, allocations: 77.69 kB / 0.4983 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001608/0.5075, allocations: 1.54 MB / 0.4998 GB, free: 9.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/0.5088, allocations: 0.8212 MB / 0.5006 GB, free: 8.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009686/0.5098, allocations: 493.5 kB / 0.5011 GB, free: 8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.51, allocations: 309 kB / 0.5014 GB, free: 7.695 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002522/0.5125, allocations: 1.286 MB / 0.5026 GB, free: 6.406 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003318/0.5158, allocations: 1.929 MB / 0.5045 GB, free: 4.215 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006303/0.5222, allocations: 3.288 MB / 0.5077 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.017e-05/0.5222, allocations: 4 kB / 0.5077 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008901/0.5312, allocations: 3.89 MB / 0.5115 GB, free: 12.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.5312, allocations: 20.03 kB / 0.5115 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/0.5313, allocations: 16 kB / 0.5115 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.5328, allocations: 0.5421 MB / 0.5121 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003008/0.5358, allocations: 0.6513 MB / 0.5127 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00688/0.5427, allocations: 5.054 MB / 0.5176 GB, free: 6.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/0.5456, allocations: 203.8 kB / 0.5178 GB, free: 5.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004753/0.5461, allocations: 104.5 kB / 0.5179 GB, free: 5.82 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.002872/0.549, allocations: 1.09 MB / 0.519 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.5501, allocations: 270.3 kB / 0.5193 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008314/0.5584, allocations: 3.636 MB / 0.5228 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.54e-05/0.5585, allocations: 24 kB / 0.5228 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.5586, allocations: 3.938 kB / 0.5228 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.284e-05/0.5586, allocations: 11.95 kB / 0.5228 GB, free: 0.7461 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.02091/0.5795, allocations: 9.307 MB / 0.5319 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/0.5796, allocations: 0 / 0.5319 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/0.5817, allocations: 427.5 kB / 0.5323 GB, free: 6.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/0.5837, allocations: 0.6821 MB / 0.533 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004644/0.5842, allocations: 51.97 kB / 0.5331 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2648/0.849, allocations: 8.13 MB / 0.541 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003437/0.8525, allocations: 3.113 MB / 0.544 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008487/0.861, allocations: 5.388 MB / 0.5493 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.8623, allocations: 0.6459 MB / 0.5499 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000456/0.8628, allocations: 47.56 kB / 0.55 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.8643, allocations: 142.2 kB / 0.5501 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/0.8647, allocations: 193.6 kB / 0.5503 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.8649, allocations: 68.77 kB / 0.5504 GB, free: 116.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.8671, allocations: 1.573 MB / 0.5519 GB, free: 116 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8671, allocations: 0.5625 kB / 0.5519 GB, free: 116 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00257/0.8697, allocations: 0.7728 MB / 0.5527 GB, free: 115.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.01021/0.8799, allocations: 6.42 MB / 0.5589 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005932/0.8859, allocations: 3.687 MB / 0.5625 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.8859, allocations: 0 / 0.5625 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003542/0.8895, allocations: 2.269 MB / 0.5647 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003852/0.8933, allocations: 0.6587 MB / 0.5654 GB, free: 106.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04083/0.9342, allocations: 26.54 MB / 0.5913 GB, free: 80.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/0.9361, allocations: 2.385 MB / 0.5936 GB, free: 77.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002108/0.9382, allocations: 0.6069 MB / 0.5942 GB, free: 77.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001925/0.9401, allocations: 1.358 MB / 0.5956 GB, free: 75.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9402, allocations: 0 / 0.5956 GB, free: 75.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1156/1.056, allocations: 70.87 MB / 0.6648 GB, free: 5.391 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.87/19.92, allocations: 3.266 kB / 0.6648 GB, free: 5.391 MB / 462.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)