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.001809/0.001809, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001448/0.001448, allocations: 215.8 kB / 22.26 MB, free: 5.113 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.426/1.426, allocations: 230.6 MB / 256 MB, free: 7.992 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.04326/0.04326, allocations: 3.939 MB / 316.4 MB, free: 15.32 MB / 254.1 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.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.001984/0.001984, allocations: 71.89 kB / 439.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 54.16 MB / 493.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002797/0.1128, allocations: 1.543 MB / 495.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.115, allocations: 1.219 MB / 496.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.118e-05/0.1151, allocations: 7.938 kB / 496.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.1152, allocations: 31.67 kB / 496.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.107e-05/0.1153, allocations: 31.78 kB / 496.7 MB, free: 2.855 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.0008048/0.1161, allocations: 251.2 kB / 497 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000376/0.1165, allocations: 275.4 kB / 497.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.1165, allocations: 5.75 kB / 497.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.1168, allocations: 107.7 kB / 497.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.1169, allocations: 79.66 kB / 497.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.1169, allocations: 16 kB / 497.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003831/0.1173, allocations: 211.7 kB / 497.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.1174, allocations: 31.8 kB / 497.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.1175, allocations: 83.53 kB / 497.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.1179, allocations: 295 kB / 498.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1179, allocations: 0 / 498.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1179, allocations: 0 / 498.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1179, allocations: 0 / 498.1 MB, free: 1.523 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.002699/0.1206, allocations: 2.197 MB / 0.4885 GB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1207, allocations: 16.03 kB / 0.4886 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.457e-05/0.1207, allocations: 42.67 kB / 0.4886 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007557/0.1215, allocations: 108.7 kB / 0.4887 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.1218, allocations: 194.1 kB / 0.4889 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.1219, allocations: 12.38 kB / 0.4889 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.1219, allocations: 8.375 kB / 0.4889 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.1223, allocations: 263.3 kB / 0.4892 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1223, allocations: 0 / 0.4892 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.1224, allocations: 4 kB / 0.4892 GB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1224, allocations: 0 / 0.4892 GB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003928/0.1228, allocations: 219.9 kB / 0.4894 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/0.123, allocations: 229.4 kB / 0.4896 GB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.1234, allocations: 217.2 kB / 0.4898 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.1237, allocations: 185.7 kB / 0.49 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.1237, allocations: 0 / 0.49 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006014/0.1243, allocations: 0.528 MB / 0.4905 GB, free: 13.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.152e-06/0.1243, allocations: 0 / 0.4905 GB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001277/0.1256, allocations: 0.77 MB / 0.4912 GB, free: 12.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.1257, allocations: 156.5 kB / 0.4914 GB, free: 12.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.1259, allocations: 211.1 kB / 0.4916 GB, free: 11.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.1259, allocations: 29.7 kB / 0.4916 GB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.126, allocations: 116.7 kB / 0.4917 GB, free: 11.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.1261, allocations: 55.53 kB / 0.4918 GB, free: 11.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1262, allocations: 53.69 kB / 0.4918 GB, free: 11.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1263, allocations: 330.8 kB / 0.4921 GB, free: 11.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.1266, allocations: 136.2 kB / 0.4923 GB, free: 11.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.1268, allocations: 140.3 kB / 0.4924 GB, free: 11.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006001/0.1274, allocations: 477.2 kB / 0.4929 GB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1274, allocations: 0 / 0.4929 GB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006883/0.1281, allocations: 459.4 kB / 0.4933 GB, free: 10.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-05/0.1282, allocations: 95.38 kB / 0.4934 GB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1282, allocations: 0 / 0.4934 GB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1282, allocations: 0 / 0.4934 GB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1283, allocations: 23.97 kB / 0.4934 GB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1283, allocations: 4.125 kB / 0.4934 GB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.76e-05/0.1284, allocations: 23.91 kB / 0.4934 GB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/0.1285, allocations: 35.88 kB / 0.4935 GB, free: 9.91 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.0002539/0.1287, allocations: 259.7 kB / 0.4937 GB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.1288, allocations: 23.91 kB / 0.4938 GB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.11e-05/0.1288, allocations: 17.39 kB / 0.4938 GB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1288, allocations: 0 / 0.4938 GB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1288, allocations: 0 / 0.4938 GB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1288, allocations: 8 kB / 0.4938 GB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.1291, allocations: 244.4 kB / 0.494 GB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1291, allocations: 0 / 0.494 GB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.053e-05/0.1292, allocations: 11.98 kB / 0.494 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1292, allocations: 0 / 0.494 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.1292, allocations: 15.98 kB / 0.494 GB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1292, allocations: 0 / 0.494 GB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1292, allocations: 0 / 0.494 GB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1302, allocations: 0.7046 MB / 0.4947 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1304, allocations: 63.75 kB / 0.4948 GB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.1304, allocations: 31.86 kB / 0.4948 GB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1305, allocations: 15.98 kB / 0.4948 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.1306, allocations: 19.98 kB / 0.4948 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-05/0.1307, allocations: 43.86 kB / 0.4949 GB, free: 8.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.1308, allocations: 148.6 kB / 0.495 GB, free: 8.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1308, allocations: 8 kB / 0.495 GB, free: 8.215 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.1312, allocations: 75.92 kB / 0.4951 GB, free: 8.141 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.00192/0.1331, allocations: 1.409 MB / 0.4965 GB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008866/0.134, allocations: 0.561 MB / 0.497 GB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.134, allocations: 0 / 0.497 GB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000543/0.1345, allocations: 406.6 kB / 0.4974 GB, free: 5.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.1348, allocations: 31.94 kB / 0.4975 GB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.1388, allocations: 2.963 MB / 0.5003 GB, free: 2.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1391, allocations: 0.7236 MB / 0.5011 GB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.854e-05/0.1392, allocations: 20.47 kB / 0.5011 GB, free: 1.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.1393, allocations: 55.36 kB / 0.5011 GB, free: 1.801 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1393, allocations: 0 / 0.5011 GB, free: 1.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.1735, allocations: 6.22 MB / 0.5072 GB, free: 11.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.05, allocations: 7.938 kB / 0.5072 GB, free: 11.7 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 & 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: 14.901158178996411] Failed to read output from testmodel.py, exit status != 0: 12.167142411002715 12.378838382 12.257585384 Calling exit ...