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.001275/0.001275, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.473/1.473, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1624/0.1624, allocations: 3.89 MB / 294.3 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 63.89 kB / 355.6 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1176, allocations: 50.18 MB / 405.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003382/0.121, allocations: 1.516 MB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1231, allocations: 1.102 MB / 408.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1232, allocations: 3.938 kB / 408.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.1233, allocations: 15.81 kB / 408.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.228e-05/0.1234, allocations: 19.84 kB / 408.4 MB, free: 14.6 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.0009227/0.1244, allocations: 247.3 kB / 408.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.1246, allocations: 163.7 kB / 408.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.881e-05/0.1247, allocations: 13.39 kB / 408.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.1248, allocations: 67.75 kB / 408.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.187e-05/0.1249, allocations: 51.77 kB / 408.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.125, allocations: 8 kB / 409 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003525/0.1253, allocations: 211.7 kB / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.648e-05/0.1254, allocations: 23.92 kB / 409.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.906e-05/0.1255, allocations: 55.67 kB / 409.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004274/0.1259, allocations: 283.3 kB / 409.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1259, allocations: 0 / 409.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1259, allocations: 0 / 409.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1259, allocations: 0 / 409.5 MB, free: 13.5 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.001685/0.1276, allocations: 1.329 MB / 410.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.1277, allocations: 8.031 kB / 410.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.1278, allocations: 42.69 kB / 410.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004026/0.1282, allocations: 58.34 kB / 410.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.1285, allocations: 212.7 kB / 411.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.1285, allocations: 8.375 kB / 411.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.718e-05/0.1286, allocations: 8.375 kB / 411.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.1289, allocations: 165.7 kB / 411.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.129, allocations: 0 / 411.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.129, allocations: 4 kB / 411.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.129, allocations: 0 / 411.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000413/0.1294, allocations: 147.8 kB / 411.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000667/0.1301, allocations: 360.7 kB / 411.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.1305, allocations: 206.5 kB / 412 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.1308, allocations: 180.8 kB / 412.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.1309, allocations: 0 / 412.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004324/0.1313, allocations: 300.2 kB / 412.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.1313, allocations: 0 / 412.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009919/0.1323, allocations: 471.2 kB / 413 MB, free: 9.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.1324, allocations: 93.09 kB / 413.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.1326, allocations: 162.2 kB / 413.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.1326, allocations: 25.7 kB / 413.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.1327, allocations: 100.5 kB / 413.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.014e-05/0.1327, allocations: 43.53 kB / 413.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.1328, allocations: 37.7 kB / 413.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1329, allocations: 330.8 kB / 413.7 MB, free: 9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.1332, allocations: 95.83 kB / 413.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1334, allocations: 91.95 kB / 413.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004365/0.1338, allocations: 278.5 kB / 414.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1338, allocations: 112 / 414.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005788/0.1344, allocations: 291 kB / 414.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.1345, allocations: 49.69 kB / 414.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1345, allocations: 0 / 414.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1345, allocations: 0 / 414.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.1347, allocations: 31.91 kB / 414.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.1347, allocations: 8 kB / 414.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.446e-05/0.1348, allocations: 11.91 kB / 414.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.1348, allocations: 19.97 kB / 414.6 MB, free: 8.109 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.0001935/0.135, allocations: 195.9 kB / 414.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.1351, allocations: 11.91 kB / 414.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.1352, allocations: 12.84 kB / 414.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1352, allocations: 0 / 414.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1352, allocations: 4 kB / 414.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1352, allocations: 0 / 414.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.1354, allocations: 233.4 kB / 415 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1354, allocations: 7.938 kB / 415.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.1355, allocations: 15.98 kB / 415.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1356, allocations: 0 / 415.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.1356, allocations: 4 kB / 415.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1356, allocations: 4 kB / 415.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1356, allocations: 3.938 kB / 415.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1367, allocations: 0.5865 MB / 415.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.973e-05/0.1367, allocations: 85.05 kB / 415.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.1368, allocations: 15.98 kB / 415.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.737e-05/0.1369, allocations: 11.98 kB / 415.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.137, allocations: 19.98 kB / 415.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.137, allocations: 23.97 kB / 415.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.578e-05/0.1371, allocations: 116.1 kB / 415.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1371, allocations: 0 / 415.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.1375, allocations: 84 kB / 416 MB, free: 6.586 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.001766/0.1393, allocations: 1.266 MB / 417.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007225/0.14, allocations: 443.2 kB / 417.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.14, allocations: 0 / 417.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004507/0.1405, allocations: 363.3 kB / 418.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.1407, allocations: 16 kB / 418.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.1437, allocations: 2.218 MB / 420.3 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.144, allocations: 0.7078 MB / 421 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.427e-05/0.1441, allocations: 24.58 kB / 421 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.1441, allocations: 39.36 kB / 421.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1441, allocations: 0 / 421.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2048/0.3489, allocations: 4.701 MB / 425.8 MB, free: 49.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.241, allocations: 15.38 kB / 425.8 MB, free: 49.24 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)