Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.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.001265/0.001265, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001486/0.001486, allocations: 223 kB / 23.03 MB, free: 4.945 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.04827/0.04827, allocations: 3.946 MB / 317.2 MB, free: 15.12 MB / 254.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.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",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.002024/0.002024, allocations: 59.91 kB / 440.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1137, allocations: 54.14 MB / 494.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003029/0.1167, allocations: 1.509 MB / 496.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.1191, allocations: 1.141 MB / 497.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.99e-05/0.1191, allocations: 3.938 kB / 497.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1193, allocations: 39.66 kB / 497.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.231e-05/0.1194, allocations: 23.8 kB / 497.3 MB, free: 2.691 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.0008534/0.1202, allocations: 259.1 kB / 497.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.1206, allocations: 271.5 kB / 497.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.729e-05/0.1207, allocations: 13.72 kB / 497.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.1209, allocations: 111.7 kB / 498 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.121, allocations: 79.55 kB / 498 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.1211, allocations: 16 kB / 498.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000377/0.1215, allocations: 211.7 kB / 498.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.1215, allocations: 31.86 kB / 498.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.1216, allocations: 63.61 kB / 498.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.1221, allocations: 287 kB / 498.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1221, allocations: 4 kB / 498.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1221, allocations: 4 kB / 498.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1221, allocations: 0 / 498.6 MB, free: 1.363 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.002963/0.1251, allocations: 2.183 MB / 0.4891 GB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1251, allocations: 8.031 kB / 0.4891 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.317e-05/0.1251, allocations: 4.188 kB / 0.4891 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.1252, allocations: 42.75 kB / 0.4891 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007974/0.126, allocations: 111.6 kB / 0.4892 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.1264, allocations: 194.1 kB / 0.4894 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.1264, allocations: 8.375 kB / 0.4894 GB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.1264, allocations: 12.12 kB / 0.4895 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.127, allocations: 338.5 kB / 0.4898 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.127, allocations: 4 kB / 0.4898 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.127, allocations: 4 kB / 0.4898 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.127, allocations: 4 kB / 0.4898 GB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000487/0.1275, allocations: 303.2 kB / 0.4901 GB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.1278, allocations: 205.5 kB / 0.4903 GB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004465/0.1283, allocations: 296.6 kB / 0.4906 GB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.1286, allocations: 277 kB / 0.4908 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.1286, allocations: 0 / 0.4908 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007086/0.1294, allocations: 0.5885 MB / 0.4914 GB, free: 12.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.192e-06/0.1294, allocations: 0 / 0.4914 GB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001542/0.1309, allocations: 0.929 MB / 0.4923 GB, free: 11.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.131, allocations: 148.5 kB / 0.4924 GB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.1313, allocations: 211.1 kB / 0.4926 GB, free: 11.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.1313, allocations: 29.7 kB / 0.4927 GB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.1314, allocations: 112.6 kB / 0.4928 GB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.023e-05/0.1315, allocations: 55.59 kB / 0.4928 GB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-05/0.1316, allocations: 53.69 kB / 0.4929 GB, free: 10.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1317, allocations: 338.8 kB / 0.4932 GB, free: 10.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.132, allocations: 223.5 kB / 0.4934 GB, free: 10.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.1324, allocations: 227.7 kB / 0.4936 GB, free: 10.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006355/0.133, allocations: 469.4 kB / 0.4941 GB, free: 9.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.133, allocations: 3.938 kB / 0.4941 GB, free: 9.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007966/0.1338, allocations: 0.5378 MB / 0.4946 GB, free: 9.055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.124e-05/0.1339, allocations: 94.02 kB / 0.4947 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1339, allocations: 0 / 0.4947 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1339, allocations: 0 / 0.4947 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1341, allocations: 19.98 kB / 0.4947 GB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.1341, allocations: 0 / 0.4947 GB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1342, allocations: 27.88 kB / 0.4948 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.1343, allocations: 27.95 kB / 0.4948 GB, free: 8.879 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: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0002711/0.1345, allocations: 251.7 kB / 0.495 GB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.1346, allocations: 27.91 kB / 0.495 GB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.772e-05/0.1346, allocations: 17.39 kB / 0.4951 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1346, allocations: 0 / 0.4951 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1346, allocations: 0 / 0.4951 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1346, allocations: 0 / 0.4951 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1349, allocations: 220.5 kB / 0.4953 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1349, allocations: 0 / 0.4953 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.097e-05/0.135, allocations: 11.98 kB / 0.4953 GB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.135, allocations: 0 / 0.4953 GB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.135, allocations: 19.98 kB / 0.4953 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.135, allocations: 4 kB / 0.4953 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.135, allocations: 0 / 0.4953 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.1361, allocations: 0.7658 MB / 0.4961 GB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.1363, allocations: 63.69 kB / 0.4961 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.1363, allocations: 23.98 kB / 0.4961 GB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.1364, allocations: 15.98 kB / 0.4962 GB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-05/0.1365, allocations: 19.97 kB / 0.4962 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.477e-05/0.1366, allocations: 39.95 kB / 0.4962 GB, free: 7.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1367, allocations: 148.7 kB / 0.4964 GB, free: 7.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1367, allocations: 0 / 0.4964 GB, free: 7.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1371, allocations: 71.94 kB / 0.4964 GB, free: 7.086 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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.1392, allocations: 1.485 MB / 0.4979 GB, free: 5.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.1403, allocations: 0.7239 MB / 0.4986 GB, free: 4.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1403, allocations: 4 kB / 0.4986 GB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006106/0.1409, allocations: 474 kB / 0.499 GB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1412, allocations: 35.88 kB / 0.4991 GB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004408/0.1456, allocations: 3.413 MB / 0.5024 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.1457, allocations: 127 kB / 0.5025 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.54e-05/0.1458, allocations: 12.48 kB / 0.5025 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.157e-05/0.1459, allocations: 51.41 kB / 0.5026 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1459, allocations: 0 / 0.5026 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.1745, allocations: 6.428 MB / 0.5089 GB, free: 10.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/11.95, allocations: 17.02 kB / 0.5089 GB, free: 10.17 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.898643865948543] Failed to read output from testmodel.py, exit status != 0: 12.111976679996587 12.332168986 12.206715987 Calling exit ...