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.001364/0.001364, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001636/0.001636, allocations: 209.8 kB / 22.24 MB, free: 5.262 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.785 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.03922/0.03922, allocations: 3.939 MB / 316.4 MB, free: 15.11 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.002334/0.002334, allocations: 67.91 kB / 439.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.114, allocations: 54.15 MB / 493.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.004594/0.1186, allocations: 1.499 MB / 495.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.1221, allocations: 1.145 MB / 496.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1222, allocations: 7.938 kB / 496.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.1224, allocations: 35.66 kB / 496.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.1225, allocations: 27.78 kB / 496.6 MB, free: 2.68 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.001161/0.1237, allocations: 251.2 kB / 496.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005628/0.1242, allocations: 271.4 kB / 497.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.394e-05/0.1243, allocations: 5.75 kB / 497.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004245/0.1247, allocations: 111.7 kB / 497.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.1249, allocations: 75.61 kB / 497.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-05/0.125, allocations: 12 kB / 497.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006097/0.1256, allocations: 207.6 kB / 497.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.1257, allocations: 23.92 kB / 497.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1258, allocations: 71.59 kB / 497.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.1265, allocations: 295 kB / 497.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1265, allocations: 0 / 497.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1265, allocations: 0 / 497.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1265, allocations: 0 / 497.8 MB, free: 1.379 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.004079/0.1306, allocations: 2.159 MB / 0.4883 GB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/0.1307, allocations: 12.02 kB / 0.4883 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.517e-05/0.1308, allocations: 42.75 kB / 0.4883 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.1318, allocations: 100.7 kB / 0.4884 GB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1323, allocations: 194.1 kB / 0.4886 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.1323, allocations: 4.375 kB / 0.4886 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.957e-05/0.1323, allocations: 12.38 kB / 0.4886 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.1331, allocations: 350.7 kB / 0.489 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1331, allocations: 4 kB / 0.489 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/0.1331, allocations: 4 kB / 0.489 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1331, allocations: 0 / 0.489 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007714/0.1339, allocations: 307.2 kB / 0.4893 GB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.1343, allocations: 201.5 kB / 0.4895 GB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000653/0.135, allocations: 296.5 kB / 0.4897 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005678/0.1356, allocations: 281.3 kB / 0.49 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.1356, allocations: 0 / 0.49 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/0.1367, allocations: 0.5909 MB / 0.4906 GB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/0.1367, allocations: 0 / 0.4906 GB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.002035/0.1387, allocations: 0.9251 MB / 0.4915 GB, free: 11.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.1389, allocations: 148.5 kB / 0.4916 GB, free: 11.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.1392, allocations: 207.1 kB / 0.4918 GB, free: 11.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.1393, allocations: 33.77 kB / 0.4919 GB, free: 11.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1394, allocations: 124.5 kB / 0.492 GB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.612e-05/0.1395, allocations: 47.55 kB / 0.492 GB, free: 11.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.1396, allocations: 53.69 kB / 0.4921 GB, free: 10.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.1398, allocations: 334.8 kB / 0.4924 GB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004763/0.1403, allocations: 227.5 kB / 0.4926 GB, free: 10.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.1408, allocations: 223.8 kB / 0.4928 GB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009296/0.1417, allocations: 469.3 kB / 0.4933 GB, free: 9.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1417, allocations: 4 kB / 0.4933 GB, free: 9.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001157/0.1429, allocations: 0.534 MB / 0.4938 GB, free: 9.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.143, allocations: 87.36 kB / 0.4939 GB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.143, allocations: 0 / 0.4939 GB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.143, allocations: 3.938 kB / 0.4939 GB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1432, allocations: 19.98 kB / 0.4939 GB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1432, allocations: 0 / 0.4939 GB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1434, allocations: 27.89 kB / 0.4939 GB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.1435, allocations: 40.59 kB / 0.494 GB, free: 8.918 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.0003779/0.1439, allocations: 239.7 kB / 0.4942 GB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.951e-05/0.144, allocations: 27.91 kB / 0.4942 GB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.144, allocations: 17.39 kB / 0.4942 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.144, allocations: 0 / 0.4942 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.144, allocations: 0 / 0.4942 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.144, allocations: 4 kB / 0.4943 GB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003373/0.1444, allocations: 212.5 kB / 0.4945 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1444, allocations: 0 / 0.4945 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.63e-05/0.1445, allocations: 19.92 kB / 0.4945 GB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1445, allocations: 0 / 0.4945 GB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/0.1445, allocations: 15.98 kB / 0.4945 GB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1445, allocations: 4 kB / 0.4945 GB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1445, allocations: 0 / 0.4945 GB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.1461, allocations: 0.7658 MB / 0.4952 GB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.1463, allocations: 59.75 kB / 0.4953 GB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.1464, allocations: 27.92 kB / 0.4953 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.1466, allocations: 20.03 kB / 0.4953 GB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.1467, allocations: 23.97 kB / 0.4954 GB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.816e-05/0.1468, allocations: 43.94 kB / 0.4954 GB, free: 7.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.147, allocations: 148.6 kB / 0.4955 GB, free: 7.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.147, allocations: 0 / 0.4955 GB, free: 7.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.1476, allocations: 79.92 kB / 0.4956 GB, free: 7.117 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.00292/0.1505, allocations: 1.473 MB / 0.4971 GB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.1516, allocations: 0.7317 MB / 0.4978 GB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1516, allocations: 0 / 0.4978 GB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000589/0.1522, allocations: 466 kB / 0.4982 GB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.1524, allocations: 38.73 kB / 0.4983 GB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.1574, allocations: 3.419 MB / 0.5016 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.1575, allocations: 114.9 kB / 0.5017 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.289e-05/0.1576, allocations: 12.48 kB / 0.5017 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.734e-05/0.1577, allocations: 55.41 kB / 0.5018 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1577, allocations: 0 / 0.5018 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03907/0.1968, allocations: 6.796 MB / 0.5084 GB, free: 9.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.59, allocations: 15.23 kB / 0.5084 GB, free: 9.836 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 sys.exit(0), Time elapsed: 14.445587072055787] Failed to read output from testmodel.py, exit status != 0: 11.695519153028727 11.883149947 11.753571697 Calling exit ...