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.001755/0.001755, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002561/0.002561, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.568/1.568, allocations: 230.6 MB / 256.8 MB, free: 7.945 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.03663/0.03663, allocations: 3.938 MB / 317.2 MB, free: 15.38 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.001995/0.001995, allocations: 71.89 kB / 440.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1361, allocations: 54.15 MB / 494.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003182/0.1393, allocations: 1.547 MB / 496.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.1416, allocations: 1.219 MB / 497.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1417, allocations: 7.938 kB / 497.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.1419, allocations: 35.66 kB / 497.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.699e-05/0.142, allocations: 27.78 kB / 497.5 MB, free: 2.875 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.001101/0.1431, allocations: 251.2 kB / 497.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004319/0.1435, allocations: 275.4 kB / 498 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.886e-05/0.1436, allocations: 5.75 kB / 498 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.1439, allocations: 107.7 kB / 498.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.144, allocations: 75.67 kB / 498.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.907e-05/0.1441, allocations: 16 kB / 498.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004144/0.1445, allocations: 215.6 kB / 498.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-05/0.1446, allocations: 27.86 kB / 498.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.1447, allocations: 91.45 kB / 498.6 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.1452, allocations: 291 kB / 498.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1452, allocations: 0 / 498.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1452, allocations: 0 / 498.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1452, allocations: 0 / 498.9 MB, free: 1.543 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.002857/0.1481, allocations: 2.199 MB / 0.4893 GB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.1481, allocations: 12.03 kB / 0.4893 GB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.951e-05/0.1482, allocations: 4.172 kB / 0.4893 GB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.911e-05/0.1482, allocations: 38.75 kB / 0.4894 GB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007346/0.149, allocations: 111.5 kB / 0.4895 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1493, allocations: 198 kB / 0.4897 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.1493, allocations: 4.375 kB / 0.4897 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.1494, allocations: 12.38 kB / 0.4897 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.1498, allocations: 255.2 kB / 0.4899 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1499, allocations: 0 / 0.4899 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.1499, allocations: 7.984 kB / 0.4899 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1499, allocations: 0 / 0.4899 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004202/0.1503, allocations: 227.8 kB / 0.4901 GB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003168/0.1506, allocations: 229.4 kB / 0.4904 GB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.151, allocations: 213.3 kB / 0.4906 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.1513, allocations: 189.6 kB / 0.4907 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.1513, allocations: 7.938 kB / 0.4908 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006528/0.152, allocations: 0.513 MB / 0.4913 GB, free: 13.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.172e-06/0.152, allocations: 4 kB / 0.4913 GB, free: 13.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001329/0.1533, allocations: 0.774 MB / 0.492 GB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.1534, allocations: 152.5 kB / 0.4922 GB, free: 12.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.1537, allocations: 219.2 kB / 0.4924 GB, free: 11.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.1537, allocations: 33.64 kB / 0.4924 GB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.221e-05/0.1538, allocations: 112.6 kB / 0.4925 GB, free: 11.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.1538, allocations: 47.55 kB / 0.4926 GB, free: 11.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.1539, allocations: 57.67 kB / 0.4926 GB, free: 11.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1541, allocations: 334.8 kB / 0.4929 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.1544, allocations: 140.2 kB / 0.4931 GB, free: 11.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.1547, allocations: 140.3 kB / 0.4932 GB, free: 11.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006073/0.1553, allocations: 465.3 kB / 0.4936 GB, free: 10.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1553, allocations: 0 / 0.4936 GB, free: 10.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007132/0.156, allocations: 467.3 kB / 0.4941 GB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.1561, allocations: 95.36 kB / 0.4942 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1561, allocations: 0 / 0.4942 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.1561, allocations: 4 kB / 0.4942 GB, free: 10 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.1563, allocations: 23.98 kB / 0.4942 GB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.1563, allocations: 0 / 0.4942 GB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.1564, allocations: 19.94 kB / 0.4942 GB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.1565, allocations: 31.95 kB / 0.4942 GB, free: 9.93 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.0002765/0.1568, allocations: 259.7 kB / 0.4945 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/0.1568, allocations: 27.86 kB / 0.4945 GB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.639e-05/0.1569, allocations: 13.41 kB / 0.4945 GB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1569, allocations: 11.94 kB / 0.4945 GB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1569, allocations: 0 / 0.4945 GB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1569, allocations: 0 / 0.4945 GB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.1571, allocations: 244.5 kB / 0.4948 GB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1571, allocations: 0 / 0.4948 GB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.703e-05/0.1572, allocations: 7.984 kB / 0.4948 GB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.1572, allocations: 4 kB / 0.4948 GB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.1572, allocations: 15.97 kB / 0.4948 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.1572, allocations: 0 / 0.4948 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1572, allocations: 0 / 0.4948 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.1583, allocations: 0.7029 MB / 0.4955 GB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.1584, allocations: 63.69 kB / 0.4956 GB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.1585, allocations: 27.92 kB / 0.4956 GB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1586, allocations: 11.98 kB / 0.4956 GB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.1587, allocations: 27.91 kB / 0.4956 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-05/0.1588, allocations: 51.88 kB / 0.4957 GB, free: 8.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.1589, allocations: 148.7 kB / 0.4958 GB, free: 8.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1589, allocations: 0 / 0.4958 GB, free: 8.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.1593, allocations: 75.94 kB / 0.4959 GB, free: 8.16 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.002009/0.1613, allocations: 1.392 MB / 0.4972 GB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009685/0.1623, allocations: 0.5688 MB / 0.4978 GB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1623, allocations: 0 / 0.4978 GB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.1629, allocations: 406.6 kB / 0.4982 GB, free: 5.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.1631, allocations: 40.05 kB / 0.4982 GB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004181/0.1673, allocations: 2.959 MB / 0.5011 GB, free: 2.645 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.1677, allocations: 0.7353 MB / 0.5018 GB, free: 1.883 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.506e-05/0.1678, allocations: 12.48 kB / 0.5018 GB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.625e-05/0.1679, allocations: 55.41 kB / 0.5019 GB, free: 1.816 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1679, allocations: 0 / 0.5019 GB, free: 1.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.1979, allocations: 6.251 MB / 0.508 GB, free: 11.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.57, allocations: 11.94 kB / 0.508 GB, free: 11.68 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.601098271028604] Failed to read output from testmodel.py, exit status != 0: 11.735071083006915 11.959935805 11.811260463 Calling exit ...