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.0008802/0.0008803, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00524/0.00524, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.297/1.297, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1304/0.1304, allocations: 3.88 MB / 295.3 MB, free: 3.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003143, allocations: 8 kB / 357.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09482, allocations: 51.17 MB / 408.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001619/0.09648, allocations: 1.25 MB / 409.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.0983, allocations: 1.118 MB / 410.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.09837, allocations: 4 kB / 410.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.09851, allocations: 15.86 kB / 410.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.417e-05/0.09857, allocations: 7.922 kB / 410.9 MB, free: 13.49 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.0005817/0.09916, allocations: 207.5 kB / 411.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.09931, allocations: 143.7 kB / 411.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.98e-05/0.09941, allocations: 9.406 kB / 411.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.433e-05/0.09951, allocations: 55.78 kB / 411.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.873e-05/0.0996, allocations: 55.73 kB / 411.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.09963, allocations: 4 kB / 411.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002787/0.09991, allocations: 211.6 kB / 411.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.387e-05/0.09997, allocations: 23.91 kB / 411.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.798e-05/0.1001, allocations: 69.44 kB / 411.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.1004, allocations: 279.3 kB / 411.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1004, allocations: 4 kB / 411.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1004, allocations: 0 / 411.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1004, allocations: 0 / 411.9 MB, free: 12.44 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.001458/0.1019, allocations: 1.302 MB / 413.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.102, allocations: 12.03 kB / 413.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.102, allocations: 38.73 kB / 413.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003034/0.1023, allocations: 48.8 kB / 413.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.1025, allocations: 220.7 kB / 413.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.1026, allocations: 4.375 kB / 413.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.1026, allocations: 8.375 kB / 413.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.1029, allocations: 189.6 kB / 413.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.103, allocations: 0 / 413.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.103, allocations: 0 / 413.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.103, allocations: 4 kB / 413.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.1033, allocations: 147.9 kB / 413.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.1039, allocations: 364.6 kB / 414.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003727/0.1042, allocations: 230.4 kB / 414.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.1045, allocations: 184.9 kB / 414.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.1045, allocations: 0 / 414.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003849/0.1049, allocations: 312.3 kB / 415 MB, free: 9.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1049, allocations: 0 / 415 MB, free: 9.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009104/0.1059, allocations: 485.5 kB / 415.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.1059, allocations: 97.05 kB / 415.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.1061, allocations: 158.1 kB / 415.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.1061, allocations: 29.7 kB / 415.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.1062, allocations: 92.47 kB / 415.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.1062, allocations: 43.45 kB / 415.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.1062, allocations: 29.7 kB / 415.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1064, allocations: 326.8 kB / 416.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.1066, allocations: 99.91 kB / 416.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.1068, allocations: 99.94 kB / 416.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1072, allocations: 278.4 kB / 416.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1072, allocations: 0 / 416.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005196/0.1077, allocations: 315.2 kB / 417 MB, free: 7.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.1078, allocations: 49.67 kB / 417 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1078, allocations: 0 / 417 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1078, allocations: 4 kB / 417 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.108, allocations: 23.98 kB / 417.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.108, allocations: 4 kB / 417.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.952e-05/0.1081, allocations: 19.89 kB / 417.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-05/0.1081, allocations: 23.97 kB / 417.1 MB, free: 6.98 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.0001517/0.1083, allocations: 187.4 kB / 417.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.259e-05/0.1084, allocations: 19.81 kB / 417.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.1084, allocations: 16.83 kB / 417.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1084, allocations: 0 / 417.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.1084, allocations: 0 / 417.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1084, allocations: 0 / 417.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.1086, allocations: 221.5 kB / 417.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1086, allocations: 3.938 kB / 417.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-05/0.1087, allocations: 15.98 kB / 417.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1087, allocations: 4.062 kB / 417.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.1088, allocations: 19.98 kB / 417.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1088, allocations: 0 / 417.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1088, allocations: 0 / 417.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1098, allocations: 0.6 MB / 418.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/0.1098, allocations: 89.05 kB / 418.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.863e-05/0.1099, allocations: 8 kB / 418.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/0.11, allocations: 15.98 kB / 418.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.11, allocations: 19.98 kB / 418.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/0.1101, allocations: 23.91 kB / 418.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.571e-05/0.1102, allocations: 124.1 kB / 418.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1102, allocations: 0 / 418.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003344/0.1105, allocations: 83.98 kB / 418.5 MB, free: 5.434 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.001631/0.1122, allocations: 1.287 MB / 419.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.1128, allocations: 451.2 kB / 420.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1128, allocations: 0 / 420.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003988/0.1132, allocations: 375.3 kB / 420.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.1135, allocations: 16 kB / 420.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.1163, allocations: 2.274 MB / 422.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.1165, allocations: 0.7043 MB / 423.6 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.651e-05/0.1166, allocations: 12.66 kB / 423.6 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.835e-05/0.1166, allocations: 35.42 kB / 423.7 MB, free: 172 kB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1167, allocations: 4 kB / 423.7 MB, free: 168 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1707/0.2873, allocations: 4.366 MB / 428 MB, free: 46.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001338/0.2875, allocations: 256.1 kB / 428.3 MB, free: 46.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.105, allocations: 0 / 428.3 MB, free: 46.13 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)