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.0009051/0.0009051, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008385/0.0008385, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9484/0.9484, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.0145/0.0145, allocations: 3.14 MB / 262.3 MB, free: 10.28 MB / 250.7 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 1.844e-06/1.844e-06, allocations: 0 / 385.7 MB, free: 11.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.148e-05, allocations: 2.281 kB / 385.7 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.00209/0.002112, allocations: 1.53 MB / 387.3 MB, free: 9.496 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.003587, allocations: 1.106 MB / 388.4 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.003688, allocations: 4 kB / 388.4 MB, free: 8.379 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.003832, allocations: 23.75 kB / 388.4 MB, free: 8.355 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.003939, allocations: 23.84 kB / 388.4 MB, free: 8.332 MB / 314.7 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.0007859/0.004725, allocations: 259 kB / 388.7 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.004931, allocations: 171.5 kB / 388.8 MB, free: 7.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.069e-05/0.005022, allocations: 5.312 kB / 388.8 MB, free: 7.902 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.005152, allocations: 83.8 kB / 388.9 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.536e-05/0.005238, allocations: 47.86 kB / 389 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.005264, allocations: 12 kB / 389 MB, free: 7.762 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003744/0.005638, allocations: 279.4 kB / 389.3 MB, free: 7.488 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.512e-05/0.005683, allocations: 15.92 kB / 389.3 MB, free: 7.473 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.688e-05/0.00574, allocations: 35.91 kB / 389.3 MB, free: 7.438 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.006142, allocations: 331.1 kB / 389.6 MB, free: 7.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.006145, allocations: 3.938 kB / 389.6 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006146, allocations: 0 / 389.6 MB, free: 7.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.00615, allocations: 0 / 389.6 MB, free: 7.109 MB / 314.7 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.00114/0.00729, allocations: 1.251 MB / 390.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.007328, allocations: 8.031 kB / 390.9 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.007364, allocations: 38.69 kB / 390.9 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.007644, allocations: 60.78 kB / 391 MB, free: 5.707 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.00786, allocations: 162.2 kB / 391.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.00788, allocations: 4.375 kB / 391.1 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.007905, allocations: 12.38 kB / 391.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.008188, allocations: 199.8 kB / 391.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.008196, allocations: 192 / 391.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.00821, allocations: 8.125 kB / 391.4 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.008216, allocations: 0 / 391.4 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.008433, allocations: 185.6 kB / 391.5 MB, free: 5.102 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.008862, allocations: 311.8 kB / 391.8 MB, free: 4.754 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.009112, allocations: 188.2 kB / 392 MB, free: 4.555 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.009276, allocations: 166.5 kB / 392.2 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.009295, allocations: 7.984 kB / 392.2 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.009587, allocations: 330.1 kB / 392.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.009589, allocations: 0 / 392.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006899/0.01028, allocations: 0.5532 MB / 393.1 MB, free: 3.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.01032, allocations: 85.11 kB / 393.2 MB, free: 3.336 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.01045, allocations: 171.3 kB / 393.3 MB, free: 3.156 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.01046, allocations: 29.7 kB / 393.4 MB, free: 3.121 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.01051, allocations: 104.4 kB / 393.5 MB, free: 3.012 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.01054, allocations: 31.7 kB / 393.5 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.446e-05/0.0106, allocations: 45.69 kB / 393.5 MB, free: 2.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/0.01069, allocations: 322.8 kB / 393.9 MB, free: 2.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.01084, allocations: 133.6 kB / 394 MB, free: 2.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.01098, allocations: 145.6 kB / 394.1 MB, free: 2.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.01124, allocations: 283.1 kB / 394.4 MB, free: 2.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.01125, allocations: 0 / 394.4 MB, free: 2.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003566/0.0116, allocations: 352.8 kB / 394.7 MB, free: 1.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.01165, allocations: 45.69 kB / 394.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.01165, allocations: 0 / 394.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.01167, allocations: 0 / 394.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-05/0.01176, allocations: 27.98 kB / 394.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.01177, allocations: 0 / 394.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.347e-05/0.01182, allocations: 27.81 kB / 394.8 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.01186, allocations: 19.97 kB / 394.9 MB, free: 1.543 MB / 314.7 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.0001177/0.01198, allocations: 183.4 kB / 395 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.01202, allocations: 23.84 kB / 395.1 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.01205, allocations: 13.45 kB / 395.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01205, allocations: 0 / 395.1 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01206, allocations: 4 kB / 395.1 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.01206, allocations: 4 kB / 395.1 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.01219, allocations: 176.6 kB / 395.3 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01219, allocations: 3.938 kB / 395.3 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.743e-05/0.01225, allocations: 15.98 kB / 395.3 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.01225, allocations: 0 / 395.3 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.01226, allocations: 4 kB / 395.3 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.01226, allocations: 0 / 395.3 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01226, allocations: 0 / 395.3 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006735/0.01294, allocations: 0.683 MB / 396 MB, free: 364 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.58e-05/0.01295, allocations: 15.83 kB / 396 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.01298, allocations: 15.98 kB / 396 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.621e-05/0.01303, allocations: 12.12 kB / 396 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.01308, allocations: 15.97 kB / 396 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.01311, allocations: 19.97 kB / 396 MB, free: 284 kB / 314.7 MB Notification: Performance of sorting global known variables: time 6.562e-05/0.01317, allocations: 124.9 kB / 396.2 MB, free: 160 kB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01317, allocations: 64 / 396.2 MB, free: 160 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.00026/0.01343, allocations: 95.86 kB / 396.3 MB, free: 64 kB / 314.7 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.001264/0.0147, allocations: 1.373 MB / 397.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.01521, allocations: 426.5 kB / 398 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01522, allocations: 4 kB / 398.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.01543, allocations: 260.9 kB / 398.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.01559, allocations: 12 kB / 398.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.0178, allocations: 2.502 MB / 400.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.568e-05/0.01787, allocations: 89.31 kB / 400.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.16e-05/0.01791, allocations: 12.48 kB / 400.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.01798, allocations: 44.45 kB / 401 MB, free: 11.17 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01798, allocations: 3.938 kB / 401 MB, free: 11.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.0371, allocations: 5.751 MB / 406.7 MB, free: 5.5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.154/7.191, allocations: 2.656 kB / 406.7 MB, free: 5.5 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.497862703166902] Failed to read output from testmodel.py, exit status != 0: 7.279272046871483 7.4293833209999995 7.4214695729999995 Calling exit ...