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.001425/0.001425, allocations: 113 kB / 18.94 MB, free: 2.934 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.00159/0.00159, allocations: 210.8 kB / 22.25 MB, free: 5.086 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.445/1.445, allocations: 230.6 MB / 256 MB, free: 8.047 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.05459/0.05459, allocations: 3.939 MB / 316.4 MB, free: 15.36 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.001948/0.001948, allocations: 63.91 kB / 439.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09895, allocations: 54.14 MB / 493.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002727/0.1017, allocations: 1.552 MB / 495.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.1039, allocations: 1.219 MB / 496.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.159e-05/0.104, allocations: 7.938 kB / 496.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.1042, allocations: 35.67 kB / 496.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.151e-05/0.1043, allocations: 27.78 kB / 496.7 MB, free: 2.918 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.000942/0.1052, allocations: 247.2 kB / 497 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004102/0.1056, allocations: 275.4 kB / 497.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.881e-05/0.1057, allocations: 9.75 kB / 497.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.106, allocations: 107.7 kB / 497.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.1061, allocations: 79.66 kB / 497.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.1062, allocations: 16 kB / 497.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004305/0.1066, allocations: 219.6 kB / 497.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.17e-05/0.1067, allocations: 19.88 kB / 497.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.1068, allocations: 87.52 kB / 497.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005207/0.1073, allocations: 295 kB / 498.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1073, allocations: 0 / 498.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1073, allocations: 0 / 498.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1073, allocations: 0 / 498.1 MB, free: 1.586 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.002661/0.11, allocations: 2.195 MB / 0.4885 GB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.11, allocations: 8.031 kB / 0.4885 GB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.851e-05/0.1101, allocations: 46.75 kB / 0.4886 GB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008043/0.1109, allocations: 108.6 kB / 0.4887 GB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.1113, allocations: 198 kB / 0.4889 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.1114, allocations: 4.375 kB / 0.4889 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.1114, allocations: 8.375 kB / 0.4889 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.1119, allocations: 267.4 kB / 0.4891 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1119, allocations: 0 / 0.4891 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.112, allocations: 4 kB / 0.4892 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.112, allocations: 0 / 0.4892 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.1124, allocations: 219.8 kB / 0.4894 GB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003243/0.1127, allocations: 225.4 kB / 0.4896 GB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.1131, allocations: 221.1 kB / 0.4898 GB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1134, allocations: 190 kB / 0.49 GB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.1134, allocations: 0 / 0.49 GB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006387/0.114, allocations: 0.5225 MB / 0.4905 GB, free: 13.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.114, allocations: 3.938 kB / 0.4905 GB, free: 13.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001336/0.1154, allocations: 0.77 MB / 0.4912 GB, free: 12.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.1155, allocations: 160.5 kB / 0.4914 GB, free: 12.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.1157, allocations: 211.1 kB / 0.4916 GB, free: 11.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.1157, allocations: 25.7 kB / 0.4916 GB, free: 11.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.1158, allocations: 116.7 kB / 0.4917 GB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.1159, allocations: 51.53 kB / 0.4918 GB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.116, allocations: 53.69 kB / 0.4918 GB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1161, allocations: 326.8 kB / 0.4921 GB, free: 11.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.1164, allocations: 144.1 kB / 0.4923 GB, free: 11.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.1166, allocations: 144.4 kB / 0.4924 GB, free: 11.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005815/0.1172, allocations: 465.3 kB / 0.4929 GB, free: 10.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1172, allocations: 0 / 0.4929 GB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006793/0.1179, allocations: 467.4 kB / 0.4933 GB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.502e-05/0.1179, allocations: 97.86 kB / 0.4934 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1179, allocations: 3.938 kB / 0.4934 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.118, allocations: 0 / 0.4934 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1181, allocations: 19.98 kB / 0.4934 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.1181, allocations: 0 / 0.4934 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1182, allocations: 27.89 kB / 0.4934 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.244e-05/0.1183, allocations: 39.94 kB / 0.4935 GB, free: 9.969 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.0002651/0.1185, allocations: 247.8 kB / 0.4937 GB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.1186, allocations: 27.91 kB / 0.4937 GB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.08e-05/0.1186, allocations: 17.39 kB / 0.4938 GB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1186, allocations: 4 kB / 0.4938 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1186, allocations: 0 / 0.4938 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1186, allocations: 0 / 0.4938 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.1189, allocations: 248.4 kB / 0.494 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1189, allocations: 0 / 0.494 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.137e-05/0.119, allocations: 11.92 kB / 0.494 GB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.119, allocations: 4 kB / 0.494 GB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.119, allocations: 15.98 kB / 0.494 GB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.119, allocations: 0 / 0.494 GB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.119, allocations: 0 / 0.494 GB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.12, allocations: 0.7066 MB / 0.4947 GB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.1202, allocations: 55.8 kB / 0.4948 GB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.1203, allocations: 31.91 kB / 0.4948 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1204, allocations: 15.94 kB / 0.4948 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.067e-05/0.1204, allocations: 19.97 kB / 0.4948 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-05/0.1205, allocations: 52.05 kB / 0.4949 GB, free: 8.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.1207, allocations: 144.6 kB / 0.495 GB, free: 8.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1207, allocations: 7.938 kB / 0.495 GB, free: 8.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.121, allocations: 79.92 kB / 0.4951 GB, free: 8.203 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.001938/0.1229, allocations: 1.4 MB / 0.4965 GB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008821/0.1238, allocations: 0.5688 MB / 0.497 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1238, allocations: 0 / 0.497 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.1243, allocations: 402.6 kB / 0.4974 GB, free: 5.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.1246, allocations: 31.92 kB / 0.4974 GB, free: 5.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.1285, allocations: 2.96 MB / 0.5003 GB, free: 2.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.1289, allocations: 0.7275 MB / 0.501 GB, free: 1.938 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.023e-05/0.129, allocations: 16.48 kB / 0.5011 GB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.275e-05/0.1291, allocations: 59.34 kB / 0.5011 GB, free: 1.867 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1291, allocations: 0 / 0.5011 GB, free: 1.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.1639, allocations: 6.217 MB / 0.5072 GB, free: 11.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.37, allocations: 11.23 kB / 0.5072 GB, free: 11.77 MB / 382.1 MB " [Timeout remaining time 649] (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 sys.exit(0), Time elapsed: 14.116511333966628] Failed to read output from testmodel.py, exit status != 0: 11.48599374992773 11.67432772 11.563403656 Calling exit ...