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.001364/0.001364, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001377/0.001377, allocations: 215 kB / 20.13 MB, free: 2.949 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.572/1.572, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.02713/0.02713, allocations: 3.927 MB / 313.5 MB, free: 2.223 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AdvancedNoise requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00323/0.00323, allocations: 65.19 kB / 435.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1058, allocations: 54.11 MB / 489.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002628/0.1085, allocations: 1.542 MB / 490.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.1105, allocations: 1.155 MB / 492.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.1106, allocations: 5.312 kB / 492.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.1108, allocations: 17.17 kB / 492.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.1109, allocations: 21.22 kB / 492.1 MB, free: 11.34 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.0009621/0.1119, allocations: 245.7 kB / 492.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.1121, allocations: 154.5 kB / 492.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.461e-05/0.1122, allocations: 10.03 kB / 492.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1123, allocations: 69.16 kB / 492.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.1124, allocations: 54.28 kB / 492.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.1125, allocations: 9.094 kB / 492.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004127/0.1129, allocations: 256.8 kB / 492.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.219e-05/0.1129, allocations: 21.22 kB / 492.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.186e-05/0.113, allocations: 60.92 kB / 493 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000477/0.1135, allocations: 280 kB / 493.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1135, allocations: 1.406 kB / 493.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1135, allocations: 4 kB / 493.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.1135, allocations: 0 / 493.2 MB, free: 10.62 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.001551/0.115, allocations: 1.347 MB / 494.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1151, allocations: 10.31 kB / 494.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.287e-05/0.1151, allocations: 5.531 kB / 494.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.1152, allocations: 37.58 kB / 494.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/0.1155, allocations: 53.7 kB / 494.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.1158, allocations: 222.7 kB / 494.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1158, allocations: 4.75 kB / 494.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.1159, allocations: 10.69 kB / 494.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/0.1163, allocations: 162.8 kB / 495.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1163, allocations: 1.531 kB / 495.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1163, allocations: 5.562 kB / 495.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1163, allocations: 1.625 kB / 495.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.1167, allocations: 145.9 kB / 495.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005381/0.1172, allocations: 353.8 kB / 495.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.1176, allocations: 147.5 kB / 495.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.1178, allocations: 120.8 kB / 495.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.1179, allocations: 7.938 kB / 495.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000359/0.1182, allocations: 300.4 kB / 496.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.1182, allocations: 4 kB / 496.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009243/0.1191, allocations: 483.2 kB / 496.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.1192, allocations: 93.09 kB / 496.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1193, allocations: 164.2 kB / 496.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.1193, allocations: 29.64 kB / 496.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.449e-05/0.1194, allocations: 100.6 kB / 497 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.1194, allocations: 43.62 kB / 497 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.1195, allocations: 45.69 kB / 497.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.19e-05/0.1195, allocations: 330.8 kB / 497.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.1197, allocations: 91.94 kB / 497.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.1199, allocations: 97.25 kB / 497.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.1203, allocations: 282 kB / 497.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1203, allocations: 0 / 497.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005067/0.1208, allocations: 305.9 kB / 498.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.1209, allocations: 49.69 kB / 498.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1209, allocations: 0 / 498.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.1209, allocations: 0 / 498.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.1211, allocations: 31.91 kB / 498.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.1211, allocations: 0 / 498.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1212, allocations: 23.88 kB / 498.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.1212, allocations: 23.97 kB / 498.3 MB, free: 6.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 (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.0001322/0.1213, allocations: 188 kB / 498.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.1214, allocations: 11.95 kB / 498.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.1214, allocations: 17.52 kB / 498.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1214, allocations: 0 / 498.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1214, allocations: 3.938 kB / 498.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1215, allocations: 7.984 kB / 498.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.1216, allocations: 217.5 kB / 498.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1216, allocations: 8.062 kB / 498.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.1217, allocations: 19.92 kB / 498.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1217, allocations: 0 / 498.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1217, allocations: 11.98 kB / 498.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1217, allocations: 0 / 498.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1217, allocations: 0 / 498.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009468/0.1227, allocations: 0.5869 MB / 499.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.1227, allocations: 89.03 kB / 499.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.325e-05/0.1227, allocations: 15.92 kB / 499.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.1228, allocations: 19.98 kB / 499.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.1229, allocations: 7.984 kB / 499.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.1229, allocations: 28.03 kB / 499.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.344e-05/0.123, allocations: 124.9 kB / 499.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.123, allocations: 0 / 499.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.1234, allocations: 87.86 kB / 499.7 MB, free: 4.57 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.001625/0.1251, allocations: 1.28 MB / 0.4893 GB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006003/0.1257, allocations: 339.3 kB / 0.4896 GB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1257, allocations: 0 / 0.4896 GB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003119/0.126, allocations: 235.2 kB / 0.4898 GB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.1262, allocations: 25.39 kB / 0.4898 GB, free: 2.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.1289, allocations: 2.249 MB / 0.492 GB, free: 356 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.1292, allocations: 0.7126 MB / 0.4927 GB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.409e-05/0.1292, allocations: 8.422 kB / 0.4927 GB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.526e-05/0.1293, allocations: 39.42 kB / 0.4928 GB, free: 15.56 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1293, allocations: 0 / 0.4928 GB, free: 15.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.1573, allocations: 4.925 MB / 0.4976 GB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/8.829, allocations: 5.812 kB / 0.4976 GB, free: 10.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.652897944964934] Failed to read output from testmodel.py, exit status != 0: 8.973702966992278 8.991654346 8.874396895 Calling exit ...