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.001524/0.001524, 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.001727/0.001727, 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.437/1.437, 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.002213/0.002213, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2554, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002699/0.2582, allocations: 1.485 MB / 410.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2594, allocations: 0.5753 MB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.498e-05/0.2594, allocations: 0 / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.439e-05/0.2595, allocations: 7.875 kB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.625e-05/0.2596, allocations: 23.8 kB / 411.2 MB, free: 15.27 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.0005363/0.2602, allocations: 143.6 kB / 411.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.2603, allocations: 115.6 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.359e-05/0.2604, allocations: 17.09 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.924e-05/0.2605, allocations: 47.83 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.261, allocations: 66.56 kB / 411.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.2611, allocations: 8 kB / 411.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002217/0.2613, allocations: 111.8 kB / 411.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.583e-05/0.2614, allocations: 35.86 kB / 411.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.463e-05/0.2615, allocations: 59.64 kB / 411.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.2618, allocations: 194.5 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2618, allocations: 0 / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2618, allocations: 3.938 kB / 412 MB, free: 14.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.2618, allocations: 0 / 412 MB, free: 14.49 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.0006513/0.2625, allocations: 466.4 kB / 412.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2625, allocations: 12.03 kB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.747e-05/0.2626, allocations: 38.73 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.2629, allocations: 40.83 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.2631, allocations: 204.1 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.2631, allocations: 4.375 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.2631, allocations: 8.375 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.2634, allocations: 119.2 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2634, allocations: 0 / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.2634, allocations: 4 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2634, allocations: 4 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.2636, allocations: 55.95 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006922/0.2643, allocations: 456.7 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.2646, allocations: 125.2 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2648, allocations: 57.84 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.2648, allocations: 7.938 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.2651, allocations: 144.1 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.333e-06/0.2651, allocations: 0 / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005707/0.2656, allocations: 237.7 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/0.2657, allocations: 93.17 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.2659, allocations: 182.3 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.266, allocations: 45.62 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.16e-05/0.2661, allocations: 112.5 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.2661, allocations: 39.69 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.275e-05/0.2662, allocations: 57.92 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2664, allocations: 334.8 kB / 414.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.2666, allocations: 96.47 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.2668, allocations: 135.5 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.2672, allocations: 202.9 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2672, allocations: 0 / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005149/0.2677, allocations: 297.4 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2678, allocations: 4 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2678, allocations: 0 / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2678, allocations: 8.078 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.268, allocations: 27.92 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.892e-06/0.268, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.2681, allocations: 27.81 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2681, allocations: 4 kB / 415.5 MB, free: 10.63 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.0001561/0.2682, allocations: 153.8 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.2683, allocations: 11.91 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.2683, allocations: 21.33 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2683, allocations: 0 / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2683, allocations: 4 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.2683, allocations: 3.938 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.2686, allocations: 205.5 kB / 415.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2686, allocations: 3.938 kB / 415.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.49e-05/0.2686, allocations: 15.98 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2687, allocations: 0 / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.2687, allocations: 4 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.2687, allocations: 0 / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.2687, allocations: 3.938 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004416/0.2691, allocations: 225.7 kB / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.199e-05/0.2692, allocations: 97 kB / 416.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.2692, allocations: 8 kB / 416.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.463e-05/0.2693, allocations: 3.984 kB / 416.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.2694, allocations: 19.92 kB / 416.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.2694, allocations: 4 kB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.2695, allocations: 128.2 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2695, allocations: 0 / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.2698, allocations: 47.92 kB / 416.5 MB, free: 9.582 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.001206/0.271, allocations: 0.9076 MB / 417.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004135/0.2715, allocations: 188.2 kB / 417.6 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2715, allocations: 0 / 417.6 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.2716, allocations: 64.05 kB / 417.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.2718, allocations: 11.92 kB / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.2746, allocations: 2.113 MB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.2749, allocations: 0.7119 MB / 420.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.114e-05/0.275, allocations: 16.86 kB / 420.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.425e-05/0.2751, allocations: 43.42 kB / 420.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2751, allocations: 0 / 420.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.3038, allocations: 3.641 MB / 424.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.285/8.589, allocations: 8.875 kB / 424.2 MB, free: 1.855 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise_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_UniformNoise.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1)