Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.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.Distributions,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 122.2 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.001298/0.001298, allocations: 201.2 kB / 18.74 MB, free: 4.332 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.457/1.457, allocations: 227.7 MB / 247.2 MB, free: 10.22 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.001982/0.001982, allocations: 55.91 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2659, allocations: 50.55 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002611/0.2686, allocations: 1.547 MB / 410.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.271, allocations: 1.479 MB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.897e-05/0.2711, allocations: 0 / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.629e-05/0.2712, allocations: 15.8 kB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.236e-05/0.2713, allocations: 23.8 kB / 412.1 MB, free: 14.32 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.000965/0.2723, allocations: 390.8 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.2724, allocations: 135.5 kB / 412.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.884e-05/0.2725, allocations: 13.48 kB / 412.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.264e-05/0.2726, allocations: 51.78 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005569/0.2731, allocations: 81.58 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.2732, allocations: 12 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006523/0.2738, allocations: 419.3 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.863e-05/0.2739, allocations: 35.8 kB / 413.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.274, allocations: 71.58 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005892/0.2746, allocations: 401.8 kB / 413.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2746, allocations: 4 kB / 413.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2746, allocations: 0 / 413.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2746, allocations: 0 / 413.7 MB, free: 12.73 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008058/0.2754, allocations: 0.5174 MB / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.2755, allocations: 12.03 kB / 414.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.278e-05/0.2756, allocations: 46.67 kB / 414.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.2758, allocations: 28.83 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.276, allocations: 205 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.276, allocations: 16.33 kB / 414.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.276, allocations: 15.94 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/0.2763, allocations: 136.1 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2763, allocations: 0 / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2764, allocations: 4 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2764, allocations: 0 / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.2766, allocations: 67.89 kB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007724/0.2774, allocations: 0.5555 MB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.2777, allocations: 148 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.2779, allocations: 66.55 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.2779, allocations: 7.875 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.2782, allocations: 149.9 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.2782, allocations: 0 / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000612/0.2788, allocations: 253.4 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.2789, allocations: 118.8 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.2791, allocations: 195.9 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.2792, allocations: 53.81 kB / 416.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.2793, allocations: 116.5 kB / 416.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.57e-05/0.2793, allocations: 43.67 kB / 416.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.2794, allocations: 57.64 kB / 416.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.2796, allocations: 334.8 kB / 416.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.2798, allocations: 95.94 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.2801, allocations: 136.3 kB / 417 MB, free: 9.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.2804, allocations: 223.7 kB / 417.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2805, allocations: 0 / 417.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005337/0.281, allocations: 305.4 kB / 417.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.281, allocations: 4 kB / 417.6 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.281, allocations: 4 kB / 417.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2811, allocations: 3.938 kB / 417.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.2812, allocations: 35.91 kB / 417.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.361e-06/0.2812, allocations: 3.938 kB / 417.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.099e-05/0.2813, allocations: 31.77 kB / 417.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.2814, allocations: 12.09 kB / 417.7 MB, free: 8.465 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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.0001504/0.2815, allocations: 145.9 kB / 417.8 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.2816, allocations: 15.91 kB / 417.8 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.2816, allocations: 25.33 kB / 417.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2816, allocations: 3.938 kB / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2816, allocations: 0 / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.2816, allocations: 4 kB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.2819, allocations: 213.5 kB / 418.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2819, allocations: 4 kB / 418.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.712e-05/0.2819, allocations: 11.98 kB / 418.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2819, allocations: 4 kB / 418.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.282, allocations: 0 / 418.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.282, allocations: 11.92 kB / 418.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.282, allocations: 4.469 kB / 418.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.2824, allocations: 242.5 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.2825, allocations: 92.95 kB / 418.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.2825, allocations: 11.98 kB / 418.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.685e-05/0.2826, allocations: 11.94 kB / 418.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/0.2826, allocations: 15.97 kB / 418.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2827, allocations: 4 kB / 418.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.2828, allocations: 137.2 kB / 418.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2828, allocations: 4 kB / 418.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003852/0.2832, allocations: 119.7 kB / 418.7 MB, free: 7.297 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.001565/0.2848, allocations: 1.075 MB / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004402/0.2852, allocations: 207.6 kB / 420 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2852, allocations: 0 / 420 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.2854, allocations: 67.91 kB / 420.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.2856, allocations: 8 kB / 420.1 MB, free: 5.945 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.2885, allocations: 2.335 MB / 422.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.2889, allocations: 0.7123 MB / 423.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.93e-05/0.289, allocations: 25.41 kB / 423.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.695e-05/0.2891, allocations: 51.42 kB / 423.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2891, allocations: 0 / 423.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3157, allocations: 5.521 MB / 428.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.445/8.761, allocations: 11.45 kB / 428.7 MB, free: 13.26 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1)