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.001008/0.001008, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001003/0.001003, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1534/0.1534, allocations: 3.872 MB / 294.8 MB, free: 4.035 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003044, allocations: 12 kB / 356.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08796, allocations: 51.17 MB / 407.8 MB, free: 308 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001485/0.08948, allocations: 1.227 MB / 409 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.09088, allocations: 1.041 MB / 410.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.185e-05/0.09095, allocations: 0 / 410.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.09106, allocations: 19.86 kB / 410.1 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.73e-05/0.09111, allocations: 7.984 kB / 410.1 MB, free: 13.99 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.0004898/0.0916, allocations: 191.5 kB / 410.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.09172, allocations: 91.83 kB / 410.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.095e-05/0.09179, allocations: 13.33 kB / 410.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.0919, allocations: 59.83 kB / 410.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.553e-05/0.09198, allocations: 55.75 kB / 410.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.09201, allocations: 8 kB / 410.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.09224, allocations: 159.8 kB / 410.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.09228, allocations: 19.91 kB / 410.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.606e-05/0.09233, allocations: 49.64 kB / 410.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.09256, allocations: 195.6 kB / 410.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.09257, allocations: 0 / 410.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09258, allocations: 0 / 410.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.09259, allocations: 0 / 410.9 MB, free: 13.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.001329/0.09392, allocations: 1.305 MB / 412.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.09396, allocations: 12.03 kB / 412.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.37e-05/0.094, allocations: 38.55 kB / 412.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002421/0.09425, allocations: 27.89 kB / 412.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.09447, allocations: 219.4 kB / 412.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.0945, allocations: 11.88 kB / 412.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.09453, allocations: 8 kB / 412.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.09485, allocations: 168.8 kB / 412.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.09487, allocations: 0 / 412.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.09489, allocations: 7.953 kB / 412.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.0949, allocations: 0 / 412.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.0952, allocations: 135.9 kB / 412.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.09576, allocations: 360.6 kB / 413.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.09611, allocations: 214.4 kB / 413.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.09614, allocations: 0 / 413.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.09656, allocations: 308.4 kB / 413.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.09657, allocations: 0 / 413.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009171/0.09749, allocations: 0.547 MB / 414.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.09757, allocations: 97.09 kB / 414.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.0977, allocations: 154.2 kB / 414.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.09773, allocations: 29.7 kB / 414.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.165e-05/0.09779, allocations: 100.5 kB / 414.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.09782, allocations: 31.47 kB / 414.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/0.09784, allocations: 4 kB / 414.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.09795, allocations: 322.8 kB / 415 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.09814, allocations: 100 kB / 415.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.09833, allocations: 95.89 kB / 415.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.09856, allocations: 152 kB / 415.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.09857, allocations: 0 / 415.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004896/0.09907, allocations: 291.2 kB / 415.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.635e-05/0.09914, allocations: 51.55 kB / 415.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.09915, allocations: 4 kB / 415.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.09917, allocations: 11.89 kB / 415.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.0993, allocations: 19.98 kB / 415.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.09931, allocations: 4 kB / 415.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.895e-05/0.09941, allocations: 19.89 kB / 415.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.09944, allocations: 8 kB / 415.7 MB, free: 8.055 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 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r,globalSeed.id_impure,discreteNoise.localSeed,discreteNoise.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000162/0.0996, allocations: 195.4 kB / 415.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.09966, allocations: 23.81 kB / 415.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.0997, allocations: 4.844 kB / 415.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.09971, allocations: 7.953 kB / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.09972, allocations: 0 / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.09973, allocations: 0 / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.0999, allocations: 213.5 kB / 416.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.09991, allocations: 0 / 416.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.95e-05/0.1, allocations: 23.92 kB / 416.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1, allocations: 4.062 kB / 416.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.1001, allocations: 19.92 kB / 416.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1001, allocations: 3.938 kB / 416.2 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1001, allocations: 3.953 kB / 416.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009645/0.101, allocations: 0.5726 MB / 416.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.1011, allocations: 89.05 kB / 416.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.1012, allocations: 11.98 kB / 416.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.1013, allocations: 20.05 kB / 416.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.1013, allocations: 11.98 kB / 416.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.1013, allocations: 11.95 kB / 416.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.574e-05/0.1014, allocations: 116.1 kB / 417 MB, free: 6.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1014, allocations: 0 / 417 MB, free: 6.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000324/0.1018, allocations: 87.98 kB / 417.1 MB, free: 6.539 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00151/0.1033, allocations: 1.264 MB / 418.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006413/0.1039, allocations: 447.2 kB / 418.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1039, allocations: 4 kB / 418.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.1043, allocations: 363.3 kB / 419.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.1045, allocations: 12 kB / 419.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008212/0.1053, allocations: 0.6124 MB / 419.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.1056, allocations: 0.7121 MB / 420.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.966e-05/0.1057, allocations: 12.66 kB / 420.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.248e-05/0.1057, allocations: 35.42 kB / 420.6 MB, free: 3 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1057, allocations: 0 / 420.6 MB, free: 3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1848/0.2905, allocations: 4.408 MB / 425 MB, free: 46.24 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.2907, allocations: 240.2 kB / 425.2 MB, free: 46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.919, allocations: 6.875 kB / 425.2 MB, free: 46 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/linux/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) Environment - environmentSimulation: