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.001517/0.001518, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001767/0.001766, allocations: 168.7 kB / 15.95 MB, free: 204 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.515/1.515, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1691/0.1691, allocations: 3.884 MB / 295 MB, free: 3.973 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003094, allocations: 15.97 kB / 356.7 MB, free: 3.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 51.16 MB / 407.9 MB, free: 276 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001626/0.1212, allocations: 1.223 MB / 409.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.1229, allocations: 1.037 MB / 410.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.596e-05/0.123, allocations: 3.938 kB / 410.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.618e-05/0.1231, allocations: 19.86 kB / 410.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.573e-05/0.1231, allocations: 7.922 kB / 410.2 MB, free: 13.96 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.000578/0.1237, allocations: 191.6 kB / 410.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.1239, allocations: 139.6 kB / 410.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.798e-05/0.124, allocations: 13.38 kB / 410.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.1241, allocations: 59.78 kB / 410.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.1242, allocations: 55.8 kB / 410.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.1242, allocations: 4 kB / 410.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002928/0.1245, allocations: 199.7 kB / 410.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.923e-05/0.1246, allocations: 15.92 kB / 410.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.063e-05/0.1247, allocations: 45.64 kB / 410.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.1249, allocations: 195.6 kB / 411.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.125, allocations: 0 / 411.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.125, allocations: 0 / 411.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.125, allocations: 0 / 411.1 MB, free: 13.05 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.00163/0.1266, allocations: 1.315 MB / 412.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1267, allocations: 15.97 kB / 412.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.481e-05/0.1267, allocations: 38.55 kB / 412.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003521/0.1271, allocations: 39.86 kB / 412.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.1274, allocations: 227.3 kB / 412.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.1274, allocations: 4 kB / 412.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.1274, allocations: 7.984 kB / 412.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.1278, allocations: 165.6 kB / 412.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1278, allocations: 3.938 kB / 412.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.1278, allocations: 7.953 kB / 412.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1278, allocations: 0 / 412.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.1281, allocations: 147.9 kB / 413.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005403/0.1287, allocations: 360.6 kB / 413.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003558/0.129, allocations: 218.5 kB / 413.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.1293, allocations: 180.9 kB / 413.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1293, allocations: 4 kB / 413.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.1297, allocations: 308.2 kB / 414.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.1297, allocations: 0 / 414.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000905/0.1306, allocations: 483.1 kB / 414.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.1307, allocations: 97.09 kB / 414.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1309, allocations: 158.2 kB / 414.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1309, allocations: 25.7 kB / 414.8 MB, free: 9.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.131, allocations: 96.47 kB / 414.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.131, allocations: 39.45 kB / 415 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.268e-06/0.131, allocations: 3.938 kB / 415 MB, free: 8.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1311, allocations: 322.9 kB / 415.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.1314, allocations: 107.9 kB / 415.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.1315, allocations: 91.95 kB / 415.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.1318, allocations: 149.6 kB / 415.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1318, allocations: 0 / 415.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000506/0.1323, allocations: 301.4 kB / 415.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.796e-05/0.1324, allocations: 45.69 kB / 416 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1324, allocations: 0 / 416 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.1324, allocations: 11.94 kB / 416 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.1326, allocations: 35.92 kB / 416 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1326, allocations: 0 / 416 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.632e-05/0.1327, allocations: 19.89 kB / 416 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1327, allocations: 19.97 kB / 416.1 MB, free: 7.789 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.0001738/0.1329, allocations: 191.4 kB / 416.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.133, allocations: 19.81 kB / 416.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.814e-05/0.133, allocations: 12.84 kB / 416.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.133, allocations: 3.953 kB / 416.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.133, allocations: 4.062 kB / 416.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.133, allocations: 3.984 kB / 416.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.1332, allocations: 217.5 kB / 416.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1332, allocations: 0 / 416.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-05/0.1333, allocations: 23.92 kB / 416.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1333, allocations: 3.938 kB / 416.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.1334, allocations: 8 kB / 416.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1334, allocations: 0 / 416.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.1334, allocations: 7.938 kB / 416.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.1344, allocations: 0.5882 MB / 417.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/0.1344, allocations: 85.05 kB / 417.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.1345, allocations: 11.98 kB / 417.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.907e-05/0.1346, allocations: 19.98 kB / 417.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.1347, allocations: 12.05 kB / 417.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/0.1347, allocations: 31.92 kB / 417.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.439e-05/0.1348, allocations: 112.1 kB / 417.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1348, allocations: 0 / 417.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.1352, allocations: 87.98 kB / 417.5 MB, free: 6.25 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.001693/0.1369, allocations: 1.28 MB / 418.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006393/0.1375, allocations: 447.2 kB / 419.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1375, allocations: 0 / 419.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004023/0.1379, allocations: 371.2 kB / 419.6 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.1382, allocations: 16 kB / 419.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.14, allocations: 1.163 MB / 420.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.1403, allocations: 0.7083 MB / 421.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.346e-05/0.1403, allocations: 12.66 kB / 421.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.507e-05/0.1404, allocations: 39.41 kB / 421.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1404, allocations: 0 / 421.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2512/0.3916, allocations: 4.447 MB / 426 MB, free: 46.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/0.3918, allocations: 244.2 kB / 426.2 MB, free: 46.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.347, allocations: 0 / 426.2 MB, free: 46.08 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: