Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005806/0.005806, allocations: 102 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 194.9 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1387/0.1387, allocations: 3.877 MB / 294.4 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.89 kB / 406.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2758, allocations: 50.19 MB / 456.6 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.00229/0.2782, allocations: 1.509 MB / 458.1 MB, free: 19.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2798, allocations: 1.11 MB / 459.2 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.073e-05/0.2799, allocations: 7.062 kB / 459.2 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.28, allocations: 15.09 kB / 459.2 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.569e-05/0.2801, allocations: 15.81 kB / 459.2 MB, free: 18.64 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.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.0007103/0.2808, allocations: 249.3 kB / 459.5 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.281, allocations: 162.4 kB / 459.7 MB, free: 18.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.565e-05/0.2811, allocations: 19.08 kB / 459.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.29e-05/0.2812, allocations: 56.67 kB / 459.7 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.888e-05/0.2813, allocations: 51.11 kB / 459.8 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.2813, allocations: 16.81 kB / 459.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.2816, allocations: 244.2 kB / 460 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.753e-05/0.2817, allocations: 25.38 kB / 460.1 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.16e-05/0.2817, allocations: 50.23 kB / 460.1 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.282, allocations: 280.4 kB / 460.4 MB, free: 18.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.282, allocations: 7.125 kB / 460.4 MB, free: 18.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2821, allocations: 0 / 460.4 MB, free: 18.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2821, allocations: 0 / 460.4 MB, free: 18.17 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001321/0.2834, allocations: 1.321 MB / 461.7 MB, free: 17.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.2835, allocations: 12.16 kB / 461.7 MB, free: 17.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.2835, allocations: 39.08 kB / 461.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003792/0.2839, allocations: 47.98 kB / 461.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.2841, allocations: 216.3 kB / 462 MB, free: 17.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2842, allocations: 3.562 kB / 462 MB, free: 17.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.2842, allocations: 17.59 kB / 462 MB, free: 17.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.2845, allocations: 166.6 kB / 462.2 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2846, allocations: 0 / 462.2 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2846, allocations: 7.578 kB / 462.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.2846, allocations: 0 / 462.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.2849, allocations: 134.9 kB / 462.3 MB, free: 17.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.2854, allocations: 354.4 kB / 462.7 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.2858, allocations: 212.5 kB / 462.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.2861, allocations: 187.5 kB / 463.1 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.2862, allocations: 0 / 463.1 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003648/0.2865, allocations: 304 kB / 463.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.2865, allocations: 0 / 463.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008852/0.2874, allocations: 462 kB / 463.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.2875, allocations: 93.25 kB / 463.9 MB, free: 16.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2876, allocations: 168.9 kB / 464.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.2876, allocations: 26.83 kB / 464.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.2877, allocations: 99.73 kB / 464.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.2877, allocations: 35.03 kB / 464.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.2878, allocations: 41.47 kB / 464.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.279e-05/0.2879, allocations: 329.3 kB / 464.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.2881, allocations: 92.83 kB / 464.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.2883, allocations: 97.22 kB / 464.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.2887, allocations: 273.9 kB / 465.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2887, allocations: 3.938 kB / 465.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005254/0.2892, allocations: 299.5 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.2893, allocations: 48.14 kB / 465.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2893, allocations: 5.562 kB / 465.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2893, allocations: 5 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.2895, allocations: 22.11 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2895, allocations: 0 / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.062e-05/0.2896, allocations: 24.09 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/0.2896, allocations: 19.14 kB / 465.5 MB, free: 15.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001462/0.2898, allocations: 190.2 kB / 465.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.605e-05/0.2899, allocations: 18.06 kB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.2899, allocations: 12.78 kB / 465.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2899, allocations: 0 / 465.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2899, allocations: 1.25 kB / 465.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2899, allocations: 0.7031 kB / 465.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.2901, allocations: 222.9 kB / 465.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2901, allocations: 0.75 kB / 465.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.903e-05/0.2902, allocations: 17.77 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2902, allocations: 0 / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.2903, allocations: 11.83 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2903, allocations: 5.578 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2903, allocations: 0 / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2913, allocations: 0.5703 MB / 466.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.2914, allocations: 92.42 kB / 466.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.2914, allocations: 19.11 kB / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.2915, allocations: 16.02 kB / 466.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.2916, allocations: 11.72 kB / 466.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.671e-05/0.2916, allocations: 26.3 kB / 466.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.562e-05/0.2917, allocations: 116.4 kB / 466.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2917, allocations: 0 / 466.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.2921, allocations: 85.83 kB / 466.9 MB, free: 14.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001637/0.2937, allocations: 1.272 MB / 468.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007184/0.2945, allocations: 445.9 kB / 468.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2945, allocations: 0 / 468.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003966/0.2949, allocations: 359.2 kB / 468.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.2951, allocations: 17.69 kB / 468.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/0.298, allocations: 2.226 MB / 471.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.2982, allocations: 0.7126 MB / 471.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.424e-05/0.2983, allocations: 11.42 kB / 471.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.2983, allocations: 37.17 kB / 471.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2983, allocations: 4 kB / 471.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.3254, allocations: 4.856 MB / 476.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/8.037, allocations: 15.59 kB / 476.8 MB, free: 10.07 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)