Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001316/0.001317, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 202 kB / 18.74 MB, free: 4.289 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.618/1.618, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.00202/0.00202, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3426, allocations: 50.55 MB / 409.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002762/0.3454, allocations: 1.493 MB / 410.5 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.3466, allocations: 0.5638 MB / 411.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.679e-05/0.3467, allocations: 0 / 411.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.296e-05/0.3468, allocations: 11.88 kB / 411.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.4e-05/0.3469, allocations: 27.78 kB / 411.1 MB, free: 15.43 MB / 334.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.000522/0.3474, allocations: 139.5 kB / 411.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.3476, allocations: 111.7 kB / 411.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.778e-05/0.3476, allocations: 9.125 kB / 411.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.165e-05/0.3477, allocations: 47.83 kB / 411.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005695/0.3483, allocations: 76.77 kB / 411.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.3483, allocations: 15.94 kB / 411.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.3485, allocations: 107.8 kB / 411.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.733e-05/0.3486, allocations: 35.84 kB / 411.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.729e-05/0.3487, allocations: 59.66 kB / 411.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.349, allocations: 202.4 kB / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.349, allocations: 0 / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.349, allocations: 0 / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.349, allocations: 0 / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006987/0.3498, allocations: 470.5 kB / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3498, allocations: 8.031 kB / 412.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.521e-05/0.3499, allocations: 38.75 kB / 412.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.3502, allocations: 40.81 kB / 412.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/0.3504, allocations: 196.2 kB / 412.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3504, allocations: 4.375 kB / 412.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.3505, allocations: 12.36 kB / 412.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.3507, allocations: 127.2 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3507, allocations: 0 / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3507, allocations: 0 / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3507, allocations: 4 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.3509, allocations: 59.95 kB / 412.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000661/0.3516, allocations: 448.7 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.3519, allocations: 129.2 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.352, allocations: 61.73 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.3521, allocations: 4 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.3523, allocations: 137.1 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.303e-06/0.3523, allocations: 0 / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005265/0.3529, allocations: 237.5 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.3529, allocations: 93.09 kB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.3531, allocations: 178.3 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/0.3532, allocations: 49.69 kB / 414.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.3533, allocations: 108.4 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.3533, allocations: 43.69 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.451e-05/0.3534, allocations: 53.92 kB / 414.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3536, allocations: 334.8 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.3538, allocations: 96.47 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.354, allocations: 131.5 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.3543, allocations: 206.9 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3543, allocations: 3.938 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000497/0.3549, allocations: 297.4 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3549, allocations: 8 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3549, allocations: 0 / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.3549, allocations: 0 / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.3551, allocations: 27.92 kB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.3551, allocations: 7.984 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.263e-05/0.3552, allocations: 15.89 kB / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.3552, allocations: 12 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.3553, allocations: 157.8 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.3554, allocations: 15.91 kB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.3554, allocations: 13.39 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3554, allocations: 4 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3554, allocations: 0 / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3554, allocations: 3.938 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3556, allocations: 209.6 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3557, allocations: 0 / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.3557, allocations: 19.86 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.3557, allocations: 8 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3557, allocations: 0 / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3557, allocations: 0 / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3557, allocations: 0 / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.3561, allocations: 221.7 kB / 416.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.131e-05/0.3562, allocations: 93.02 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.3562, allocations: 15.98 kB / 416.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.399e-05/0.3563, allocations: 4 kB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.3563, allocations: 11.92 kB / 416.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.3564, allocations: 7.984 kB / 416.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.3565, allocations: 128.2 kB / 416.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3565, allocations: 3.938 kB / 416.4 MB, free: 9.781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.3568, allocations: 43.94 kB / 416.4 MB, free: 9.738 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/0.3579, allocations: 0.9121 MB / 417.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.3583, allocations: 187.8 kB / 417.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3584, allocations: 0 / 417.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.3585, allocations: 64.03 kB / 417.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.3587, allocations: 22.58 kB / 417.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.3612, allocations: 2.105 MB / 419.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.3616, allocations: 0.7078 MB / 420.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.859e-05/0.3617, allocations: 16.88 kB / 420.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.28e-05/0.3617, allocations: 35.42 kB / 420.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3617, allocations: 0 / 420.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.3862, allocations: 3.639 MB / 424.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.554/8.94, allocations: 11.55 kB / 424.1 MB, free: 2.012 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1)