Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.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.0006334/0.0006334, allocations: 88.44 kB / 20.73 MB, free: 3.82 MB / 18.57 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.0007343/0.0007343, allocations: 165.9 kB / 24 MB, free: 0.5469 MB / 18.57 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 0.8139/0.8139, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.0331/0.0331, allocations: 9.132 MB / 269.9 MB, free: 4.449 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 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: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 398.3 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.701e-05/1.832e-05, allocations: 5.234 kB / 398.3 MB, free: 0.75 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource): time 0.002246/0.002264, allocations: 2.351 MB / 400.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001923/0.002457, allocations: 143.5 kB / 400.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.154e-05/0.002518, allocations: 3.938 kB / 400.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.002651, allocations: 31.72 kB / 400.8 MB, free: 14.21 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.916e-05/0.00274, allocations: 11.92 kB / 400.8 MB, free: 14.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.00292, allocations: 47.83 kB / 400.9 MB, free: 14.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.003056, allocations: 75.77 kB / 401 MB, free: 14.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.862e-05/0.003145, allocations: 19.92 kB / 401 MB, free: 14.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.198e-05/0.003197, allocations: 31.91 kB / 401 MB, free: 14.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.831e-05/0.003245, allocations: 19.97 kB / 401 MB, free: 14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.003265, allocations: 8 kB / 401 MB, free: 14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.003322, allocations: 27.98 kB / 401.1 MB, free: 13.97 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.126e-05/0.003353, allocations: 11.92 kB / 401.1 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.003392, allocations: 23.92 kB / 401.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.003545, allocations: 99.62 kB / 401.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003547, allocations: 0 / 401.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.003548, allocations: 0 / 401.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.003551, allocations: 4 kB / 401.2 MB, free: 13.83 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003314/0.003882, allocations: 357.3 kB / 401.6 MB, free: 13.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.003913, allocations: 8.031 kB / 401.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.003946, allocations: 8.891 kB / 401.6 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.004116, allocations: 133.7 kB / 401.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.004127, allocations: 8.359 kB / 401.7 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.00414, allocations: 8.375 kB / 401.7 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.004387, allocations: 220.8 kB / 401.9 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.004394, allocations: 192 / 401.9 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.004404, allocations: 384 / 401.9 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.00442, allocations: 4.375 kB / 401.9 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.138e-05/0.004481, allocations: 95.25 kB / 402 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.004721, allocations: 217.4 kB / 402.2 MB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.004899, allocations: 132.6 kB / 402.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.711e-05/0.004956, allocations: 93.12 kB / 402.5 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.696e-05/0.005013, allocations: 15.97 kB / 402.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.00503, allocations: 38.5 kB / 402.5 MB, free: 12.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.005031, allocations: 4 kB / 402.5 MB, free: 12.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002413/0.005273, allocations: 279.8 kB / 402.8 MB, free: 12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.005324, allocations: 136.5 kB / 402.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.451e-05/0.005389, allocations: 117.8 kB / 403 MB, free: 11.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.005398, allocations: 29.64 kB / 403.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.00544, allocations: 96.08 kB / 403.2 MB, free: 11.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-06/0.005449, allocations: 7.891 kB / 403.2 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/0.005476, allocations: 21.72 kB / 403.2 MB, free: 11.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.005543, allocations: 318.8 kB / 403.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.452e-05/0.005577, allocations: 63.41 kB / 403.6 MB, free: 11.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.862e-05/0.005616, allocations: 81.14 kB / 403.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.635e-05/0.005682, allocations: 140.5 kB / 403.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.005684, allocations: 0 / 403.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001012/0.005785, allocations: 180.4 kB / 404 MB, free: 10.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.005814, allocations: 63.34 kB / 404 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.005819, allocations: 4 kB / 404 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.005829, allocations: 0 / 404 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.363e-05/0.005853, allocations: 0 / 404 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.005856, allocations: 0 / 404 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.005875, allocations: 12.3 kB / 404 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.005883, allocations: 8 kB / 404 MB, free: 10.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * 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.0003079/0.006191, allocations: 173.2 kB / 404.2 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.006246, allocations: 65.58 kB / 404.3 MB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.719e-05/0.006273, allocations: 16.11 kB / 404.3 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.006275, allocations: 0 / 404.3 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.006278, allocations: 0 / 404.3 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.006281, allocations: 0 / 404.3 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.503e-05/0.006366, allocations: 125.2 kB / 404.4 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.006367, allocations: 0 / 404.4 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.00639, allocations: 15.92 kB / 404.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.006391, allocations: 4 kB / 404.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.006399, allocations: 3.938 kB / 404.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.006399, allocations: 4 kB / 404.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.0064, allocations: 0 / 404.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.006559, allocations: 311.2 kB / 404.7 MB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.033e-05/0.006569, allocations: 7.984 kB / 404.8 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.006583, allocations: 11.88 kB / 404.8 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.813e-05/0.006611, allocations: 0 / 404.8 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.963e-05/0.00663, allocations: 4 kB / 404.8 MB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-06/0.006636, allocations: 8 kB / 404.8 MB, free: 9.734 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.374e-05/0.00667, allocations: 99.14 kB / 404.9 MB, free: 9.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00667, allocations: 4 kB / 404.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001591/0.006829, allocations: 27.89 kB / 404.9 MB, free: 9.605 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0003298/0.007159, allocations: 258.1 kB / 405.2 MB, free: 9.418 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.007323, allocations: 265.6 kB / 405.4 MB, free: 9.109 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.007324, allocations: 0 / 405.4 MB, free: 9.109 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.824e-05/0.007382, allocations: 182.1 kB / 405.6 MB, free: 8.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.007582, allocations: 39.33 kB / 405.6 MB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002731/0.007855, allocations: 266.7 kB / 405.9 MB, free: 8.551 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.803e-05/0.007903, allocations: 83.42 kB / 406 MB, free: 8.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.493e-05/0.007918, allocations: 12.5 kB / 406 MB, free: 8.438 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.007918, allocations: 0 / 406 MB, free: 8.438 MB / 378.7 MB Notification: Performance of Templates: time 0.001934/0.009852, allocations: 1.469 MB / 407.5 MB, free: 6.973 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestRandomRealSource.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.95421848166734] Failed to read output from testmodel.py, exit status != 0: 0.01433725655078888 0.021343565000000002 0.016311275 Calling exit ...