Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, 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.001539/0.00154, allocations: 202 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.467/1.467, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002002/0.002002, allocations: 59.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2759, allocations: 50.55 MB / 409.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002495/0.2785, allocations: 1.348 MB / 410.4 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000767/0.2792, allocations: 349.3 kB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.805e-05/0.2793, allocations: 0 / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.2793, allocations: 4 kB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.054e-05/0.2794, allocations: 3.938 kB / 410.8 MB, free: 15.71 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.0004949/0.2799, allocations: 91.64 kB / 410.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.636e-05/0.28, allocations: 15.94 kB / 410.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.28, allocations: 4 kB / 410.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.739e-05/0.2801, allocations: 15.92 kB / 410.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.238e-05/0.2801, allocations: 7.938 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.2801, allocations: 0 / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.2803, allocations: 87.91 kB / 411 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.2803, allocations: 7.922 kB / 411 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.191e-05/0.2804, allocations: 11.94 kB / 411 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.2806, allocations: 78.92 kB / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2806, allocations: 0 / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2806, allocations: 0 / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.2806, allocations: 0 / 411.1 MB, free: 15.39 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004432/0.281, allocations: 351.3 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2811, allocations: 12.03 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.646e-05/0.2812, allocations: 30.75 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.2812, allocations: 0.9375 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.2814, allocations: 172.3 kB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.2814, allocations: 8.312 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.2814, allocations: 384 / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.532e-05/0.2815, allocations: 42.19 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.2815, allocations: 3.938 kB / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.2815, allocations: 0 / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2815, allocations: 4 kB / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.973e-05/0.2816, allocations: 15.97 kB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003953/0.282, allocations: 249 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.437e-05/0.282, allocations: 30.52 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.899e-05/0.2821, allocations: 12.86 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.2821, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/0.2823, allocations: 55.41 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2823, allocations: 0 / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001793/0.2824, allocations: 57.62 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2825, allocations: 55.34 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.859e-05/0.2826, allocations: 109.8 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.2826, allocations: 25.7 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.2827, allocations: 84.14 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.401e-05/0.2827, allocations: 15.89 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.2827, allocations: 13.72 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2829, allocations: 322.8 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.197e-05/0.2829, allocations: 7.938 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.2829, allocations: 17.72 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.34e-05/0.283, allocations: 33.64 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.283, allocations: 4.375 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.374e-05/0.2831, allocations: 57.62 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.2831, allocations: 4 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2831, allocations: 0 / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2831, allocations: 4 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.648e-05/0.2832, allocations: 8 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2832, allocations: 0 / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.2833, allocations: 11.89 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2833, allocations: 4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 8.984e-05/0.2834, allocations: 125.7 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.2834, allocations: 0 / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.2834, allocations: 7.906 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2834, allocations: 0 / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2834, allocations: 0 / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2834, allocations: 4 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.2837, allocations: 282.6 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2837, allocations: 0 / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-05/0.2837, allocations: 4 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2837, allocations: 0 / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.2837, allocations: 4 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.2837, allocations: 0 / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2838, allocations: 3.938 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.2839, allocations: 151.8 kB / 413.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.2839, allocations: 81.06 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.284, allocations: 7.984 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.127e-05/0.284, allocations: 0 / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.117e-05/0.284, allocations: 0 / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.2841, allocations: 4 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.274e-05/0.2841, allocations: 91.22 kB / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2841, allocations: 0 / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000265/0.2844, allocations: 23.92 kB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007991/0.2852, allocations: 0.7772 MB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.2853, allocations: 19.98 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2853, allocations: 0 / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.2854, allocations: 11.94 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.2856, allocations: 12.05 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2867, allocations: 1.219 MB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.2871, allocations: 0.6807 MB / 416.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.468e-05/0.2871, allocations: 4 kB / 416.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.932e-05/0.2871, allocations: 7.438 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2871, allocations: 0 / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.3102, allocations: 1.943 MB / 418.3 MB, free: 7.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/8.528, allocations: 15.53 kB / 418.3 MB, free: 7.762 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator_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_ImpureGenerator.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1)