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.005023/0.005023, allocations: 97.61 kB / 15.73 MB, free: 5.988 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.00132/0.00132, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1302/0.1302, allocations: 3.888 MB / 294.4 MB, free: 3.219 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 64.09 kB / 406.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2284, allocations: 50.18 MB / 456.6 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002053/0.2305, allocations: 1.514 MB / 458.1 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.232, allocations: 1.119 MB / 459.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.899e-05/0.232, allocations: 0 / 459.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.2321, allocations: 19.19 kB / 459.2 MB, free: 18.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.95e-05/0.2322, allocations: 14.61 kB / 459.3 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.0006697/0.2328, allocations: 246.1 kB / 459.5 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.233, allocations: 154.8 kB / 459.7 MB, free: 18.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.112e-05/0.2331, allocations: 19.58 kB / 459.7 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.776e-05/0.2332, allocations: 57.73 kB / 459.7 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.487e-05/0.2332, allocations: 52.31 kB / 459.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.2333, allocations: 13.28 kB / 459.8 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.2336, allocations: 248.6 kB / 460 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.86e-05/0.2336, allocations: 21.05 kB / 460.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.2337, allocations: 54.73 kB / 460.1 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.234, allocations: 286.7 kB / 460.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.234, allocations: 3.938 kB / 460.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.234, allocations: 0 / 460.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.234, allocations: 0 / 460.4 MB, free: 18.15 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.001276/0.2353, allocations: 1.342 MB / 461.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2353, allocations: 13.48 kB / 461.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.2354, allocations: 37.97 kB / 461.8 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.2357, allocations: 43.36 kB / 461.8 MB, free: 17.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.2359, allocations: 217 kB / 462 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.236, allocations: 10.38 kB / 462.1 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.236, allocations: 6.5 kB / 462.1 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.2363, allocations: 172.6 kB / 462.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2363, allocations: 4 kB / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2364, allocations: 0 / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2364, allocations: 2.906 kB / 462.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.2367, allocations: 136.5 kB / 462.4 MB, free: 17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.2372, allocations: 361.4 kB / 462.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.2375, allocations: 146.6 kB / 462.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.2377, allocations: 119.2 kB / 463 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.2377, allocations: 0 / 463 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003507/0.2381, allocations: 301.2 kB / 463.3 MB, free: 16.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.2381, allocations: 0 / 463.3 MB, free: 16.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000912/0.239, allocations: 473.1 kB / 463.7 MB, free: 16.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.239, allocations: 93.69 kB / 463.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.2391, allocations: 159.7 kB / 464 MB, free: 16.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.2392, allocations: 34.86 kB / 464 MB, free: 16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.781e-05/0.2392, allocations: 103.1 kB / 464.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.2392, allocations: 36.58 kB / 464.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.2393, allocations: 40.27 kB / 464.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.606e-05/0.2393, allocations: 326.8 kB / 464.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.2395, allocations: 92.25 kB / 464.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.2397, allocations: 92.97 kB / 464.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.2401, allocations: 275.4 kB / 465 MB, free: 15.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2401, allocations: 0 / 465 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005083/0.2406, allocations: 294.7 kB / 465.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.2407, allocations: 49.09 kB / 465.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2407, allocations: 0 / 465.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.2407, allocations: 9.188 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.2408, allocations: 22.42 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.2408, allocations: 0.7031 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.239e-05/0.2409, allocations: 19.44 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.241, allocations: 26.67 kB / 465.4 MB, free: 15.17 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.0001435/0.2411, allocations: 193.6 kB / 465.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.2412, allocations: 18.22 kB / 465.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.971e-05/0.2412, allocations: 16.98 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2412, allocations: 1.188 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2412, allocations: 0 / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.2412, allocations: 0.5625 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.2414, allocations: 216.6 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2414, allocations: 0.8438 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.2415, allocations: 17.19 kB / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.2415, allocations: 0 / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.2416, allocations: 12.58 kB / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2416, allocations: 0 / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2416, allocations: 4 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.2426, allocations: 0.5812 MB / 466.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/0.2426, allocations: 92.55 kB / 466.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.2426, allocations: 14.12 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.273e-05/0.2427, allocations: 20.19 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.2428, allocations: 8.844 kB / 466.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.2428, allocations: 26.92 kB / 466.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.875e-05/0.2429, allocations: 111.4 kB / 466.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2429, allocations: 0 / 466.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000371/0.2433, allocations: 90.2 kB / 466.8 MB, free: 14.3 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.001616/0.2449, allocations: 1.287 MB / 468.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00062/0.2455, allocations: 336.4 kB / 468.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2455, allocations: 5.375 kB / 468.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.2458, allocations: 227.9 kB / 468.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.2461, allocations: 20.53 kB / 468.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.2487, allocations: 2.227 MB / 470.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.2488, allocations: 0.711 MB / 471.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.444e-05/0.2488, allocations: 12.06 kB / 471.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.951e-05/0.2489, allocations: 37.8 kB / 471.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2489, allocations: 0 / 471.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.2889, allocations: 4.776 MB / 476.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.129/8.418, allocations: 21.64 kB / 476.4 MB, free: 10.29 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)