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.001722/0.001722, allocations: 102.8 kB / 16.45 MB, free: 6.449 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.002081/0.002081, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.602/1.602, allocations: 230.6 MB / 252.8 MB, free: 8.938 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.03117/0.03117, allocations: 3.925 MB / 312.8 MB, free: 476 kB / 238.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.002437/0.002437, allocations: 71.86 kB / 434.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.126, allocations: 54.11 MB / 488.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003391/0.1294, allocations: 1.545 MB / 490.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1319, allocations: 1.153 MB / 491.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.132, allocations: 3.938 kB / 491.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.1322, allocations: 27.73 kB / 491.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.1323, allocations: 7.875 kB / 491.4 MB, free: 5.66 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.001065/0.1334, allocations: 251.3 kB / 491.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.1337, allocations: 159.6 kB / 491.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1338, allocations: 9.109 kB / 491.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.134, allocations: 63.77 kB / 491.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.1341, allocations: 55.75 kB / 491.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.222e-05/0.1341, allocations: 8 kB / 491.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005506/0.1347, allocations: 255.6 kB / 492.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.1348, allocations: 27.86 kB / 492.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.328e-05/0.1349, allocations: 47.73 kB / 492.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006329/0.1355, allocations: 283.3 kB / 492.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1355, allocations: 4 kB / 492.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1355, allocations: 0 / 492.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.1355, allocations: 4 kB / 492.5 MB, free: 4.516 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.001983/0.1375, allocations: 1.349 MB / 493.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1376, allocations: 11.98 kB / 493.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.028e-05/0.1376, allocations: 42.75 kB / 493.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004651/0.1381, allocations: 52.78 kB / 494 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.1385, allocations: 216.8 kB / 494.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.1385, allocations: 12.38 kB / 494.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.1385, allocations: 8.375 kB / 494.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.139, allocations: 164.6 kB / 494.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.139, allocations: 0 / 494.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.139, allocations: 8 kB / 494.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.139, allocations: 0 / 494.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.1395, allocations: 151.8 kB / 494.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007013/0.1402, allocations: 348.7 kB / 494.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.1406, allocations: 146.5 kB / 495 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.1409, allocations: 124.8 kB / 495.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.1409, allocations: 0 / 495.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005642/0.1415, allocations: 304.3 kB / 495.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.344e-06/0.1415, allocations: 0 / 495.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00124/0.1427, allocations: 487.2 kB / 495.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.1428, allocations: 97.09 kB / 496 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.1431, allocations: 164.3 kB / 496.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.1431, allocations: 25.7 kB / 496.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1432, allocations: 100.4 kB / 496.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.63e-05/0.1433, allocations: 39.8 kB / 496.3 MB, free: 468 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.1434, allocations: 45.58 kB / 496.4 MB, free: 416 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.1435, allocations: 338.8 kB / 496.7 MB, free: 68 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.1438, allocations: 88.03 kB / 496.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.1441, allocations: 98.38 kB / 496.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005875/0.1447, allocations: 276.1 kB / 497.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.1447, allocations: 4 kB / 497.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007145/0.1454, allocations: 306 kB / 497.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.708e-05/0.1455, allocations: 49.69 kB / 497.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1455, allocations: 3.984 kB / 497.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.1455, allocations: 0 / 497.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.1457, allocations: 23.98 kB / 497.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.1457, allocations: 0 / 497.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.1458, allocations: 23.88 kB / 497.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/0.1459, allocations: 27.91 kB / 497.6 MB, free: 15.15 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.000268/0.1462, allocations: 188 kB / 497.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.324e-05/0.1462, allocations: 19.91 kB / 497.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.1463, allocations: 13.52 kB / 497.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.1463, allocations: 4 kB / 497.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1463, allocations: 0 / 497.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1463, allocations: 3.938 kB / 497.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.1466, allocations: 225.4 kB / 498 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1466, allocations: 4 kB / 498 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.1467, allocations: 16.05 kB / 498.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.1467, allocations: 4 kB / 498.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.1467, allocations: 7.984 kB / 498.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.1467, allocations: 4 kB / 498.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.1468, allocations: 3.984 kB / 498.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.1481, allocations: 0.5882 MB / 498.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/0.1481, allocations: 89.03 kB / 498.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.1482, allocations: 12 kB / 498.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.1483, allocations: 11.98 kB / 498.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.1484, allocations: 15.98 kB / 498.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.1484, allocations: 19.97 kB / 498.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.1486, allocations: 128.9 kB / 498.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1486, allocations: 0 / 498.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000441/0.149, allocations: 87.86 kB / 499 MB, free: 13.61 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.002433/0.1515, allocations: 1.283 MB / 0.4886 GB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008981/0.1524, allocations: 343.2 kB / 0.4889 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1524, allocations: 0 / 0.4889 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.1528, allocations: 231.3 kB / 0.4891 GB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1531, allocations: 20.06 kB / 0.4891 GB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004225/0.1573, allocations: 2.258 MB / 0.4913 GB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.1578, allocations: 0.7158 MB / 0.492 GB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.177e-05/0.1578, allocations: 12.42 kB / 0.4921 GB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.593e-05/0.1579, allocations: 31.42 kB / 0.4921 GB, free: 8.602 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1579, allocations: 0 / 0.4921 GB, free: 8.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04008/0.198, allocations: 4.872 MB / 0.4968 GB, free: 3.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.974/9.172, allocations: 12.16 kB / 0.4969 GB, free: 3.801 MB / 366.1 MB " [Timeout remaining time 651] (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: 12.953584276838228] Failed to read output from testmodel.py, exit status != 0: 9.244537165854126 9.258895964 9.12020315 Calling exit ...