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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 111.8 kB / 18.14 MB, free: 3.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002189/0.002189, allocations: 202 kB / 21.43 MB, free: 0.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 225.6 MB / 250.2 MB, free: 13.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02748/0.02748, allocations: 3.936 MB / 309.3 MB, free: 5.012 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 63.91 kB / 430.2 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.12, allocations: 52.92 MB / 483.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003046/0.1231, allocations: 1.528 MB / 484.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.1254, allocations: 1.184 MB / 485.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.606e-05/0.1255, allocations: 0 / 485.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1256, allocations: 35.67 kB / 485.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.064e-05/0.1257, allocations: 27.73 kB / 485.9 MB, free: 12.42 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.000754/0.1265, allocations: 235.3 kB / 486.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1268, allocations: 251.5 kB / 486.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.35e-05/0.1268, allocations: 5.562 kB / 486.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.127, allocations: 107.6 kB / 486.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.1271, allocations: 75.67 kB / 486.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.1272, allocations: 16 kB / 486.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.1275, allocations: 179.8 kB / 486.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.1275, allocations: 23.88 kB / 486.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.1277, allocations: 83.53 kB / 486.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004371/0.1281, allocations: 299.2 kB / 487.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1281, allocations: 0 / 487.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1281, allocations: 0 / 487.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.1281, allocations: 0 / 487.2 MB, free: 11.17 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.002777/0.1309, allocations: 2.278 MB / 489.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.1309, allocations: 15.98 kB / 489.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.131, allocations: 42.73 kB / 489.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006959/0.1317, allocations: 100.7 kB / 489.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.132, allocations: 255.9 kB / 489.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.1321, allocations: 12.38 kB / 489.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.1321, allocations: 16.36 kB / 489.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004606/0.1326, allocations: 258.5 kB / 490.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.1326, allocations: 3.938 kB / 490.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.1326, allocations: 4 kB / 490.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1326, allocations: 0 / 490.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.133, allocations: 219.8 kB / 490.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003542/0.1334, allocations: 258.3 kB / 490.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.1337, allocations: 217.2 kB / 490.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.134, allocations: 189.7 kB / 491 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.1341, allocations: 0 / 491 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007221/0.1348, allocations: 0.5226 MB / 491.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.122e-06/0.1348, allocations: 0 / 491.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001412/0.1362, allocations: 0.7668 MB / 492.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002019/0.1364, allocations: 168.5 kB / 492.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.1367, allocations: 211.1 kB / 492.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.1368, allocations: 29.7 kB / 492.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.1369, allocations: 108.7 kB / 492.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.488e-05/0.137, allocations: 55.62 kB / 492.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.1371, allocations: 49.69 kB / 492.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.1373, allocations: 330.8 kB / 493.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/0.1376, allocations: 136.2 kB / 493.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.1379, allocations: 144.4 kB / 493.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006183/0.1385, allocations: 465.3 kB / 494 MB, free: 4.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1385, allocations: 4 kB / 494 MB, free: 4.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007074/0.1392, allocations: 463.3 kB / 494.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.904e-05/0.1393, allocations: 95.36 kB / 494.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1393, allocations: 0 / 494.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.1393, allocations: 4 kB / 494.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.1394, allocations: 15.98 kB / 494.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1394, allocations: 8.125 kB / 494.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1395, allocations: 23.88 kB / 494.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.1396, allocations: 43.81 kB / 494.6 MB, free: 3.344 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: 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.0002957/0.1399, allocations: 260.2 kB / 494.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.14, allocations: 31.86 kB / 494.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.14, allocations: 21.39 kB / 494.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.14, allocations: 0 / 494.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.14, allocations: 0 / 494.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.14, allocations: 0 / 494.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.1404, allocations: 269.4 kB / 495.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1404, allocations: 0 / 495.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.048e-05/0.1405, allocations: 11.98 kB / 495.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1405, allocations: 0 / 495.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.1405, allocations: 12 kB / 495.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1405, allocations: 4 kB / 495.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1405, allocations: 0 / 495.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.1417, allocations: 0.7156 MB / 495.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.1418, allocations: 136.9 kB / 496 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.142, allocations: 27.92 kB / 496.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1421, allocations: 12 kB / 496.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1422, allocations: 23.97 kB / 496.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.428e-05/0.1423, allocations: 39.94 kB / 496.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1424, allocations: 140.7 kB / 496.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 0 / 496.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003711/0.1428, allocations: 79.92 kB / 496.4 MB, free: 1.457 MB / 350.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.001951/0.1448, allocations: 1.402 MB / 497.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009709/0.1457, allocations: 0.565 MB / 498.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1457, allocations: 0 / 498.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005972/0.1463, allocations: 406.6 kB / 498.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.1466, allocations: 36.05 kB / 498.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.1507, allocations: 2.964 MB / 0.49 GB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004834/0.1512, allocations: 0.735 MB / 0.4907 GB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.252e-05/0.1513, allocations: 12.55 kB / 0.4907 GB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.1514, allocations: 55.41 kB / 0.4907 GB, free: 11.11 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1514, allocations: 0 / 0.4907 GB, free: 11.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.1849, allocations: 6.001 MB / 0.4966 GB, free: 5.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.339, allocations: 11.44 kB / 0.4966 GB, free: 5.172 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.316054503899068] Failed to read output from testmodel.py, exit status != 0: 8.41200252296403 8.428325504 8.297083238999999 Calling exit ...