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.008001/0.008001, allocations: 98.81 kB / 15.73 MB, free: 6.441 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.001663/0.001663, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.507/1.507, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1499/0.1499, allocations: 3.883 MB / 294.4 MB, free: 3.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 71.88 kB / 406.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2845, allocations: 50.17 MB / 456.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002265/0.2868, allocations: 1.524 MB / 458.1 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.2883, allocations: 1.099 MB / 459.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.347e-05/0.2884, allocations: 7.094 kB / 459.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.2885, allocations: 23.28 kB / 459.2 MB, free: 18.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.888e-05/0.2886, allocations: 7.875 kB / 459.2 MB, free: 18.61 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.0007276/0.2893, allocations: 253.9 kB / 459.5 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.2895, allocations: 158.9 kB / 459.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.2896, allocations: 15.58 kB / 459.7 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.898e-05/0.2897, allocations: 66.61 kB / 459.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.743e-05/0.2898, allocations: 53.72 kB / 459.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.2898, allocations: 13.22 kB / 459.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003254/0.2902, allocations: 241.4 kB / 460 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.825e-05/0.2902, allocations: 21 kB / 460.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.848e-05/0.2903, allocations: 53.84 kB / 460.1 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.2906, allocations: 289.3 kB / 460.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2906, allocations: 3.094 kB / 460.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2906, allocations: 0 / 460.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2906, allocations: 0 / 460.4 MB, free: 18.14 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.001285/0.2919, allocations: 1.344 MB / 461.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.292, allocations: 8.969 kB / 461.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.276e-05/0.292, allocations: 38.89 kB / 461.8 MB, free: 17.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.2924, allocations: 46.81 kB / 461.8 MB, free: 17.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002493/0.2926, allocations: 220.1 kB / 462 MB, free: 17.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.2927, allocations: 11.31 kB / 462.1 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.2927, allocations: 9.406 kB / 462.1 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.2931, allocations: 166.4 kB / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2931, allocations: 4 kB / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.2931, allocations: 3.281 kB / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.2931, allocations: 0 / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.2934, allocations: 138.5 kB / 462.4 MB, free: 17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.2939, allocations: 358.7 kB / 462.7 MB, free: 16.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.2943, allocations: 211 kB / 462.9 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.2945, allocations: 177.3 kB / 463.1 MB, free: 16.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.2945, allocations: 4 kB / 463.1 MB, free: 16.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000348/0.2949, allocations: 302.1 kB / 463.4 MB, free: 16.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.853e-06/0.2949, allocations: 0 / 463.4 MB, free: 16.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001108/0.296, allocations: 468.7 kB / 463.9 MB, free: 16.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.2961, allocations: 92.31 kB / 463.9 MB, free: 16.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.2963, allocations: 157.8 kB / 464.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.2963, allocations: 31.2 kB / 464.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.2963, allocations: 102 kB / 464.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.2964, allocations: 35.7 kB / 464.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2965, allocations: 41.64 kB / 464.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.193e-05/0.2966, allocations: 331.2 kB / 464.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.2969, allocations: 91.48 kB / 464.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.2971, allocations: 96.75 kB / 464.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004408/0.2976, allocations: 283 kB / 465.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2976, allocations: 1.062 kB / 465.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005272/0.2981, allocations: 289 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.2982, allocations: 49.88 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.2982, allocations: 4 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2982, allocations: 1.875 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.2983, allocations: 25.34 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2983, allocations: 1 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.74e-05/0.2984, allocations: 20.2 kB / 465.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.314e-05/0.2985, allocations: 23.08 kB / 465.5 MB, free: 15.08 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.0001329/0.2986, allocations: 193.7 kB / 465.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.2987, allocations: 25.89 kB / 465.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.2987, allocations: 13.03 kB / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2987, allocations: 1.219 kB / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2988, allocations: 0 / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2988, allocations: 0.5156 kB / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.299, allocations: 219.5 kB / 465.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.299, allocations: 1.062 kB / 465.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.965e-05/0.2991, allocations: 13.33 kB / 465.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2991, allocations: 0.9375 kB / 466 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.2991, allocations: 8.109 kB / 466 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2991, allocations: 4 kB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2991, allocations: 0.5625 kB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3002, allocations: 0.5827 MB / 466.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.3003, allocations: 92.81 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.671e-05/0.3003, allocations: 21.52 kB / 466.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.3004, allocations: 12.11 kB / 466.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.3005, allocations: 12.72 kB / 466.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-05/0.3005, allocations: 30.55 kB / 466.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.3007, allocations: 115.9 kB / 466.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3007, allocations: 0 / 466.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000412/0.3011, allocations: 86.16 kB / 466.9 MB, free: 14.2 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.001907/0.303, allocations: 1.276 MB / 468.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000792/0.3038, allocations: 436.4 kB / 468.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3038, allocations: 0 / 468.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004494/0.3043, allocations: 368.4 kB / 469 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.3045, allocations: 15.83 kB / 469 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.3077, allocations: 2.23 MB / 471.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.3079, allocations: 0.708 MB / 471.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.018e-05/0.308, allocations: 11.94 kB / 471.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.3081, allocations: 36.14 kB / 472 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3081, allocations: 5.281 kB / 472 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.343, allocations: 4.771 MB / 476.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/8.624, allocations: 20.41 kB / 476.8 MB, free: 10.04 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)