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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 217.1 kB / 22.26 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.02774/0.02774, allocations: 3.935 MB / 316.4 MB, free: 15.33 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 67.89 kB / 439.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1196, allocations: 54.14 MB / 493.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.00294/0.1226, allocations: 1.545 MB / 495.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.125, allocations: 1.184 MB / 496.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.665e-05/0.1251, allocations: 4 kB / 496.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1252, allocations: 23.8 kB / 496.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.1254, allocations: 23.78 kB / 496.7 MB, free: 2.918 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0009322/0.1263, allocations: 255.3 kB / 496.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002881/0.1266, allocations: 167.6 kB / 497.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.1267, allocations: 9.297 kB / 497.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1268, allocations: 63.83 kB / 497.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.127, allocations: 67.67 kB / 497.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.127, allocations: 8 kB / 497.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.1276, allocations: 299.5 kB / 497.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.567e-05/0.1276, allocations: 19.92 kB / 497.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.652e-05/0.1277, allocations: 51.73 kB / 497.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.1282, allocations: 291 kB / 497.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1282, allocations: 0 / 497.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1282, allocations: 0 / 497.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1283, allocations: 0 / 497.9 MB, free: 1.707 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.001889/0.1301, allocations: 1.277 MB / 499.2 MB, free: 404 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.1302, allocations: 12.03 kB / 499.2 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.241e-05/0.1302, allocations: 42.69 kB / 499.2 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.1307, allocations: 48.78 kB / 499.3 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003246/0.131, allocations: 165.1 kB / 499.4 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.1311, allocations: 4.375 kB / 499.4 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.1311, allocations: 4.375 kB / 499.4 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/0.1315, allocations: 169.7 kB / 499.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1316, allocations: 4 kB / 499.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.1316, allocations: 0 / 499.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1316, allocations: 4 kB / 499.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003871/0.132, allocations: 139.9 kB / 499.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.1326, allocations: 335.6 kB / 0.4883 GB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.133, allocations: 150.5 kB / 0.4885 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.1333, allocations: 116.8 kB / 0.4886 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1333, allocations: 0 / 0.4886 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004814/0.1338, allocations: 300.4 kB / 0.4889 GB, free: 14.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.1338, allocations: 0 / 0.4889 GB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.001132/0.1349, allocations: 491.1 kB / 0.4894 GB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.135, allocations: 93.09 kB / 0.4894 GB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.1352, allocations: 172.3 kB / 0.4896 GB, free: 14.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.1352, allocations: 29.7 kB / 0.4896 GB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.1353, allocations: 100.4 kB / 0.4897 GB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/0.1354, allocations: 39.69 kB / 0.4898 GB, free: 13.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.062e-05/0.1354, allocations: 41.7 kB / 0.4898 GB, free: 13.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1356, allocations: 330.8 kB / 0.4901 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.1359, allocations: 91.94 kB / 0.4902 GB, free: 13.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.1361, allocations: 95.94 kB / 0.4903 GB, free: 13.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005123/0.1366, allocations: 279.7 kB / 0.4906 GB, free: 13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1366, allocations: 0 / 0.4906 GB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006345/0.1372, allocations: 303.1 kB / 0.4909 GB, free: 12.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.1373, allocations: 53.69 kB / 0.4909 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1373, allocations: 0 / 0.4909 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1373, allocations: 4 kB / 0.4909 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.1375, allocations: 27.97 kB / 0.4909 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1375, allocations: 0 / 0.4909 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1376, allocations: 15.94 kB / 0.491 GB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/0.1377, allocations: 19.92 kB / 0.491 GB, free: 12.56 MB / 366.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 (12): * Single equations (assignments): 11 * 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.0002281/0.1379, allocations: 203.2 kB / 0.4912 GB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.138, allocations: 19.91 kB / 0.4912 GB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.138, allocations: 13.47 kB / 0.4912 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.138, allocations: 0 / 0.4912 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.138, allocations: 4 kB / 0.4912 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-06/0.138, allocations: 0 / 0.4912 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.1383, allocations: 204.4 kB / 0.4914 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.1383, allocations: 0 / 0.4914 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.1384, allocations: 15.98 kB / 0.4914 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1384, allocations: 0 / 0.4914 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.1384, allocations: 8 kB / 0.4914 GB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1384, allocations: 0 / 0.4914 GB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.1384, allocations: 11.98 kB / 0.4914 GB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.1396, allocations: 0.5765 MB / 0.492 GB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.1397, allocations: 11.98 kB / 0.492 GB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.663e-05/0.1397, allocations: 11.98 kB / 0.492 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1398, allocations: 16.05 kB / 0.492 GB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.1399, allocations: 15.98 kB / 0.4921 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.1399, allocations: 23.97 kB / 0.4921 GB, free: 11.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.14, allocations: 124.9 kB / 0.4922 GB, free: 11.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.14, allocations: 0 / 0.4922 GB, free: 11.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.1405, allocations: 91.8 kB / 0.4923 GB, free: 11.14 MB / 366.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.00215/0.1426, allocations: 1.292 MB / 0.4935 GB, free: 9.855 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007543/0.1434, allocations: 335.2 kB / 0.4939 GB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1434, allocations: 4 kB / 0.4939 GB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003976/0.1438, allocations: 231.2 kB / 0.4941 GB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.144, allocations: 15.98 kB / 0.4941 GB, free: 9.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003709/0.1477, allocations: 2.268 MB / 0.4963 GB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.1482, allocations: 0.708 MB / 0.497 GB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.435e-05/0.1482, allocations: 12.42 kB / 0.497 GB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.268e-05/0.1483, allocations: 35.42 kB / 0.4971 GB, free: 6.121 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1483, allocations: 3.938 kB / 0.4971 GB, free: 6.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.184, allocations: 5.079 MB / 0.502 GB, free: 1.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.24, allocations: 4 kB / 0.502 GB, free: 1.156 MB / 366.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.845024219001061] Failed to read output from testmodel.py, exit status != 0: 11.34091470799467 11.35776727 11.226163641 Calling exit ...